GateAI
Minimum Spanning Trees

GATE CSE 2024 Set 2 · Q51

MSQ2 marksMedium

Time

Let GG be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in GG has even weight. Which of the following statements is/are TRUE for every such graph GG ?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: D) In each cycle C in G, either all edges in C have even weight OR all edges in C have odd weight

Minimum Spanning Trees

Let TT be any spanning tree of GG. We are given that the weight of every spanning tree in GG is even.

  1. Edge Exchange Property: For any edge e=(u,v)∉Te = (u, v) \notin T, adding ee to TT forms a unique fundamental cycle CeC_e containing ee and a path P⊆TP \subseteq T connecting uu and vv. For any edge e′∈Pe^{\prime} \in P, the set T′=(T∪{e})∖{e′}T^{\prime} = (T \cup \{e\}) \setminus \{e^{\prime}\} is also a valid spanning tree of GG.

    The weight of T′T^{\prime} is:

    w(T′)=w(T)+w(e)−w(e′)w(T^{\prime}) = w(T) + w(e) - w(e^{\prime})

    Since both w(T)w(T) and w(T′)w(T^{\prime}) are even integers, their difference must be even:

    w(e)−w(e′)≡0(mod2)  ⟹  w(e)≡w(e′)(mod2)w(e) - w(e^{\prime}) \equiv 0 \pmod 2 \implies w(e) \equiv w(e^{\prime}) \pmod 2
  2. Parity in Cycles: This implies that every edge in the cycle CeC_e must have the same parity (either all even or all odd). Since any cycle CC in GG can be decomposed into fundamental cycles (or can have a tree containing all but one of its edges), all edges in any cycle CC must share the exact same parity. Therefore, statement (D) is TRUE.

  3. Counterexample for (A), (B), and (C): Consider a graph GG that is itself a tree (which has no cycles). Since GG has only one spanning tree (itself), as long as the sum of all edge weights is even, the condition holds. For example, a tree with two edges of weight 11 (odd) and one edge of weight 22 (even) has total weight 44 (even). In this graph, not all edges are even, nor are all edges odd, disproving (A) and (B). Moreover, if a graph consists of two disjoint cycles connected by a bridge, one cycle could have all even edges and the other all odd edges, disproving (C).

Hence, only statement (D) is correct.

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 Minimum Spanning Trees previous year question is Q51 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on Minimum Spanning Trees 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 Minimum Spanning Trees 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.

Minimum Spanning Trees in GATE CSE

Minimum Spanning Trees has 13 GATE CSE PYQs across 9 papers from 2011 to 2026. 2 of them are 2-mark MSQs like this one, and GATE CSE 2024 Set 2 has 2.

How GATE tests Minimum Spanning Trees

More from GATE CSE 2024 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2024 Set 2 · Q51 · MSQ

Let G be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in G has even weight. Which of the following statements is/are TRUE for every such graph G ?

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.