Skip to content
Official PYQ · 2012

GATE CS 2012 Q29 — Minimum Spanning Trees

Explain with AI

Let GG be a weighted graph with edge weights greater than one and G′G' be the graph constructed by squaring the weights of edges in GG. Let TT and T′T' be the minimum spanning trees of GG and G′G', respectively, with total weights tt and t′t'. Which of the following statements is TRUE?

Marks were awarded to all candidates for this question. It is not scored as a normal quiz.

View worked solution

Marks to all

1. Minimum Spanning Tree (T′=TT' = T):

Since the edge weights of GG are greater than 11, the squaring function f(x)=x2f(x) = x^2 is strictly monotonic (increasing) for all x>1x > 1. Any MST algorithm (such as Kruskal's or Prim's) relies solely on the relative order of edge weights. Since the relative order of weights remains unchanged in G′G', the set of edges selected for the minimum spanning tree remains identical. Thus, T′=TT' = T.

2. Total Weight Comparison (t′t' vs t2t^2):

Let the edges of the MST TT have weights w1,w2,…,wkw_1, w_2, \dots, w_k, where k=n−1k = n-1 is the number of edges in the MST.

  • The total weight of TT is t=∑i=1kwit = \sum_{i=1}^{k} w_i.
  • The total weight of T′T' is t′=∑i=1kwi2t' = \sum_{i=1}^{k} w_i^2.

Expanding t2t^2, we get:

t2=(∑i=1kwi)2=∑i=1kwi2+2∑1≤i<j≤kwiwj=t′+2∑1≤i<j≤kwiwjt^2 = \left( \sum_{i=1}^{k} w_i \right)^2 = \sum_{i=1}^{k} w_i^2 + 2 \sum_{1 \le i < j \le k} w_i w_j = t' + 2 \sum_{1 \le i < j \le k} w_i w_j

Since all wi>1w_i > 1:

  • If the graph has only 22 vertices (k=1k = 1 edge), then there are no cross-terms, giving t′=t2t' = t^2.
  • If the graph has 33 or more vertices (k≥2k \ge 2 edges), the cross-terms are strictly positive, giving t′<t2t' < t^2.

Conclusion:

Because the number of vertices in GG is not specified, the relationship between t′t' and t2t^2 depends on the graph size. Due to this ambiguity, GATE declared this question as Marks to All (MTA), represented here by option X.

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

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions