SWESPOT

Union-Find

Disjoint sets with path compression — connectivity, cycle detection, and Kruskal in near-constant time.

1 article