Question: In which scenario would BFS be preferred over DFS?
Options:
Correct Answer: Finding the shortest path in an unweighted graph
Solution:
BFS is preferred for finding the shortest path in an unweighted graph because it explores all neighbors at the present depth prior to moving on to nodes at the next depth level.