Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Union by size

A union-find trick that hangs the smaller group's root under the bigger one's, so paths stay short.

Where the book teaches it

Related terms

Union-findPath compression