If two elements belong to the same set in a Disjoint Set Union, what will the 'Find' operation return for both elements?

Practice Questions

1 question
Q1
If two elements belong to the same set in a Disjoint Set Union, what will the 'Find' operation return for both elements?
  1. Different roots
  2. The same root
  3. An error
  4. The size of the set

Questions & Step-by-step Solutions

1 item
Q
Q: If two elements belong to the same set in a Disjoint Set Union, what will the 'Find' operation return for both elements?
Solution: If two elements belong to the same set in a Disjoint Set Union, the 'Find' operation will return the same root for both elements.
Steps: 5

Related Questions

Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely