Graph Theory37 sections · 1633 units
Open in Course

Problem - Cat and Mouse (Part 1)

(Problem setup)

The problem gives you a graph where the cat and mouse take turns moving. The state is (mouse position, cat position, whose turn). The mouse starts at vertex 11, the cat at vertex 22, and the food is at vertex 00.

The cat cannot move to vertex 00. You need to determine the outcome when both players play perfectly. This is a game on a product graph: the original graph crossed with itself. The state space has O(n2)O(n^2) states times 22 for whose turn it is.