Question
A programmer needs cycle detection, topological reasoning, and connectivity, and the chosen structure has the property that it typically uses recursion or a stack. Which choice fits best?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Depth-First Search
Explanation:
Depth-First Search fits because it supports cycle detection, topological reasoning, and connectivity and it typically uses recursion or a stack.
Both clues point to this choice.
Leave a Reply