Consider the tree arcs of a BFS traversal from a source node W in an…

GATE · 2014 · CS · Set 2 · Computer Science & IT

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.

Attempted by 400 students.

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…