Lec21 Spanning
Lec21 Spanning
8 10 14
1 3 5 7
7 4 12 6 3
2
2 4 6 8
9
Edge set E.
Operations are:
Is E empty?
Select and remove a least-cost edge.
Use a min heap of edges.
Initialize. O(e) time.
Remove and return least-cost edge. O(log e) time.
Data Structures For Kruskal’s Method