GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 30

GATE CSE 2023 Q30

Discrete Mathematics · Graph Theory · Full GATE CSE 2023 paper

GATE 2023, Q30 1 mark · NAT
Report issue

Graph Theory

Question 30, GATE 2023: An undirected graph on {1,2,3,4,5} has edges {1,2},{2,3},{2,4},{3,5},{4,5}, and self-loops at 3 and 4. Find the sum of the five eigenvalues of its adjacency matrix. Account for the two officially accepted self-loop conventions.
Tap to enlarge
Answer & solution

Official answer: 2 OR 4

Our answer: 2 or 4, according to the self-loop adjacency convention

The sum of eigenvalues equals trace(A). Only the self-loops at vertices 3 and 4 contribute diagonal entries; the other edges do not. If each loop contributes 1 to its adjacency diagonal, the trace is 2. If the undirected-loop convention records 2 on the diagonal to count incidences, the trace is 4. Both exact alternatives are officially accepted: 2 to 2 OR 4 to 4. This is a union of two singleton answers, not the interval from 2 to 4.

Teaching detail. The characteristic polynomial coefficient for the sum of eigenvalues gives trace(A), counting algebraic multiplicity, even without computing individual eigenvalues. Every edge joining two different vertices contributes off-diagonal entries and cannot affect this trace. The only contributions are therefore the two loops. Some adjacency conventions count each loop once, others twice to preserve row-sum degree identities. The official key accepts exactly 2 or exactly 4; 3 is not accepted, despite lying numerically between them. This is why the key must retain separate singleton ranges.

Original paper, page 28 · Answer key