GATE CS 2025, set 1 · Question 43 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
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 ∈ V such that u ≠ 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?
- (A) The height of T is exactly 15.
- (B) The height of T is exactly 30.
- (C) The height of T is at least 15.
- (D) The height of T is at least 30.
Answer
Answer (C)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes