Can Dijkstra’s Algorithm Handle Negative Edges Cycles?
Can Dijkstra’s Algorithm Handle Negative Edges Cycles? shortest-path problem Which algorithm does not work with negative edges? As 3 is less than 5, but Dijkstra’s algorithm gives the incorrect answer as 5, which is not the shortest distance. Therefore Dijkstra’s Algorithm fails for negative cases. Can we use Dijkstra’s algorithm to find the shortest paths