AlgoMaster Logo

Kruskal's Minimum Spanning Tree

n=5,edges=[{u:0,v:1,w:2},{u:0,v:3,w:6},{u:1,v:2,w:3},{u:1,v:3,w:8},{u:1,v:4,w:5},{u:2,v:4,w:7},{u:3,v:4,w:9}]
0 / 16
Graph263857901234Sorted Edges(not yet sorted)Union-FindLegend:StandardProcessingCurrentIn MSTCycle
algomaster.io
Step:Given a graph with 5 vertices and 7 edges. Find the Minimum Spanning Tree using Kruskal's algorithm.