Genetic Algorithms with Local Optima Handling to Solve Sudoku Puzzles

Sudoku is a popular combinatorial number puzzle game and is widely spread on online blogs and in newspapers worldwide. However, the game is very complex in nature and solving it gives rise to an NP-Complete problem. In this paper, we introduce a heuristic to tackle the problem. The heuristic is a genetic algorithm with modified crossover and mutation operators. In addition, we present a new approach to prevent the genetic algorithm from getting stuck in local optima. We refer to this approach as the "purge approach". We test our algorithm on different puzzles of different difficulty levels. Results show that our algorithm outperforms several existing methods.

[1]  Nidhi Goel,et al.  Detection of Sudoku puzzle using image processing and solving by Backtracking, Simulated Annealing and Genetic Algorithms: A comparative analysis , 2015, 2015 Third International Conference on Image Information Processing (ICIIP).

[2]  John H. Holland,et al.  Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence , 1992 .

[3]  R. Douglas,et al.  Solving Sudoku Puzzles with Genetic Algorithm , 2014 .

[4]  Satyendra Nath Mandal,et al.  An Efficient Approach to Solve Sudoku Problem by Harmony Search Algorithm , 2011 .

[5]  Jaysonne A. Pacurib,et al.  Solving Sudoku Puzzles Using Improved Artificial Bee Colony Algorithm , 2009, 2009 Fourth International Conference on Innovative Computing, Information and Control (ICICIC).

[6]  Varghese Paul,et al.  Recursive Backtracking for Solving 9*9 Sudoku Puzzle , 2016 .

[7]  Broderick Crawford,et al.  A hybrid AC3-tabu search algorithm for solving Sudoku puzzles , 2013, Expert Syst. Appl..

[8]  Timo Mantere Improved ant colony genetic algorithm hybrid for Sudoku solving , 2013, 2013 Third World Congress on Information and Communication Technologies (WICT 2013).

[9]  Bruce Segee,et al.  Solving Sudoku using Particle Swarm Optimization on CUDA , 2012 .

[10]  Broderick Crawford,et al.  A Hybrid alldifferent-Tabu Search Algorithm for Solving Sudoku Puzzles , 2015, Comput. Intell. Neurosci..

[11]  Zong Woo Geem,et al.  Harmony Search Algorithm for Solving Sudoku , 2007, KES.

[12]  Timo Mantere,et al.  Solving and Rating Sudoku Puzzles with Genetic Algorithms , 2006 .

[13]  Yuji Sato,et al.  Solving Sudoku with genetic operations that preserve building blocks , 2010, Proceedings of the 2010 IEEE Conference on Computational Intelligence and Games.

[14]  Seyed Mehran Kazemi,et al.  A Retrievable Genetic Algorithm for Efficient Solving of Sudoku Puzzles , 2014 .