Skip to content

Glossary: Algorithms Beyond the Basics

Kruskal's algorithm

Also written: Kruskal

A greedy way to build a minimum spanning tree: go through the roads from shortest to longest and keep each one that joins two places not yet connected. Union-find does the checking.

Where the book teaches it

Related terms

Minimum spanning treeUnion-findPrim's algorithm