GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Apply handshake parity to odd-degree vertices

3 questions solved the same way, newest first. Back to Discrete Mathematics

2 marks · MCQ
Report issue

Graph Theory

Question 28, GATE 2016: U contains 23 distinct compounds; a subset S of 9 compounds has each member reacting with exactly 3 compounds of U. Treat reaction as mutual. Which is always true? I every member of U\S reacts with an odd number; II at least one does; III every member reacts with an even number. A I only; B II only; C III only; D none.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Model mutual reactions as an undirected graph. The nine vertices in S have degree 3, hence are nine odd-degree vertices. The total number of odd-degree vertices must be even, so the remaining 14 vertices contain an odd, in particular nonzero, number of odd-degree vertices. At least one is necessary; all 14 being odd is impossible. Therefore only II, B.

The handshaking identity is Σdeg(v)=2|E|, an even number because every reaction contributes two endpoints. Nine degrees of three contribute 27, so the sum of remaining degrees must be odd. An odd sum contains an odd number of odd summands. This proves II without needing to know any individual reaction partner.

Original paper, page 33 · Answer key

1 mark · MCQ
Report issue

Handshaking lemma for undirected graphs

Graph Theory

Question 25, GATE 2013: For undirected graphs, assess P:the number of odd-degree vertices is even; Q:the sum of all degrees is even. A Ponly; B Qonly; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The source asks about undirected graphs. Each edge contributes 2 to the sum of vertex degrees, so that sum is 2|E| and even. Reducing the sum modulo 2 shows that the number of odd-degree vertices must also be even. Thus both P and Q hold, C.

Count edge endpoints in two ways. Summing degrees counts each undirected edge once at each end, so Σdeg(v)=2|E| and Q holds. Separate even- and odd-degree vertices. Even degrees contribute 0 modulo 2; each odd degree contributes 1. Since the total is even, the count of odd contributions must be even, proving P. The result also accommodates loops if each loop contributes 2 to degree, though the ordinary simple-graph convention suffices.

Original paper, page 5 · Answer key

5 marks · Descriptive
Report issue

Even number of odd-degree vertices

Graph Theory

Question 24, GATE 1995: Prove that a finite undirected graph has an even number of vertices of odd degree.
Tap to enlarge
Answer & solution

Answer: The degree sum equals 2|E|, so the number of its odd summands is even. (no official key was published)

Each undirected edge contributes one incident end at each endpoint. Counting all incident ends first by edges and then by vertices yields the handshaking identity ∑v deg(v)=2|E|, an even integer. If loops are allowed, a loop contributes 2 to the degree of its vertex, so the same identity remains true under that standard convention.

Partition the vertices into those with even degree and those with odd degree. The sum over the even-degree vertices is even. Subtracting it from the even total shows that the sum over the odd-degree vertices is also even. A sum of m odd integers has parity m: write each degree as 2ki+1, so their sum is 2∑ki+m. It can be even only if m is even. Hence the number of odd-degree vertices is even.

The graph need not be connected, and isolated vertices have degree 0 and do not affect the argument. Finiteness ensures that these are ordinary finite sums. The assertion is about undirected degree; for a directed graph, odd outdegrees alone need not occur an even number of times. One must specify the appropriate total-degree convention rather than reuse this proof unaltered.

Original paper, page 8