Metaheuristics can solve sudoku puzzles

  • Authors:
  • Rhyd Lewis

  • Affiliations:
  • Centre for Emergent Computing, School of Computing, Napier University, Edinburgh, UK EH10 5DT

  • Venue:
  • Journal of Heuristics
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we present, to our knowledge, the first application of a metaheuristic technique to the very popular and NP-complete puzzle known as `sudoku'. We see that this stochastic search-based algorithm, which uses simulated annealing, is able to complete logic-solvable puzzle-instances that feature daily in many of the UK's national newspapers. We also introduce a new method for producing sudoku problem instances (that are not necessarily logic-solvable) and use this together with the proposed SA algorithm to try and discover for what types of instances this algorithm is best suited. Consequently we notice the presence of an `easy-hard-easy' style phase-transition similar to other problems encountered in operational research.