Question: 4 . Given a graph ( G ( V , E ) ) and its MST , consider there are changes to edges

4. Given a graph \( G(V, E)\) and its MST, consider there are changes to edges of the graph. In such occasion you must update the MST without rebuilding it. There are certain edges which are in MST and others which might not be in MST. Determine how you must update your MST in no more than \(\mathrm{O}(\mathrm{V}+\mathrm{E})\) time if:
a. Weight of an edge which is in MST decreases
b. Weight of an edge which is in MST increases
c. Weight of an edge which is NOT in MST decreases
d. Weight of an edge which is NOT in MST increases
e. How would you convert the Minimal Spanning tree to Maximum Spanning tree (build tree from scratch). You can call Prim's or Kruskal's algorithm without making any change to the algorithm.
4 . Given a graph \ ( G ( V , E ) \ ) and its MST

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 Programming Questions!