Gate CS-2007 Question Paper With Solutions

Q. 6 In an unweighted, undirected connected graph, the shortest path from a node S

to every other node is computed most efficiently, in terms of time complexity, by

(A) Dijkstra’s algorithm starting from S.

(B) Warshall’s algorithm

(C) performing a DFS starting from S

(D) preforming a BFS starting from S

Answer: (D)

Explanation:

Gate CS-2007 Question Paper With Solutions

Learn More:   Gate CS-2015-1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here