Solving Flood-It Puzzles: A Comparison of Tailored A* Search with Declarative Solver Approaches
Abstract
We present an optimized approach for finding minimal move sequences to solve Flood-It puzzles using A* search and compare it with approaches using SAT, Integer Programming, and Constraint Programming solvers. The performance of A* search is considerably improved by using an appropriate heuristic and sophisticated equivalences of game states to limit the search space. Each aspect is systematically evaluated, providing insights that generalize to other problems. By comparing the best variant of each approach, the A* search is the fastest in finding a minimal solution in about 75 % of the Flood-It instances tested. This result is in line with our expectation since A* specifically looks for a minimum solution. In contrast, the SAT-based approach is designed to solve the decision problem of whether a solution with a given length exists. An iterative search is required to determine a minimum solution length using a SAT-based approach. However, with increasing complexity, quantified by the minimum solution length, the SAT-based approach outperforms A*. We also compared the different approaches to the decision problem, where A* again performed best for the largest number of puzzles. Here, again, SAT supersedes A* for higher complexities, albeit with a lower crossing point.
Create a lesson
Metadata
- Comments
- 22 pages main text, 35 pages in total; 13 figures plus 12 figures in the appendix
Related papers
MetaSkill: Reusable Problem-Solving Methods for Adaptive Skill Orchestration in LLM Agents
Shared title terminologycs.AITianxing Wang, Mingming Zhao, Shuai Huang et al.
PruneNAS: Constraint Aware Neural Architecture Search based Pruning
Shared title terminologycs.AISudhakar Sah, Nikhil Chhabra, Honnesh Rohmetra et al.
FormaFin: Verifiable Financial Analysis with Solver-Guided Reinforcement Learning
Shared title terminologycs.AIBethel Hall, William Eiers
Does a Frontier Large Language Model Know What It Can Solve? A 100-Conjecture Calibration Study
Shared title terminologycs.AIAyush Khaitan, Liam Fowl, Tomàs Ortega et al.
The Dual-Tier Sentiment Framework: Scalable Multimodal UX Attribution in Web Search
Shared title terminologycs.AIYi Ding, Gaurav Kumar, Rui Min et al.
Advancing SVD-based LLM Compression via Layer-Wise Error Model Search
Shared title terminologycs.AIMoritz Thoma, Maximilian Groezinger, Maximilian Forstenhäusler et al.