Skip to content
Official PYQ · 2025

GATE CS 2025 Set 2 Q27 — Minimum Spanning Trees

Explain with AI

​​​​Let G\text{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\text{G} before and after the edge weight update?

Choose one option
View worked solution

Answer: C

To understand the effect of adding a positive constant α\alpha to every edge weight, we analyze MSTs and Shortest Paths separately:

  • Minimum Spanning Trees (MSTs): Any spanning tree of a graph with VV vertices contains exactly V−1V - 1 edges. If we add α\alpha to the weight of every edge, the total weight of any spanning tree TT increases by exactly (V−1)α(V - 1)\alpha. Since this is a constant addition for all spanning trees, the relative ordering of their weights remains unchanged. Thus, every MST remains an MST.
  • Shortest Paths (SPs): Different paths between two vertices can have different numbers of edges. Adding α\alpha to each edge penalizes paths with more edges more heavily than paths with fewer edges. For example, consider two paths between uu and vv: P1P_1 with 11 edge of weight 1010, and P2P_2 with 33 edges of weight 33 each (total weight 99). Initially, P2P_2 is the shortest path. If we add α=2\alpha = 2 to each edge, the weight of P1P_1 becomes 1212 and the weight of P2P_2 becomes 1515. Now, P1P_1 becomes the shortest path. Thus, SPs need not remain SPs.

Hence, every MST remains an MST, and SPs need not remain SPs.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions