Data Structures, Disjoint Set, Graphs, Union-Find

Union-Find (Disjoint Set Union)