Suppose we run Dijkstra’s single source shortest-path algorithm on the…

GATE · 2004 · CS

Suppose we run Dijkstra’s single source shortest-path algorithm on the following edge weighted directed graph with vertex P as the source. In what order do the nodes get included into the set of vertices for which the shortest path distances are finalized?

image.png

  1. A.

    P, Q, R, S, T, U

  2. B.

    P, Q, R, U, S, T

  3. C.

    P, Q, R, U, T, S

  4. D.

    P, Q, T, R, U, S

Attempted by 327 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…