GATE CS 2025 · Set-2 · Shortest Path Algorithms

MCQ · 2 marks · Problem PROG-GRPH-0040

Let \(G\) be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant \(\alpha\) 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?
  1. A
    Every MST remains an MST, and every SP remains an SP.
  2. B
    MSTs need not remain MSTs, and every SP remains an SP.
  3. C
    Every MST remains an MST, and SPs need not remain SPs.
  4. D
    MSTs need not remain MSTs, and SPs need not remain SPs.

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/460808/gate-cse-2025-set-2-question-27

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