Gate CS-2014-2 Question Paper With Solutions

Q. 24 Consider the tree arcs of a BFS traversal from a source node W in an unweighted,
connected, undirected graph. The tree T formed by the tree arcs is a data structure
for computing

(A) the shortest path between every pair of vertices.

(B) the shortest path from W to every vertex in the graph.

(C) the shortest paths from W to only those nodes that are leaves of T.

(D) the longest path in the graph

Answer: (B)

Explanation:

Gate CS-2014-2 Question Paper With Solutions

Learn More:   Gate ME-2010 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here