NIST

Kruskal's algorithm

(algorithm)

Definition: An algorithm for computing a minimum spanning tree. It maintains a set of partial minimum spanning trees, and repeatedly adds the shortest edge in the graph whose vertices are in different partial minimum spanning trees.

See also Prim-Jarnik algorithm.

Author: JLG

Implementation

analysis and code (C), (pseudocode)

More information

Eppstein's lecture outlining and contrasting MST algorithms.


Go to the Dictionary of Algorithms and Data Structures home page.

If you have suggestions, corrections, or comments, please get in touch with Paul Black.

Entry modified 19 April 2006.
HTML page formatted Fri Feb 23 10:06:07 2018.

Cite this as:
Joseph L. Ganley, "Kruskal's algorithm", in Dictionary of Algorithms and Data Structures [online], Vreda Pieterse and Paul E. Black, eds. 19 April 2006. (accessed TODAY) Available from: https://www.nist.gov/dads/HTML/kruskalsalgo.html