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:

Let T be a subgraph of G initially containing just the vertices

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

1 Expert Approved Answer
Step: 1 Unlock

Baruvkas algorithm is a minimum spanning tree MST algorithm that works by constructing the tree one ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Algorithms Questions!