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 =[v1,..., vn],
If n =1 then return the empty set of edges.
Otherwise, split the set of vertices into two sets: V =[v1,..., vn/2] and V =[vn/2+1,..., vn].
Create two new graphs G=(V , E) and G=(V , 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. (8 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!