Back to course home
0% completed
Vote For New Content
On this page
Core Operations of Union-Find (Disjoint Set Union - DSU):
Union-Find: A Story of Connections
Naive Implementation of Disjoint Set
- Creating Disjoint Sets
- Find Operation
- Union Operation
Optimizations
- Path Compression
- Union by Rank
Complexity Analysis
- Union by Size
Most Optimized Approach: Combining Path Compression and Union by Rank
Pros and Cons of DSU
Why Choose Union-Find Over BFS/DFS?