Taming the Search Space: Solving and Generating Hitori and Binairo Puzzles
Lukas Zandomeneghi, Rainhard Dieter Findling, Marc Kurz
Abstract
This paper investigates solving and generation techniques for the logic puzzles Hitori and Binairo. Two solving paradigms are compared: backtracking with domain-specific optimizations, and SAT-based solving via conjunctive normal form encodings. An empirical evaluation analyzes runtime, explored search nodes, and branching factor across varying puzzle sizes. To support systematic benchmarking in the evaluation, generators capable of producing valid and uniquely solvable puzzle instances are developed. Results indicate that constraint propagation is the most effective backtracking optimization, substantially reducing the effective branching factor, search tree size, and thus runtime. Heuristic variable ordering and scoring strategies provide additional improvements. For Binairo, the SAT-based approach solves all evaluated instances within low runtime, while optimized backtracking fails to solve difficult puzzle instances within the timeout. For Hitori, propagation-based backtracking achieves the best results, while for the SAT-based approach the iterative connectivity check takes up the majority of the runtime, failing difficult puzzle instances.
Create a lesson
Related papers
MightyPPL : Towards model checking MTL
Hsi-Ming Ho, Shankara Narayanan Krishna, Khushraj Madnani et al.
Counting on Nowhere Dense Classes
Steffen van Bergerem, Nicole Schweikardt
Towards a Proof-Theoretic Analysis of Incorrect/Incomplete Proofs
Matthias Baaz, Mariami Gamsakhurdia
Descriptive Complexity in Lean: Completeness by First-Order Reductions
Pierre Senellart, Anton Gnatenko
Predictable Modelling and Analysis of Software-defined Vehicle Implementations
Pavlo Tokariev, Yosri Ayari, Julien Deantoni
Refining Timing Uncertainty from Logical Time Specification to Operation
Pavlo Tokariev, Julien Deantoni