Question

Extra Credit: Suppose you are given an undirected, connected, weighted graph G. You want to find the heaviest weight set of e

PLEASE INCLUDE EXPLANATION AND DONT COPY FROM OTHER CHEEG ANSWERS

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We can use minimum spanning tree method in this. we create a MST ( Minimum spanning tree ) , and whosoever are the edges not in MST remove them . As MST is connected so the graph after removal would also be,

If we are last with MST then its sure that its optimal to remove those edges which have been removed , Now lets just prove the optimality of MST using kruskal algorithm.

Algo :

ARRANGE THE EDGES IN INCREASING ORDER OF THE WEIGHTS.

TAKE THE EDGE :

JOIN IN THE MST , IF THERE ARISES A CYCLE DON'T USE IT

REPEAT TILL WE GET A TREE OF N-1 EDGES.

PROOF :

We’ll prove this in a similar manner to the general proofs for matroids.

Suppose you had a tree T whose cost is strictly less than that of MST.

Pick the minimal weight edge e \in T that is not in MST. Adding e to MST introduces a unique cycle C in MST.

This cycle has some interseting properties. First, e has the highest cost of any edge on C. Otherwise, Kruskal’s algorithm would have chosen it before.

Second, there is another edge in C that’s not in T because T was also a tree with no cycle .Call such an edge e'.

Now we can remove e' from MST and add e , to make an improved version of MST.

This can only increase the total cost of MST, but this transformation produces a tree with one more edge in common with T than before.

This contradicts that T had strictly lower weight than MST, because repeating the process we described would eventually transform MST into Texactly, while only increasing the total cost.

Thus our chosen algorithm gives the optimal result .

Add a comment
Know the answer?
Add Answer to:
PLEASE INCLUDE EXPLANATION AND DONT COPY FROM OTHER CHEEG ANSWERS Extra Credit: Suppose you are given...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You are given an undirected graph G with weighted edges and a minimum spanning tree T of G.

    You are given an undirected graph G with weighted edges and a minimum spanning tree T of G. Design an algorithm to update the minimum spanning tree when the weight of a single edge is increased. The input to your algorithm should be the edge e and its new weight: your algorithm should modify T so that it is still a MST. Analyze the running time of your algorithm and prove its correctness.

  • You are given an undirected graph G with weighted edges and a minimum spanning tree T of G.

    You are given an undirected graph G with weighted edges and a minimum spanning tree T of G. Design an algorithm to update the minimum spanning tree when the weight of a single edge is decreased. The input to your algorithm should be the edge e and its new weight; your algorithm should modify T so that it is still a MST. Analyze the running time of your algorithm and prove its correctness.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT