Examveda

Which of the following is true about the BFS algorithm in terms of shortest path?

A. BFS does not guarantee the shortest path.

B. BFS always finds the shortest path in an unweighted graph.

C. BFS requires a sorted graph.

D. BFS does not guarantee the shortest path.

Answer: Option B


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)