3 3 votes Consider the following weighted, directed graph. If Dijkstra's single-source shortest path algorithm is run with source vertex 'S', what is the order in which the vertices are finalised (i.e., extracted from the priority queue)?S to A: weight 5 S to B: weight 2 B to A: weight 2 B to C: weight 4 A to C: weight 1 A to D: weight 6 C to D: weight 3 $S, B, A, C, D$ $S, A, B, C, D$ $S, B, C, A, D$ $S, B, A, D, C$ Algorithms goclasses algorithms goclasses-cs-dpp goclasses-cs-dpp-day-83 goclasses-algorithms-practice-questions + – GO Classes 451 views answer comment Share Follow Print See 1 comment 1 1 comment reply Vedanth_Upadhyaya commented May 27 reply Follow flag option a is ans 0 0 replyShare Please log in or register to add a comment.
1 1 vote answer is A Gaurav_sharma 1 answered Sep 13, 2025 Gaurav_sharma 1 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Priority Queue: SBACDAns: Option A radheemky answered Sep 14, 2025 radheemky comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Answer: Option A) Path: S➡B➡A➡C➡D Cost: 2+2+1+3=8 Rajkumar Chaudhary answered Nov 20, 2025 Rajkumar Chaudhary comment Share Follow 0 reply Please log in or register to add a comment.