GATE CS 2025 · Set 1 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0013

Let \(G(V, E)\) be an undirected and unweighted graph with 100 vertices. Let \(d(u, v)\) denote the number of edges in a shortest path between vertices \(u\) and \(v\) in \(V\). Let the maximum value of \(d(u, v)\), \(u, v \in V\) such that \(u \neq v\), be 30. Let \(T\) be any breadth-first-search tree of \(G\). Which ONE of the given options is CORRECT for every such graph \(G\)?
  1. A
    The height of \(T\) is exactly 15.
  2. B
    The height of \(T\) is exactly 30.
  3. C
    The height of \(T\) is at least 15.
  4. D
    The height of \(T\) is at least 30.

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/460047/gate-cse-2025-set-1-question-33

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