Data Structures and Algorithms ยท Graphs

Union-find

A structure that tracks which elements belong to the same group and merges groups quickly.

Also known as: disjoint set union, DSU, path compression.

Start a lesson on Union-find

Learn first

Leads to

Related topics