Question: Which of the following scenarios is best suited for using a Disjoint Set Union?
Options:
Correct Answer: Detecting cycles in a graph
Solution:
Disjoint Set Union is particularly useful for detecting cycles in a graph, as it can efficiently manage and merge sets of connected components.