Concept Flow - Union Find Disjoint Set Data Structure
Initialize each element as its own set
Find operation: Find root of element
Union operation: Merge two sets
Update parent pointers
Repeat find/union as needed
Check if two elements are in the same set
Start with each element alone. Use find to get set leaders. Use union to merge sets by updating parents. Repeat to manage groups.
