Union-find algorithm

Redirect to:

  • Disjoint-set data structure