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