Skip to content
Official PYQ · 2021

GATE CS 2021 Set 2 Q1 — Minimum Spanning Trees

Explain with AI

Let GG be a connected undirected weighted graph. Consider the following two statements.

  • S1S_1: There exists a minimum weight edge in GG which is present in every minimum spanning tree of GG.
  • S2S_2: If every edge in GG has distinct weight, then GG has a unique minimum spanning tree.

Which one of the following options is correct?

Choose one option
View worked solution

Answer: C

We analyze the two statements individually:

Statement S1S_1: False

Consider a counterexample where GG is a cycle graph C3C_3 with three vertices u,v,wu, v, w and three edges of equal minimum weight:

  • e1=(u,v)e_1 = (u, v) with weight 11
  • e2=(v,w)e_2 = (v, w) with weight 11
  • e3=(w,u)e_3 = (w, u) with weight 11

The minimum edge weight in GG is 11. Any Minimum Spanning Tree (MST) of this graph must contain exactly 22 edges to avoid a cycle. The possible MSTs are:

  • T1={e1,e2}T_1 = \{e_1, e_2\}
  • T2={e2,e3}T_2 = \{e_2, e_3\}
  • T3={e3,e1}T_3 = \{e_3, e_1\}

The intersection of all these MSTs is empty (T1∩T2∩T3=∅T_1 \cap T_2 \cap T_3 = \emptyset). Thus, there is no single minimum weight edge that is present in every MST of GG.

Statement S2S_2: True

This is a standard theorem in graph theory. If all edge weights in a connected undirected graph GG are distinct, then GG has a unique minimum spanning tree.

Proof sketch: Suppose there are two distinct MSTs, T1T_1 and T2T_2. Let ee be the edge of minimum weight that belongs to one tree but not the other (say, e∈T1∖T2e \in T_1 \setminus T_2). Adding ee to T2T_2 creates a unique cycle CC. This cycle must contain at least one edge e′e' that is not in T1T_1. Since all edge weights are distinct, and ee is the minimum weight edge in the symmetric difference, we must have weight(e)<weight(e′)\text{weight}(e) < \text{weight}(e'). Replacing e′e' with ee in T2T_2 yields a spanning tree with a strictly smaller weight than T2T_2, which contradicts the assumption that T2T_2 is an MST. Thus, the MST must be unique.

Hence, S1S_1 is false and S2S_2 is true.

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

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions