Union-Find (Disjoint Set Union)

Union by size or rank, path compression, the inverse Ackermann bound, DSU with extra data, and what DSU cannot do.

0 / 8 solved
0/8 solved
Question Tags Difficulty Success
1. Flatten the Family
Data Structures
Easy 73%
2. Eight Nodes One Root
union-findunion-by-size +1
Medium —
3. Union Without The Find
union-finddebugging +1
Medium —
4. Only Two Entries Change
union-findpath-compression +1
Medium —
5. Sizes Of The Arguments
union-findunion-by-size +1
Medium —
6. What The Alpha Needs
union-findinverse-ackermann +1
Medium —
7. The Second Cycle Wins
union-findbipartite +2
Hard —
8. Rollback Refuses Compression
union-findrollback +2
Hard —

Up next

8 of 8 questions here are still unsolved.