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. The working values at three unlabelled vertices are 9, 7 and 12. Which is made permanent?
- A.
- B.
- C.
- D. None yet
2. has label 10 and road . has working value 15. What happens?
- A. keeps 15
- B. is replaced by 19
- C. is replaced by 14
- D. is made permanent as 14 at once
3. How do you find the shortest route after the labels are known?
- A. Join the vertices in order of labelling
- B. Choose the smallest edges from the start
- C. Add every edge length
- D. Work back from the target through vertices whose label plus edge length gives the current label
4. Roads: , , , , . What is the shortest distance from to ?
- A.
- B.
- C.
- D.
5. When can the algorithm stop if only the shortest route to is needed?
- A. When first gets a working value
- B. When is given a permanent label
- C. When all edges have been used
- D. When every working value has been crossed out