Skip to content
GATEiit

GATE CSE 2026 Session 1 Q57: Number of matchings in a path on 8 vertices

Question

Let GG be an undirected graph, which is a path on 8 vertices. The number of matchings in GG is ______. (answer in integer)

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 34 (official GATE 2026 final answer key)

Concept used: Matchings in a path satisfy a Fibonacci recurrence (the empty matching counts).

First step: Let mnm_n be the count for nn vertices: either the last vertex is unmatched (mn−1m_{n-1}) or matched to its neighbour (mn−2m_{n-2}), with m1=1m_1 = 1, m2=2m_2 = 2.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2026 Session 1 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key