GATE CS 2026 Set 1 | Question 57

Discrete Mathematics › Graph Theory · NAT · 2 marks · Answer: 34

  1. Question 57Discrete Mathematicsnat2 marks
    Let be an undirected graph, which is a path on 8 vertices. The number of matchings in is ______. (answer in integer)

    Answer: 34

    Solution

    Answer: 34 (the empty matching counts) Let be the number of matchings in a path on vertices. Look at the last vertex: either it is unmatched, giving , or it is matched with its neighbour, giving . So , with and .
    n    | 1 | 2 | 3 | 4 | 5 | 6  | 7  | 8
    -----+---+---+---+---+---+----+----+---
    m(n) | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34
    These are Fibonacci numbers.

More GATE PYQ on Graph Theory

All GATE CS Discrete Mathematics PYQ →

Attempt GATE CS 2026 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →