Graph Theory37 sections · 1633 units
Open in CourseQuiz: Dijkstra Traps
Knowledge check
Check Your Understanding
You run Dijkstra but get wrong answers. The graph has an edge with weight . Why does Dijkstra fail?
- A.Dijkstra only works on trees
- B.Negative edges can make already-finalized distances incorrect
- C.The priority queue doesn't support negative numbers
- D.You need to add a constant to all edges first