Kruskal's Algorithm
Sort edges by ascending weight.
Use Union-Find for cycle prevention.
Typical complexity: O(E log E).
Works naturally with edge-list representations.
For a connected graph, the result contains V-1 edges.
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.