GATE CS 2012 · Question 40 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra's shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex v is updated only when a strictly shorter path to v is discovered.

- (A) SDT
- (B) SBDT
- (C) SACDT
- (D) SACET
Answer
Answer (D)
Answer from the official GATE CS 2012 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes