3.Quick-Union

Data Structure
Find
Union
Cons

4. Improvement

Weighted quick-union
Data structure
Find
Union
Quick-union with Path compression