Dijktra algorithm vs breath first search for shortest path in graph
问题 I need some clarifications and inputts regarding Dijktra's algorithm vs breath first search in directed graphs, if these are correct. Dijktra's algorithm finds the shortest path from Node A to Node F in a weighted graph regardless of if there is a cycle or not (as long as there are no negative weights) but for that, All paths from A to all other Nodes in the graph are calculated and we grab the path from A to F by reversing the sequences of nodes in prev`. BFS: finds the shortest path from