6.3. Quiz

This section provides exercises for better understanding in disjoint sets.

Implementation

Report

Write a report quiz6.pdf that includes the followings:

  • Describe how the values in the subsets[]arrow-up-right array changes after each call in the main() method.

  • Describe how the values in the subsets[]arrow-up-right array would change after calling find(0) once all keys are added as above, assuming that the find() method in DisjointSet class uses the efficient approach:

Last updated

Was this helpful?