Behold the following instance of disjoint sets. Links go from low to high.
Question 1: How many disjoint sets are there?
Question 2: If I say Union(4,5) (blue nodes) why will there be an error?
Question 3: If I’m using Union-by-size, and I call Union(48,49) (pink nodes), what node’s link will change?
Question 4: If I’m using Union-by-height, and I call Union(48,49), what node’s link will change?
Question 5: If I’m using Union-by-rank-with-path-compression, how many links change when I call Find(28) (gray).
Question 6: If I’m using Union-by-rank-with-path-compression, Ranks[18] (green) can be three? Answer T or F.