GateAI
Linear Algebra

GATE CSE 2023 · Q30

NAT1 markEasy

Time

Let AA be the adjacency matrix of the graph with vertices {1,2,3,4,5}\{1, 2, 3, 4, 5\}. 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 = __________.

GATE CSE 2023 Q30 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 2

Linear Algebra

The sum of all eigenvalues of a square matrix is equal to its trace (the sum of its main diagonal elements):

∑i=15λi=Trace(A)=∑i=15Aii\sum_{i=1}^{5} \lambda_i = \text{Trace}(A) = \sum_{i=1}^{5} A_{ii}

In the adjacency matrix of a graph:

  • A diagonal entry AiiA_{ii} represents the number of self-loops at vertex ii.

  • Vertices 1,2,1, 2, and 55 have no self-loops, so A11=A22=A55=0A_{11} = A_{22} = A_{55} = 0.

  • Vertices 33 and 44 each have one self-loop.

Depending on the convention used for self-loops in an adjacency matrix:

  1. Standard convention: A self-loop contributes 11 to the diagonal entry. Thus, A33=1A_{33} = 1 and A44=1A_{44} = 1.

    Trace(A)=0+0+1+1+0=2\text{Trace}(A) = 0 + 0 + 1 + 1 + 0 = 2
  2. Degree-preserving convention: A self-loop contributes 22 to the diagonal entry. Thus, A33=2A_{33} = 2 and A44=2A_{44} = 2.

    Trace(A)=0+0+2+2+0=4\text{Trace}(A) = 0 + 0 + 2 + 2 + 0 = 4

Both 2 and 4 are accepted by the official answer key [2 to 2 OR 4 to 4].

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Linear Algebra previous year question is Q30 of the GATE CSE 2023 paper. Find more GATE CSE PYQs on Linear Algebra in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Linear Algebra PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Linear Algebra in GATE CSE

Linear Algebra has 46 GATE CSE PYQs across 26 papers from 2011 to 2026. 13 of them are 1-mark NAT questions like this one, and GATE CSE 2023 has 2.

How GATE tests Linear Algebra

More from GATE CSE 2023

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2023 · Q30 · NAT

Let A be the adjacency matrix of the graph with vertices {1, 2, 3, 4, 5}. Let 1, 2, 3, 4, and 5 be the five eigenvalues of A. Note that these eigenvalues need not be distinct. The value of 1 + 2 + 3 + 4 + 5 = …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.