Question: An old MST method, called Baruvka?s algorithm, works as follows on a graph G having n vertices and m edges with distinct weights: Prove that
An old MST method, called Baruvka?s algorithm, works as follows on a graph G having n vertices and m edges with distinct weights:

Prove that this algorithm is correct and that it runs in O(mlogn) time.
Let T be a subgraph of G initially containing just the vertices in V. while T has fewer than n 1 edges do for each connected component C; of T do Find the lowest-weight edge (u,v) in E with u in C; and v not in ;. Add (u, v) to T (unless it is already in T). return T
Step by Step Solution
3.56 Rating (174 Votes )
There are 3 Steps involved in it
Baruvkas algorithm is a minimum spanning tree MST algorithm that works by constructing the tree one ... View full answer
Get step-by-step solutions from verified subject matter experts
