logo

Question detail

In a trace of Dijkstra’s algorithm starting at vertex A, the current tentative distances are B = 4, C = 1 and D = infinity. Which vertex should be selected next?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Optimisation algorithms

Exam-style question

Try this first

In a trace of Dijkstra’s algorithm starting at vertex A, the current tentative distances are B = 4, C = 1 and D = infinity. Which vertex should be selected next?.

  1. A.A
  2. B.B
  3. C.C
  4. D.D

Model answer

What a good answer should say

  • C

Explanation

Why this works

The unvisited vertex with the smallest tentative distance is C, with a distance of 1.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.