Skip to content
GATEiit

GATE CSE 2023 Q30: Sum of eigenvalues of a graph's adjacency matrix with self-loops

Question

Let AA be the adjacency matrix of the graph with vertices {1,2,3,4,5}\{1, 2, 3, 4, 5\}.

Graph on vertices 1 to 5 with edges 3–5, 3–2, 5–4, 4–2 and 2–1; vertices 3 and 4 each have a self-loop
Tap the figure to enlarge

Let λ1,λ2,λ3,λ4\lambda_1, \lambda_2, \lambda_3, \lambda_4, and λ5\lambda_5 be the five eigenvalues of AA. Note that these eigenvalues need not be distinct.

The value of λ1+λ2+λ3+λ4+λ5=\lambda_1 + \lambda_2 + \lambda_3 + \lambda_4 + \lambda_5 = _______.

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 AA.

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

WhatsAppDownload image

Source: official GATE 2023 CS question paper and final answer key, organised by IIT Kanpur. Question paper · Answer key