Question
Let be a tree with 10 vertices. The sum of the degrees of all the vertices in is ______.
Official answer and solution
- Official answer
- 18
- From
- Official GATE 2017 answer key
Solution
Apply the Handshaking Lemma to the number of edges in a tree with 10 vertices.
A tree with vertices is a connected acyclic graph and contains exactly edges. For , the number of edges is:
According to the Handshaking Lemma, the sum of the degrees of all vertices in any undirected graph is equal to twice the number of edges:
18.0
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 20 of 65, printed as CS Q.20
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.