0
4.6kviews
To find MST of following graph using prims Algorithm.

To find MST of following graph using prim’s Algorithm.

enter image description here

1 Answer
0
96views

Minimum Spanning Tree using Prim’s Algorithm:

Sr No. Edges considered Edges selected Cost Spanning tree
1 - - - enter image description here
2 (1, 2) , (1, 6)0 (1, 6) 10 enter image description here
3 (1, 2), (6, 5) (6, 5) 15 enter image description here
4 (1, 2), (5, 4), (5, 7) (5, 4) 22 enter image description here
5 c (4, 3) 12 enter image description here
6 (1, 2), (3, 2) (4, 7), (5, 7) c 16 enter image description here
7 (1, 2), (2, 1), (2, 7) (4, 7), (5, 7) (2, 7) 14 enter image description here
8 enter image description here $ \ \ \ \ \ \ \ \ \ \ $Minimum Spanning Tree in the graph with total cost is 89. v
Please log in to add an answer.