Kruskal's algorithm
Kruskal's algorithm finds a minimum spanning tree by repeatedly adding the lightest edge that connects two different components, stopping when all vertices are connected.
Kruskal's algorithm finds a minimum spanning tree by repeatedly adding the lightest edge that connects two different components, stopping when all vertices are connected.