GATE CSE 2023 Q30: Sum of eigenvalues of a graph's adjacency matrix with self-loops
- Engineering Mathematics
- 1 mark
- NAT
- No negative marking
Question
Let be the adjacency matrix of the graph with vertices .

Let , and be the five eigenvalues of . Note that these eigenvalues need not be distinct.
The value of _______.
Try it: numerical answer: type the value
Numerical answer. No negative marking.
Show answer and explanation
Answer: 2 (or 4) (official GATE 2023 final answer key)
Concept used: The sum of the eigenvalues equals the trace; in an adjacency matrix only self-loops sit on the diagonal.
First step: Count the self-loops in the graph: they are the only non-zero diagonal entries of .
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2023 CS question paper and final answer key, organised by IIT Kanpur. Question paper · Answer key
More Engineering Mathematics PYQs
- 2026 Session 1 · Q11Pólya urn: equal red and blue after two steps
- 2026 Session 1 · Q124×4 binary matrices with even parity in every row and column
- 2026 Session 1 · Q13Maximum multiplicity of an eigenvalue of an n×n real matrix
- 2026 Session 1 · Q20Matrix with e2 in its null space: determinant and rank
- 2026 Session 1 · Q32Continuity at 0 of c1·e^x − c2·ln(1/x)
- 2026 Session 1 · Q46Extrema and smoothness of (|x|/2 − x)(x − |x|/2)