GateAI
Graph Traversals, MSTs and Shortest Paths

GATE CSE 2016 Set 1 · Q14

MCQ1 markMedium

Time

Let GG be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE? P: Minimum spanning tree of GG does not change Q: Shortest path between any pair of vertices does not change

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) P only

Graph Traversals, MSTs and Shortest Paths
  • Statement P is TRUE: Every spanning tree of a connected undirected graph with ∣V∣|V| vertices contains exactly ∣V∣−1|V| - 1 edges. If a constant value c>0c > 0 is added to every edge weight, the total weight of every spanning tree increases by the exact same amount, (∣V∣−1)c(|V| - 1)c. Therefore, the spanning tree that had the minimum weight initially will still have the minimum weight. Additionally, algorithms like Kruskal's depend purely on the relative sorted order of edge weights, which remains unchanged when adding a constant cc.

  • Statement Q is FALSE: Different paths between a pair of vertices can have different numbers of edges. If path P1P_1 has k1k_1 edges and path P2P_2 has k2k_2 edges with k1<k2k_1 < k_2, adding cc to each edge increases the weight of P1P_1 by k1ck_1 c and P2P_2 by k2ck_2 c. A path with more edges incurs a larger penalty, which can cause a previously longer path with fewer edges to become the new shortest path.

Therefore, only statement P is TRUE, which corresponds to option (A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Graph Traversals, MSTs and Shortest Paths previous year question is Q14 of the GATE CSE 2016 Set 1 paper. Find more GATE CSE PYQs on Graph Traversals, MSTs and Shortest Paths in Algorithms, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Graph Traversals, MSTs and Shortest Paths PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Graph Traversals, MSTs and Shortest Paths in GATE CSE

Graph Traversals, MSTs and Shortest Paths has 7 GATE CSE PYQs across 7 papers from 2014 to 2025. This is the only 1-mark MCQ among them, and it is the only one in GATE CSE 2016 Set 1.

How GATE tests Graph Traversals, MSTs and Shortest Paths

More from GATE CSE 2016 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 1 · Q14 · MCQ

Let G be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE? P: Minimum spanning tree of G does not change Q: Shortest path between any pair of vertices does not change

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.