edited by
1,481 views
1 votes
1 votes

If we run Dijkstra’s algorithm to find single source shortest path for the above edge weighted directed graph with ‘8’ as source. In what order do the nodes get included into the set of vertices for which the shortest path distances are finalized.

edited by

3 Answers

2 votes
2 votes
8,5,6,2,3,4,1,9,11,7,10,13,14,12 just remember property that if two relaxed items have same value than we will extract the first one which was inserted in queue.
edited by
0 votes
0 votes
8-11-13-12,,,8-9...8-5-4-1....8-5-7-10-12...8-5-6-3...8-5-2   ????

Related questions

1 votes
1 votes
3 answers
1
ankit_thawal asked Jan 25, 2018
1,571 views
I think answer should be Option(B).Path:<s,y><y,x><x,t = 7-3-2=2