Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Prim's algorithm

Also written: Prim

Another way to build a minimum spanning tree, by growing one tree outward from a starting place using a heap.

Where the book teaches it

Related terms

Kruskal's algorithmMinimum spanning tree