GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 1

Degree sum of two trees

Discrete Mathematics · Trees & Connectivity · Full GATE CSE 2010 paper

GATE 2010, Q1 1 mark · MCQ
Report issue

Trees & Connectivity

Question 1, GATE 2010: For a graph G=(V,E), define ξ(G)=Σ_d i_d·d, where i_d is the number of vertices of degree d. S and T are two different trees satisfying ξ(S)=ξ(T). Which relation holds between their numbers of vertices |S| and |T|?
Options: (A) |S|=2|T|; (B) |S|=|T|−1; (C) |S|=|T|; (D) |S|=|T|+1.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

The defined sum counts every vertex degree and hence equals 2|E| by the handshake lemma. A tree with v vertices has v−1 edges, so ξ=2(v−1). Equal ξ for S and T implies equal vertex counts |S|=|T|, C; the trees need not be isomorphic.

Why the degree sum works: each edge has two endpoints, so contributes exactly two to Σ_d id d. Writing s=|S| and t=|T| gives 2(s−1)=2(t−1), hence s=t. “Different” need not mean different sizes: two nonisomorphic trees can have the same vertex count and therefore the same degree sum.

Original paper, page 2