Assume Dijkstra's algorithm is run on the graph below, starting from source…

Assume Dijkstra's algorithm is run on the graph below, starting from source vertex G, to find the shortest path from G to every other vertex.

image.png

Find the number of edges in the graph that are NOT used in the resulting shortest-path tree.

  1. A.

    4

  2. B.

    6

  3. C.

    7

  4. D.

    None of these

Attempted by 47 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…