Quiz
Question 1 of 3. 0 correct, 0 incorrect.
Union-find over 6 elements, 0 to 5, processes the edges 0-1, 1-2 and 3-4. How many components are there?
Hint
The count starts at the number of elements and falls by one for each union that joins two different roots.
components