IAE Academy

GATE 2024 CS2 Q.17: solution and answer

GATE 2024 · CS2Q.17 · 1 mark · MCQ

Let be the adjacency matrix of a simple undirected graph . Suppose is its own inverse. Which one of the following statements is always TRUE?

  1. (A)

    is a cycle

  2. (B)

    is a perfect matching

  3. (C)

    is a complete graph

  4. (D)

    There is no such graph

See the question in the paper

Answer and solution

ANSWER

Option (B): is a perfect matching.

Official answer: BSource: Official answer key, GATE 2024 CS2 (IISc Bengaluru)

  1. is its own inverse, so .

  2. For a simple undirected graph, is symmetric with zero diagonal. Then is the number of common neighbours of and . For it equals .

  3. Diagonal entries: , so every vertex has degree exactly 1.

  4. Off-diagonal entries: for . This holds automatically when every degree is 1, because two distinct vertices cannot share a neighbour (that neighbour would have degree at least 2).

  5. A graph in which every vertex has degree 1 is a set of disjoint edges, that is, a perfect matching.

  6. Such graphs exist. For , and , so (D) is false.

  7. A cycle has every degree equal to 2, and for has every degree equal to . Both violate degree 1, so (A) and (C) are not true. Only (B) always holds.

KEY IDEA

forces every vertex degree to be 1 (the diagonal of is the degree). A graph with all degrees 1 is a perfect matching, and the off-diagonal zeros then hold automatically.

WATCH OUT FOR

Choosing (D) because "an inverse adjacency matrix looks impossible". Check , whose adjacency matrix is its own inverse. Another slip is forgetting that is the degree, not 0 or 1 by default.

From the GATE 2024 CS2 paper. Every question of this paper · Download the full paper · All 14 Graph theory questions, with notes

More Graph theory questions