retagged by
424 views

1 Answer

1 votes
1 votes
Make a complete graph of 4 vertices. Assign weight=1 to three edges and weight=2 to 4th edge and both diagonals.

 

Now weight of minimum spanning tree= 3. It's unique here.

Weight of second best spanning tree=4. But its not unique in this graph. 4 such spanning trees are possible.

 

Now another example where weights are distinct. A graph like above but with one diagonal. Let 4 edges have weights 1,2,3,5 and weight of diagonal is 4.

MST will consist of (1,2,3).

Two second best MSTs will be (1,2,5) and (1,3,4). So again, second best MST is not unique.
edited by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
3
Naveen Kumar 3 asked Nov 10, 2018
654 views
Let us assume that $G$($V$, $E$) is a weighted complete graph such that weight of the edge <$V_K$,$V_L$>=2|$K$-$L$|. The weight MST of $G$ with 100 vertices is __________...
0 votes
0 votes
3 answers
4
iarnav asked Apr 29, 2018
1,568 views
Question 1) The shortest-path tree computed by Dijkstra's algorithm is necessarily an MST?Question2 ) Prim's algorithm works with negative weighted edges?