Graph Theory37 sections · 1633 units
Open in Course

Problem - Cat and Mouse (Part 11)

(Common pitfalls)

A common mistake is forgetting to check whose turn it is when propagating win conditions. Mouse-wins propagate differently than cat-wins. Another mistake is not initializing the degree array correctly. Count the number of legal moves at each state, considering the cat cannot enter vertex 00.

Debug by printing the state graph for small inputs. Verify terminal states and the first few layers of backward induction manually.