← Back to All Algorithms
🌲 Kruskal's MST Algorithm
How It Works (Greedy)
Sort all edges by weight (ascending)
For each edge, check if it creates a cycle (using Union-Find)
If no cycle, add edge to MST
If cycle, reject edge
Stop when MST has V-1 edges
Click "Start" to find Minimum Spanning Tree
Edges (Sorted)
MST Weight:
0
Reset
▶ Start
Step →