Answered step by step
Verified Expert Solution
Link Copied!

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 =[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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

Find the area of the shaded region. (a) (b) 4 + 3 sin

Answered: 1 week ago