retagged by
367 views

1 Answer

1 votes
1 votes

no, Dijkstra can't detect negative cycle so come up with wrong result at the end

Bellman ford is used in case of negative weight cycle

Related questions

1 votes
1 votes
1 answer
1
Jithin Jayan asked Jul 23, 2016
387 views
If a graph contains a positive weight cycle reachable from source, Can we find a well defined shortest path using Dijkstra/Bellman-Ford algorithm?
0 votes
0 votes
1 answer
3
Vipin Rai asked Nov 11, 2018
713 views
What is the difference between Dijkstra and Bellman Ford algorithm?Will the shortest path given by both be same in following conditions :a) All positive edge weightsb) So...