GATE CS 2024 Set 2 — Question 51
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.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 ?
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.
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Graph Theory (Math)
2026 Set 2 Q3A day can only be cloudy or sunny. The probability of a day being cloudy is , independent of…2026 Set 2 Q5‘When it is raining, peacocks dance.’ Based only on this sentence, which one of the following…2026 Set 2 Q8Figures (i) and (ii) represent intercity highway systems. The black dots represent cities and the…2026 Set 1 Q10An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice…2026 Set 2 Q10An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice…