Union-Find Checkpoint

Disjoint sets, path compression, and applications.


1. Path compression in Union-Find does what?
2. If Union returns false, it means:
3. Time complexity of Find with path compression is:
4. To detect a cycle when adding edges, check if Union returns:
5. Union by rank attaches the _____ tree under the _____ tree: