DSU

Disjoint Set Union. 1671.