Efficient Operations on Disjoint Sets
medium.com