Question
Let be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in has even weight. Which of the following statements is/are TRUE for every such graph ?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2024 answer key
Solution
Use the fundamental cycle exchange property between spanning trees and to show that any two edges in the same cycle have the same weight parity.
Let be any cycle in , and let be any two edges in . Extend to a spanning tree of (since is acyclic, it can always be extended to a spanning tree that does not contain ).
Now replace with to form a new spanning tree . The weights of and satisfy:
Since every spanning tree in has even weight, is even, which implies . Because this holds for every pair of edges in , all edges in have the same parity (either all even or all odd). Thus (D) is TRUE.
Why (A), (B), and (C) are FALSE:
- Consider a triangle in which all edges have odd weight : every spanning tree has edges of weight (total weight , which is even), falsifying (A) and (C).
- Attach a bridge of even weight to that triangle: now every spanning tree has weight (even), yet has both odd-weight and even-weight edges, falsifying (B).
Option (D)
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.