What data structure does Dijkstra's algorithm primarily use to keep track of…

What data structure does Dijkstra's algorithm primarily use to keep track of vertices which are not included yet in the shortest path tree?

  1. A.

    Stack

  2. B.

    Priority Queue

  3. C.

    Queue

  4. D.

    Set

Attempted by 403 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…