GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 52

GATE CSE 2022 Q52

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2022 paper

GATE 2022, Q52 2 marks · MSQ
Report issue

Recurrences & Generating Functions

Question 52, GATE 2022: For the adjacency matrix A of an n-vertex simple undirected unweighted graph, select true statements: A diagonal of A² equals degrees; B connectivity implies A^(n−1)+I has no zero entry; C sum of A's entries ≤2(n−1) implies acyclic; D a 1 in every row/column implies connectivity.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A

The ith diagonal of A squared is sum_j A_ij A_ji=sum_j A_ij, since the matrix is symmetric with binary entries. It therefore equals degree(i), proving A. B fails for the three-vertex path: no length-two walk connects adjacent vertices, so that off-diagonal entry of A2+I is zero. C fails for a triangle plus an isolated vertex: n=4 and the entry sum is 6=2(n-1), yet there is a cycle. D fails for two disjoint edges, which give no zero row or column but are disconnected.

The distinction in B is walks of exactly n−1 edges versus paths of at most n−1 edges. Connectivity guarantees the latter, not the former. Adding I supplies only length-zero diagonal walks; it does not add all smaller powers needed to test reachability. In D, absence of isolated vertices still permits several nontrivial components.

Original paper, page 34 · Answer key