Ask
your own question, for FREE!
Computer Science
26 Online
why djikstra algorithm can't solve graph with negative edge
Still Need Help?
Join the QuestionCove community and study together with friends!
hello
The mechanics of the algorithm don't really allow it to. Dijkstra's algorithm immediately removes a node from consideration when the sum of existing weights and the shortest path weight to the node are higher than those of other nodes. With negative edge weights, a future edge could make one of those nodes viable again, but Dijkstra's algorithm will already have knocked it out of the running, so it won't be able to go through that node to find the shortest path. Does that make sense?
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Gdub08:
The equation 24 x 2 + 25 x u2212 47 a x u2212 2 = u2212 8 x u2212 3 u2212 53 a x u2212 2 is true for all values of x u2260 2 a , where a is a constant.
Gdub08:
You have three ovens. I coal oven, a firewood oven, and a electric oven. But only 1 match.
Gdub08:
You have three ovens. I coal oven, a firewood oven, and a electric oven. But only 1 match.
NaZebk:
Steppin' through the block, got the blicky in my waist, Enemies lurkin', better know they place, Brody in the back, he ainu2019t catchinu2019 no case, We mo
gelphielvr:
What's the difference between colonization and imperialism
gelphielvr:
How can I identify the text structures compare and contrast, problem and solution
21 hours ago
0 Replies
0 Medals
1 day ago
7 Replies
0 Medals
1 day ago
0 Replies
0 Medals
22 hours ago
18 Replies
0 Medals
22 hours ago
3 Replies
0 Medals
22 hours ago
1 Reply
0 Medals