Question: You are given a simple weighted graph G=(V,E) and its minimum spanning tree Tmst. Somebody added new edge e to the graph G. Let's call

 You are given a simple weighted graph G=(V,E) and its minimum

You are given a simple weighted graph G=(V,E) and its minimum spanning tree Tmst. Somebody added new edge e to the graph G. Let's call new graph G=(V,Ee). Devise an algorithm which checks if Tmst is also a minimum spanning tree for the graph G or not. Prove correctness of your algorithm and provide running time analysis. You can assume that all edge weights in G are distinct. Tmst and G are given to you as adjacency lists. Your algorithm should work in O(V) time for a full score. For the algorithm working in O(V1+ ) time (for any positive ) you will get half points

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!