Question: An undirected weighted graph G is given below: (a). Use Prim's algorithm to compute the minimum spanning tree for the weighted graph. Start the algorithm

An undirected weighted graph G is given below:

An undirected weighted graph G is given below: (a). Use Prim's algorithm

(a). Use Prim's algorithm to compute the minimum spanning tree for the weighted graph. Start the algorithm at vertex a. Show the order in which the edges are added to the tree.

(b). Now suppose that the weight of edge {e,f} is decreased from 7 to -3. Is there a way to find the minimum spanning tree of the altered graph without running Prim's algorithm from scratch?

11 -4.1 e) -1 C 3 a 2 0 1 .7 b 7 3 2

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!