Question

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 ?

Choose every correct option
Official answer and solution
Official answer
D
From
Official GATE 2024 answer key

Solution

Use the fundamental cycle exchange property between spanning trees TT and T′=T∪{e}∖{e′}T' = T \cup \{e\} \setminus \{e'\} to show that any two edges in the same cycle have the same weight parity.

Let CC be any cycle in GG, and let e,e′e, e' be any two edges in CC. Extend C∖{e}C \setminus \{e\} to a spanning tree TT of GG (since C∖{e}C \setminus \{e\} is acyclic, it can always be extended to a spanning tree TT that does not contain ee).

Now replace e′∈Ce' \in C with ee to form a new spanning tree T′=(T∖{e′})∪{e}T' = (T \setminus \{e'\}) \cup \{e\}. The weights of TT and T′T' satisfy:

w(T′)−w(T)=w(e)−w(e′)w(T') - w(T) = w(e) - w(e')

Since every spanning tree in GG has even weight, w(T′)−w(T)w(T') - w(T) is even, which implies w(e)≡w(e′)(mod2)w(e) \equiv w(e') \pmod 2. Because this holds for every pair of edges e,e′e, e' in CC, all edges in CC have the same parity (either all even or all odd). Thus (D) is TRUE.

Why (A), (B), and (C) are FALSE:

  • Consider a triangle C3C_3 in which all 33 edges have odd weight 11: every spanning tree has 22 edges of weight 11 (total weight 22, which is even), falsifying (A) and (C).
  • Attach a bridge of even weight 22 to that triangle: now every spanning tree has weight 1+1+2=41 + 1 + 2 = 4 (even), yet GG has both odd-weight and even-weight edges, falsifying (B).
Final answer

Option (D)

Common trap

Assuming that edges in different cycles or bridges must also share the same parity (Option B).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
Question
51 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.