What is difference between BFS and Dijkstra’s algorithms when looking for shortest path?
Breadth-first search is just Dijkstra’s algorithm with all edge weights equal to 1. Dijkstra’s algorithm is conceptually breadth-first search that respects edge costs. The process for exploring the graph is structurally the same in both cases.