Question

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

Undirected graph with 5 vertices {1, 2, 3, 4, 5}, edges (1,2), (2,3), (2,4), (3,5), (4,5), and self-loops at vertex 3 and vertex 4.

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 = _______.

Official answer and solution
Accepted answers
2, or 4
From
Official GATE 2023 answer key
About the official key

Official key accepted both 2 to 2 and 4 to 4 depending on whether a self-loop is represented as 1 or 2 on the matrix diagonal.

Note on this question

Official key accepted both 2 to 2 and 4 to 4 depending on whether a self-loop contributes 1 or 2 to the diagonal.

Solution

Use the property that the sum of the eigenvalues of a matrix equals the trace of the matrix.

The sum of the eigenvalues of any square matrix AA equals the trace of AA:

∑i=15λi=tr⁡(A)=∑i=15Aii\sum_{i=1}^5 \lambda_i = \operatorname{tr}(A) = \sum_{i=1}^5 A_{ii}

In the adjacency matrix of a graph, the diagonal entry AiiA_{ii} records the number of self-loops at vertex ii:

  • The given graph has self-loops at vertex 3 and vertex 4, with vertices 1, 2, and 5 having no self-loops.
  • In standard graph theory convention, each self-loop contributes 1 to the diagonal (A33=1,A44=1A_{33} = 1, A_{44} = 1), giving tr⁡(A)=1+1=2\operatorname{tr}(A) = 1 + 1 = 2.
  • In an alternative convention sometimes adopted for undirected graphs (where degree of a loop counts as 2 edges incident to the vertex), each loop contributes 2 to the diagonal, yielding tr⁡(A)=2+2=4\operatorname{tr}(A) = 2 + 2 = 4.

The official GATE key accepted both 2 and 4.

Final answer

2 (or 4)

Common trap

Attempting to calculate the characteristic polynomial and find the roots directly instead of using the trace property.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2023 Computer Science and Information Technology (CS)
Question
30 of 65
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.