GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Derive unknown tree degrees using sum of degrees

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

How these are solved

Use the handshaking identity sum(deg)=2(n-1) for trees. The 2010 problem compares vertex counts from equal weighted degree sums;

1 mark · NAT
Report issue

Trees & Connectivity

Question 20, GATE 2017: T is a tree with 10 vertices. Find the sum of degrees of all vertices.
Tap to enlarge
Answer & solution

Official answer: 18.0

Our answer: 18

1. A finite undirected tree is connected and acyclic. Its edge count is number of vertices minus one, so this tree has 10−1=9 edges.

2. Sum the degrees by counting edge ends: every edge contributes exactly one to each of its two endpoints. Hence Σdeg(v)=2|E|.

3. The result is 2×9=18. This does not depend on whether the tree is a path, star, or another shape.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Degree sum of two trees

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