GATE CS 2025, set 2 · Question 37 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Let G be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant α is added to the weight of every edge.
Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in G before and after the edge weight update?
- (A) Every MST remains an MST, and every SP remains an SP.
- (B) MSTs need not remain MSTs, and every SP remains an SP.
- (C) Every MST remains an MST, and SPs need not remain SPs.
- (D) MSTs need not remain MSTs, and SPs need not remain SPs.
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