Question DSA-GRAPH-0013
MediumWhy does Dijkstra's algorithm fail with negative edge weights?
- A.
It finalises a vertex's distance when first extracted, but a negative edge found later could make it shorter
- B.
It runs forever
- C.
Sign up free to see the answer and a step-by-step explanation.