Data Structures and Algorithms ยท Graphs
A structure that tracks which elements belong to the same group and merges groups quickly.
Also known as: disjoint set union, DSU, path compression.