Question: For an undirected, connected graph G = (V, E) with weights w(e) > 0, you are given a MST, T. Unfortunately one of the edges

For an undirected, connected graph G = (V, E) with weights w(e) > 0, you are given a MST, T. Unfortunately one of the edges e=(u, v) which is in the MST T is deleted from the graph G (no other edges change). Give an algorithm to build a MST for the new graph. Note: G is connected, and G e is also connected. Your algorithm should be correct and faster in O() than building a MST from scratch (so using Prims or Kruskals will receive little credit).

***

You are allowed to use the algorithms from class as black-boxes. Black-box graph algorithms should be used without modification.

* DFS (outputs connected components, a path between two vertices, topological sort on a DAG. You also have access to the pre and post arrays!), BFS and the Explore subroutine.

* Dijkstras algorithm to find the shortest distance from a source vertex to all other vertices and a path can be recovered backtracking over the pre labels.

* Bellman-Ford and Floyd-Warshall to compute the shortest path when weights are allowed to be negative.

* SCCs which outputs the strongly connected components, and the metagraph of connected components.

* Kruskals and Prims algorithms to find MST.

* Ford-Fulkerson and Edmonds-Karp to find max flow on networks.

When using a black-box, make sure you clearly describe which input you are passing to it and how you use the output from or take advantage of the data structures created by the algorithm. Your solution must:

- Include the description of your algorithm in words (no pseudocode!).

- Explain the correctness of your design.

- State and analyze the running time of your design.

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!