// A Disjoint Set (also called Union-Find) maintains a collection of disjoint sets. // Each set is identified by a representative (root) element. // Two key operations: // find(x) : Returns the ...