Skip to content
Official PYQ · 2015

GATE CS 2015 Set 3 Q40 — Minimum Spanning Trees

Explain with AI
Let GG be a connected undirected graph of 100100 vertices and 300300 edges. The weight of a minimum spanning tree of GG is 500500. When the weight of each edge of GG is increased by five, the weight of a minimum spanning tree becomes ______.
View worked solution

Answer: 995

To find the weight of the new minimum spanning tree (MST), we can use the fundamental properties of spanning trees:

  1. Number of Edges in an MST: For any connected undirected graph with VV vertices, any spanning tree (including the MST) contains exactly V−1V - 1 edges. Here, V=100V = 100, so the MST contains: V−1=100−1=99 edgesV - 1 = 100 - 1 = 99 \text{ edges}
  2. Effect of Uniform Weight Increase: Increasing the weight of every edge in the graph by a constant c=5c = 5 preserves the relative order of all edge weights. Consequently, the set of edges that forms the MST remains unchanged.

Since the same 9999 edges are selected for the new MST, and the weight of each of these edges is increased by 55, the total weight of the new MST is calculated as:

New Weight=Old Weight+(V−1)×c\text{New Weight} = \text{Old Weight} + (V - 1) \times c New Weight=500+99×5=500+495=995\text{New Weight} = 500 + 99 \times 5 = 500 + 495 = 995

Thus, the weight of the new minimum spanning tree is 995.

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

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions