Skip to content
Azhimathi Mayam logoDSA Study HubPCCST303 · KTU · S3
Model Question Paper (as circulated)Part B · Q14a5 marksCO3Module 3

Question 14a

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.

Figure (transcribed): Directed weighted graph: S→A (4), S→B (3), S→D (7), A→C (1), C→E (1), C→D (3), B→D (4), D→E (1), E→G (2), G→E (2), D→T (3), E→T (4), G→T (3), D→F (5), T→F (5); B→S edge also drawn (curved arrow between S and B).

Transcription notes:
  • Edge directions read from a low-resolution re-typeset image; re-verify against the original before publishing a solution.

Topics: Single source all destinations (Dijkstra)

Solution not published yet

We only publish answers that have been checked. Study the linked topic meanwhile.

Similar questions