Question: Given an undirected, weighted graph G(V, E), consider the following algorithm to find the minimum spanning tree. This algorithm is similar to Prim's, except
Given an undirected, weighted graph G(V, E), consider the following algorithm to find the minimum spanning tree. This algorithm is similar to Prim's, except rather than growing out a spanning tree from one vertex, it tries to grow out the spanning tree from every vertex at the same time. procedure FINDMST (G(V, E)) T while T is not a spanning tree do Let S, S2... Sk be the connected components of the graph with vertices V and edges T For each i e {1, ..., k}, let ei be the minimum-weight edge with exactly one endpoint in Si T TU{e1,e2, ... ek} return T For example, at the start of the first iteration, every vertex is its own S. For simplicity, in the following parts you may assume that no two edges in G have the same weight. (a) Show that this algorithm finds a minimum spanning tree. (b) Give a tight upper bound on the worst-case number of iterations of the while loop in one run of the algorithm. Justify your answer. (c) Using your answer to the previous part, give an upper bound on the runtime of this algorithm.
Step by Step Solution
3.52 Rating (149 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
