MST
MST
Trees
1 Spanning Tree
3 Kruskal’s Algorithm
4 Prim’s Algorithm
Example:
8 7
b c d
4 2 9
a 11 i 14 e
4
7
8 10
h g f
1 2
• Weight of MST is 4 + 8 + 7 + 9 + 2 + 4 + 1 + 2 = 37
• MST is not unique: e.g. (b, c) can be exchanged with (a, h)
• However, the cost remains the same.