Question: Exercise 2 . Alternative algorithm for finding the mst . [ 8 points ] Consider the following property of minimum spanning trees: if you remove
Exercise Alternative algorithm for finding the mst
points
Consider the following property of minimum spanning trees: if you remove an edge, you obtain two subtrees that are minimum spanning trees for their respective subsets of nodes.
Based on this fact, we suggest the following divideandconquer algorithm: divide the set of nodes into two parts, find the minimum spanning tree for the two subgraphs, and then connect them with a light edge.
State whether or not this algorithm correctly returns a minimum spanning tree for the original graph. Justify your answer with either a formal proof or a counterexample.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
