Computer Science, asked by sethprathamesh33, 11 months ago

Does bfs always has the shortest path from start state to goal state.

Answers

Answered by benhurmuthu
0

Explanation:

Shortest Path from a given source to destination. ... We say that BFS is the algorithm to use if we want to find the shortest path in an undirected, unweighted graph. The claim for BFS is that the first time a node is discovered during the traversal, that distance from the source would give us the shortest pat

Similar questions