Question: Consider the following divide and conquer algorithm that claims to find an MST when the input is a complete graph G with positive edge weights:
Consider the following divide and conquer algorithm that claims to find an MST when the input is a
complete graph G with positive edge weights:
Algorithm Description: Given an undirected complete graph G V E with positive edge weights
where V v vn
If n then return the empty set of edges.
Otherwise, split the set of vertices into two sets: V v vn and V vn vn
Create two new graphs GV E and GV E where E E is the set of edges with
both endpoints in V and E E is the set of edges with both endpoints in V
Recursively run the algorithm on G and G to get T and T respectively. Find the lightest
edge that connects a vertex in T to a vertex in T and call that edge e
Return T cup T cup e
Disprove the correctness of this algorithm by giving a counterexample. points
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
