Question

C. Construct Minimum Spanning Tree and calculate the cost MST: Ctrl) b) By Kurskals Algorithm. B 30 12 30 F 28 8 7 10 20 20

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Date Page Sobution KRUSKAL ALGORITHM sost all edges in man - decreasing order of weight SOURCE DESTINATION WEIGHT 5 7 Fomo o

fick edge K-M, no cycle ů posmed, include it F. L SK 7. E 5 & lick edge b-H, no cycle ů formed, include it ER IK 8 # 8 D. Pic

Data Page pück edge Gacy mo eyele is formed, include it F 8 7 10 G C 5 8 H & D Pick edge F~B, no cycle is formed include et B

Please note that the algorithm stopped after this step and we got the MST, since number of edges in a MST = Number of vertices-1. In this case number of vertices was 9 and edges were 8 in the final answer. If we would have continued the algorithm further for the rest of the edges, cycle would've formed and each edge would have been discarded anyways.

Cost of the MST is equals to the sum of all the edges in the MST i.e. 10+5+8+8+7+8+12+11= 69.

Please give an upvote if you liked my solution. Thank you :)

Add a comment
Know the answer?
Add Answer to:
C. Construct Minimum Spanning Tree and calculate the cost MST: Ctrl) b) By Kurskal's Algorithm. B...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT