# A Variable Neighborhood Search for Solving Sudoku Puzzles

### Khorshid Adel Hamza, Aise Zulal Sevkli

#### Abstract

Sudoku is a well-known puzzle that has achieved international popularity in the latest decade. Recently, there are explosive growths in the application of metaheuristic algorithms for solving Sudoku puzzles. In this paper, an algorithm based on Variable Neighborhood Search (VNS) is proposed to solve the Sudoku problem and the details of the implementation such as problem representation, neighbourhood structures are explained. The proposed algorithm is tested with Sudoku benchmarks which have been used in previous studies. The experimental results indicate that VNS is able to produce competitive results in easy level puzzles and promising results in medium and hard level puzzles.

#### References

- Asif, M., 2009. 'Solving NP-complete problem using ACO algorithm', in Proceedings of International Conference on Emerging Technologies, IEEE Computer Society pp. 13-16.
- Crawford, B., Aranda, M., Castro, C., & Monfroy, E., 2008. 'Using constraint programming to solve Sudoku puzzles', in Proceedings of the third international conference on convergence and hybrid information technology (ICCIT),IEEE Computer Society, pp. 926- 931.
- Gunther, J., & Moon, T. K., 2012. Entropy minimization for solving Sudoku, IEEE Transactions on Signal Processing, 60(1), pp. 508-513.
- Lewis, R., 2007. Metaheuristics can solve Sudoku Puzzles, Journal of Heuristics, pp.387-401
- Li, Y.D., Deng, X.Q., 2011. Solving Sudoku puzzles base on improved genetic algorithm, Comput. Appl. Softw. , vol. 28(3), pp.68-70.
- Mladenovic, M., Hansen, 1997. Variable neighborhood search,Computers and Operations Research, Vol.24, pp. 1097-1100
- Mantere, T. and Koljonen, J., 2007. Solving, Rating and Generating Sudoku Puzzles with GA, in Proceedings of the 2007 IEEE Congress on Evolutionary Computation-CEC2007, Singapore, pp. 1382-1389 .
- Mantere, T. and Koljonen, J., 2008. Solving and analyzing Sudokus with cultural algorithms, in Proceedings of the 2008 IEEE Congress Computational Intelligence - WCCI2008, 1-6 June, Hong Kong, China, pp. 4054- 4061.
- Mantere, T., Koljonen, J., 2009. Ant Colony Optimization and a Hybrid Genetic Algorithms for Sudoku Solving, in Proceedings of the 15th International Conference on Soft Computing, Brno, Czech Republic, Mendell, pp.41-48.
- Satyendra, M., Saumi, S., 2013. Solution and Level Identification of Sudoku Using Harmony Search, I.J. Modern Education and Computer Science, pp. 49-55.
- Simonis, H., 2005. Sudoku as a constraint problem, in Proceedings of the 4th International workshop on modelling and reformulating constraint satisfaction problem, pp. 13-27.
- Xiuqin, D., Yongda, Y., Ruichu, C., 2012. Sudoku with New Genetic Algorithm, in Proceedings of the international Conference on Artificial Intelligence and Soft Computing Lecture Notes in Information Technology, Vol.12, pp 431-440
- Yato, T. and Seta, T., 2003. Complexity and Completeness of Finding Another Solution and Its Application to Puzzles, IEICE Trans. Fundamentals, E86-A (5), p.1052- 1060.

#### Paper Citation

#### in Harvard Style

Hamza K. and Sevkli A. (2014). **A Variable Neighborhood Search for Solving Sudoku Puzzles** . In *Proceedings of the International Conference on Evolutionary Computation Theory and Applications - Volume 1: ECTA, (IJCCI 2014)* ISBN 978-989-758-052-9, pages 326-331. DOI: 10.5220/0005154903260331

#### in Bibtex Style

@conference{ecta14,

author={Khorshid Adel Hamza and Aise Zulal Sevkli},

title={A Variable Neighborhood Search for Solving Sudoku Puzzles},

booktitle={Proceedings of the International Conference on Evolutionary Computation Theory and Applications - Volume 1: ECTA, (IJCCI 2014)},

year={2014},

pages={326-331},

publisher={SciTePress},

organization={INSTICC},

doi={10.5220/0005154903260331},

isbn={978-989-758-052-9},

}

#### in EndNote Style

TY - CONF

JO - Proceedings of the International Conference on Evolutionary Computation Theory and Applications - Volume 1: ECTA, (IJCCI 2014)

TI - A Variable Neighborhood Search for Solving Sudoku Puzzles

SN - 978-989-758-052-9

AU - Hamza K.

AU - Sevkli A.

PY - 2014

SP - 326

EP - 331

DO - 10.5220/0005154903260331