recategorized by
933 views
0 votes
0 votes
Suppose that a graph G has a minimum spanning tree already computed. How quickly can we update the minimum spanning tree if we add a new vertex and incident edges to G?
recategorized by

1 Answer

1 votes
1 votes
Apply prims algorithm here.Consider newly added vertex as starting vertex.So how will you proceed farther?You must take the least weighted edge adjacent to that vertex.After doing this you are done.Because the other component was MST already and now also overall spanning tree is minimum.

Related questions

0 votes
0 votes
2 answers
1
Nidhi Budhraja asked Aug 31, 2018
758 views
Q1) Why is the path between a pair of vertices in a minimum Spanning tree of an undirected graph not the shortest( minimum weight) path?
7 votes
7 votes
1 answer
2
vishal chugh asked Jan 18, 2018
2,173 views
The number of distinct minimum spanning trees for the weighted graph shown below is ___________.
1 votes
1 votes
1 answer
4