Graph Theory37 sections · 1633 units
Open in CourseQuiz: Dijkstra's Greedy Choice
Knowledge check
Check Your Understanding
Dijkstra always extracts the vertex with the smallest tentative distance from the priority queue. Why does this greedy choice guarantee correctness?
- A.Because the priority queue sorts edges, not vertices
- B.Because all edges have the same weight
- C.With non-negative weights, no future path through unvisited vertices can produce a shorter route to the extracted vertex
- D.Because Dijkstra processes every edge exactly twice