Question: What is the main advantage of using BFS for searching in a graph?
Options:
Correct Answer: It guarantees the shortest path in unweighted graphs
Solution:
The main advantage of BFS is that it guarantees the shortest path in unweighted graphs by exploring all nodes at the present depth before moving deeper.