edited by
3,059 views
2 votes
2 votes

Consider the given graph

Its Minimum Cost Spanning Tree is ______

 

 

 

edited by

1 Answer

1 votes
1 votes

finding MST using Kruskal’s algorithm steps as follow:

1. Sort all the edges in non-decreasing order of their weight.
2. Pick the smallest edge. Check if it forms a cycle with the spanning tree formed so far. If cycle is not formed, include this edge. Else, discard it.
3. continue step 2 until we have (V-1) edges in the spanning tree.

 

Answer:

Related questions

0 votes
0 votes
4 answers
4
go_editor asked Jul 31, 2016
4,055 views
Which of the following algorithms sort $n$ integers, having the range $0$ to $(n^2 -1)$, in ascending order in $O(n)$ time?Selection sortBubble sortRadix sortInsertion so...