Gate CS-2004 Question Paper With Solutions

Q. 7 Suppose we run Dijkstra’s single source shortest-path algorithm on the following

edge-weighted directed graph with vertex P as as the source.

Gate CS-2004 Question Paper With Solutions

In what order do the nodes get included into the set of vertices ofr which the

shortest path distances are finalized?

(A) P,Q,R,S,T,U

(B) P,Q,R,U,S,T

(C) P,Q,R,U,T,S

(D) P,Q,T,R,U,S

Answer: (B)

Explanation:

Gate CS-2004 Question Paper With Solutions

Learn More:   Gate EC-2016 - 1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here