Article ID: | iaor20112979 |
Volume: | 217 |
Issue: | 14 |
Start Page Number: | 6616 |
End Page Number: | 6623 |
Publication Date: | Mar 2011 |
Journal: | Applied Mathematics and Computation |
Authors: | Golan Shahar |
Keywords: | gaming |
Minesweeper is a popular single player game. It has been shown that the Minesweeper consistency problem is NP‐complete and the Minesweeper counting problem is #P‐complete. In this paper, we present efficient algorithms for solving these problems for Minesweeper graphs with bounded treewidth. Our algorithms turn out to be much better than those based directly on dynamic programming. The algorithms mostly use of algebraic operations on multivariate polynomials, so that one may use existing software to implement them easily.