Dijkstra's algorithm Quiz
Studying this course? Keep your progress in one place.
Pick an answer for each. Quizzes never use energy.
5 questions, one answer each
Each answer is checked as you go, with why.
See all 5 questions
1. In Dijkstra's algorithm, vertex has final value and the arc has weight . has a working value of . What happens?
- A. keeps
- B. is given a working value of
- C. is permanently labelled
- D. is given a working value of
2. Which vertex is permanently labelled next?
- A. The one with the largest working value
- B. The one nearest the target
- C. The one joined to the start by the shortest arc
- D. The one with the smallest working value that is not yet labelled
3. In a network, final values are , , and the arcs are , , . What is the shortest route to ?
- A. - of length
- B. -- of length
- C. -- of length
- D. - of length
4. The final value at is . The arc has weight . Which final value at means is on the shortest route?
- A.
- B.
- C.
- D.
5. Which statement about Dijkstra's algorithm is true?
- A. It finds the shortest route only to the target
- B. It uses arc weights that can be negative
- C. It finds the shortest distance to every vertex
- D. It starts at the vertex with the largest arc