Dijkstra's algorithm

Dijkstra's algorithm Quiz

Spec 2.2 · Edexcel International A Level Maths: 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. 1. In Dijkstra's algorithm, vertex AA has final value 77 and the arc ABAB has weight 44. BB has a working value of 1313. What happens?

    • A. BB keeps 1313
    • B. BB is given a working value of 1111
    • C. BB is permanently labelled 44
    • D. BB is given a working value of 33
  2. 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. 3. In a network, final values are S=0S=0, A=5A=5, B=8B=8 and the arcs are SA=5SA=5, AB=3AB=3, SB=9SB=9. What is the shortest route to BB?

    • A. SS-BB of length 99
    • B. SS-AA-BB of length 88
    • C. SS-AA-BB of length 99
    • D. SS-BB of length 88
  4. 4. The final value at TT is 2020. The arc UTUT has weight 66. Which final value at UU means UU is on the shortest route?

    • A. 2626
    • B. 66
    • C. 1414
    • D. 1313
  5. 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

Quiz