Question: What is the primary difference between BFS and DFS in graph traversal?
Options:
Correct Answer: BFS explores all neighbors at the present depth before moving on, while DFS explores as far as possible along a branch.
Solution:
BFS explores all neighbors at the present depth before moving on, while DFS explores as far as possible along a branch.