GATE CS 2014 · Set-2 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0080

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
  1. A
    the shortest path between every pair of vertices
  2. B
    the shortest path from W to every vertex in the graph.
  3. C
    the shortest paths from W to only those nodes that are leaves of T.
  4. D
    the longest path in the graph.

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1969/gate2014-2-14

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com