A matching in an undirected graph is a set of edges in which no two edges share an endpoint; the empty set of edges is also a matching.
Let be the cycle on the 9 vertices , with the 9 edges and .
The number of matchings in is ______.
(Answer in integer)
Show solution
Solution NAT · 2 marks · no negative marking
Answer: 76
Method: reduce the cycle to paths, then use the path recurrence.
Paths first. Let be the number of matchings (including the empty one) of a path on vertices. Look at the last vertex: either it is unmatched (the rest is a path on vertices) or it is matched to its only neighbour (remove both, leaving a path on vertices). So
This gives for .
Now the cycle. Pick the closing edge .
- Matchings without : these are exactly the matchings of the path , so .
- Matchings with : and are used up, and the rest is any matching of the path on 7 vertices, so .
Total: .
Cross-check by size. A cycle on vertices has matchings of size . For : give , which sum to 76.
Trap. Treating as a path gives 55 (the closing edge is ignored); using a path on 8 vertices gives 34; leaving out the empty matching gives 75.
What was tested: splitting on one edge to turn a cycle into paths, and the Fibonacci recurrence for matchings in a path.
Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.