GATE CS 2025, set 1 · Question 18 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Let G be any undirected graph with positive edge weights, and T be a minimum spanning tree of G. For any two vertices, u and v, let d₁(u, v) and d₂(u, v) be the shortest distances between u and v in G and T, respectively. Which ONE of the options is CORRECT for all possible G, T, u and v?
- (A) d₁(u, v) = d₂(u, v)
- (B) d₁(u, v) ≤ d₂(u, v)
- (C) d₁(u, v) ≥ d₂(u, v)
- (D) d₁(u, v) ≠ d₂(u, v)
Answer
Answer (B)
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