Question: In which scenario would Depth-First Search (DFS) be preferred over Breadth-First Search (BFS)?
Options:
Correct Answer: When memory is limited
Solution:
DFS is more memory efficient than BFS in scenarios where the graph is deep and narrow, as it uses a stack instead of a queue.