Kruskal's algorithm

Minimum spanning forest algorithm that greedily adds edges

Kruskal's algorithm

Kruskal's algorithm finds a minimum spanning forest of an undirected edge-weighted graph. If the graph is connected, it finds a minimum spanning tree. It is a greedy algorithm that in each step adds to the forest the lowest-weight edge that will not form a cycle.

From Wikipedia, under CC BY-SA. More on occurri.