GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 20

GATE CSE 2017 Set 1 Q20

Discrete Mathematics · Trees & Connectivity · Full GATE CSE 2017 Set 1 paper

GATE 2017 Set 1, Q20 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