You are about to visit an external link, proceed with caution
https://en.wikipedia.org/wiki/Disjoint-set_data_structure
Proceed