GATE CS 2024 Set 2 — Question 51
MSQ+2 / -0HardTrees & Spanning TreesGraph Theory (Math)Engineering MathematicsGraph Terminology (Degree, Paths, Cycles)
Engineering Mathematics → Graph Theory (Math) → Graph Terminology (Degree, Paths, Cycles)
Last updated
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 ?
A.
All edges in have even weight
B.
All edges in have even weight OR all edges in have odd weight
C.
In each cycle in , all edges in have even weight
D.
In each cycle in , either all edges in have even weight OR all edges in have odd weight
Correct answer
(D) In each cycle C in G, either all edges in C have even weight OR all edges in C have odd weight
Solution
Let denote the weight of edge . The weight of a spanning tree is . We are given that
Let be any other edge in . Since and is on the unique cycle formed by adding to , the set of edges forms another spanning tree of .The weights of and are:
We are given that both
This implies that any two edges and in the cycle must have the same parity (both even or both odd). Since this holds for any pair of edges in , all edges in the cycle must have the same parity.Thus, for every cycle , either all edges in are even, or all edges in are odd. This corresponds to statement (D).Counter-examples for other options:
W(T) is even for every spanning tree of .Consider any cycle in . Let be an edge in . Since is connected, there exists a spanning tree such that contains all edges of except (i.e., is the fundamental cycle edge with respect to ).Let be any other edge in . Since and is on the unique cycle formed by adding to , the set of edges forms another spanning tree of .The weights of and are:
We are given that both
W(T) and are even. Therefore, their difference must be even:This implies that any two edges and in the cycle must have the same parity (both even or both odd). Since this holds for any pair of edges in , all edges in the cycle must have the same parity.Thus, for every cycle , either all edges in are even, or all edges in are odd. This corresponds to statement (D).Counter-examples for other options:
- (A) & (C): Consider a graph consisting of a single cycle of length 3 (triangle) with edge weights 1, 1, 1. The spanning trees have weights (even). This satisfies the condition. However, the edges are odd, so (A) and (C) are false.
- (B): Consider two disjoint triangles, one with weights (1, 1, 1) and another with weights (2, 2, 2), connected by a path of two edges with weights 1, 1. The total weight of any spanning tree will be sum of (2 edges from triangle 1) + (2 edges from triangle 2) + (path edges). Sum = (odd+odd) + (even+even) + (odd+odd) = even + even + even = even. This graph satisfies the condition. However, it contains both odd and even edges, so (B) is false.
More questions on Graph Theory (Math)
2024 Set 2 Q3In an engineering college of 10,000 students, 1,500 like neither their core branches nor other…2024 Set 1 Q11Let be a function such that…2024 Set 2 Q12Let and be the following propositions: : Fail grade can be given. : Student scores…2024 Set 1 Q12The product of all eigenvalues of the matrix…2024 Set 1 Q14Consider a permutation sampled uniformly at random from the set of all permutations of…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free