edited by
26,771 views
66 votes
66 votes

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.

  1.  $\text{SDT}$
  2.  $\text{SBDT}$
  3.  $\text{SACDT}$
  4.  $\text{SACET}$
edited by

9 Answers

1 votes
1 votes

Statement  ""IN ANY ITERATION ,THE SHORTEST PATH TO A VERTEX V IS UPDATED ONLY WHEN A STRICTLY SHORTEST PATH TO V IS DISCOVERED"""​​​​​​​

 that means we have to considered only such node whose relaxation can affect/reduces /(changes to min. value than earlier)  other neighbouring  nodes along with that  it must be in shortest path(  i.e.  while relaxation of D it reduces the node value of F but cant reduces the value of T  , therefore it is not considered)

0 votes
0 votes

Answer D is correct.

D)S->A->C->E->T

Answer:

Related questions

72 votes
72 votes
14 answers
5
gatecse asked Sep 26, 2014
28,835 views
A list of $n$ strings, each of length $n$, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is$O (n \log...
59 votes
59 votes
5 answers
6
42 votes
42 votes
4 answers
7
35 votes
35 votes
3 answers
8
gatecse asked Aug 5, 2014
15,638 views
The recurrence relation capturing the optimal execution time of the $Towers \ of \ Hanoi$ problem with $n$ discs is$T(n) = 2T(n − 2) + 2$$T (n) = 2T(n − 1) + n$$T (...