Question
Official answer and solution
- Accepted answers
- 2, or 4
- From
- Official GATE 2023 answer 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.
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 equals the trace of :
In the adjacency matrix of a graph, the diagonal entry records the number of self-loops at vertex :
- 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 (), giving .
- 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 .
The official GATE key accepted both 2 and 4.
2 (or 4)
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.