Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started