##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Union by rank/size, path compression, rollback DSU, and applications.
Dynamic changes
The Structure
Who is the boss?
Tracking relationships
Finding the Leader
Merging Groups
Long Chains
The Magic Step
Coding the Magic
Knowledge check
Balancing the Tree
Coding the Merger
Copy-Paste Ready
Application 1
Knowledge check
LeetCode 684
First Hit
Application 2
LeetCode 547 (DSU Version)
Iterating the Matrix
Application 3
CSES Problem Set
Maintaining State
Symbols as Nodes
Knowledge check
LeetCode 990
Two Passes
Swapping Logic
LeetCode 1202
Sorting Components
Mapping Data
LeetCode 721
Emails are Edges
Connecting pixels
Knowledge check
LeetCode 827
DSU + Virtual Flip
Reducing Edges
Codeforces 1263D
Letters are Hubs
Reordering Time
Knowledge check
LeetCode 1697
Sorting Everything
Destruction is hard
USACO Gold
Adding Barns
Knowledge check
Dynamic Connectivity