Abstract
Sudoku is an NP-complete-based mathematical puzzle, which has enormous applications in the domains of steganography, visual cryptography, DNA computing, and so on. Therefore, solving Sudoku effectively can bring revolution in various fields. Several heuristics are there to solve this interesting structure. One of the heuristics, genetic algorithm, is used by many researchers to solve Sudoku successfully, but they face various problems. Genetic algorithm has so many lacunas, and to overcome these, we have hybridised it in a novel way. In this paper, we have developed a hybrid genetic algorithm-based firefly mating algorithm, which can solve Sudoku instances with a greater success rate for easy, medium, and hard difficulty level puzzles. Our proposed method has controlled “getting stuck in local optima”, considering a smaller population and lesser generation.
Similar content being viewed by others
References
Yato T, Seta T (2003) Complexity and completeness of finding another solution and its application to puzzles. IEICE Trans Fundam Electron Commun Comput Sci 86(5):1052–1060
Mishra DB, Mishra R, Das KN, Acharya AA (2017) Solving Sudoku puzzles using evolutionary techniques—a systematic survey. In: Pant M, Ray K, Sharma T, Rawat S, Bandyopadhyay A (eds) Soft computing: theories and applications, advances in intelligent systems and computing, vol 583. Springer, Singapore, pp 791–802
Chel H, Mylavarapu D, Sharma S (2016) A novel multistage genetic algorithm approach for solving Sudoku puzzle. In: Proceedings of the International Conference on Electrical, Electronics, and Optimisation Techniques (ICEEOT), pp 808–813
Maji AK, Roy S, Pal RK (2014) A novel steganographic scheme using Sudoku. In: Proceedings of the IEEE International Conference on Electrical Information and Communication Technology (ICEICT 2013), Bangladesh, pp 116–121
Srivatsa D, Teja TPVK, Prathyusha I, Jeyakumar G (2019) An empirical analysis of genetic algorithm with different mutation and crossover operators for solving Sudoku. In: B. Deka, P. Maji, S. Mitra, D. Bhattacharyya, P. Bora, and S. Pal (eds), Proceedings of the 8th international conference on Pattern Recognition and Machine Intelligence (PReMI). Lecture Notes in Computer Science, vol 11941, Springer, Cham, pp 356–364, Tezpur, India
Rocha M, Neves J (1999) Preventing premature convergence to local optima in genetic algorithms via random offspring generation. In: Proceedings of international conference on industrial and engineering applications of artificial intelligence and expert systems: multiple approaches to intelligent systems, pp 127–136 1999.
Kumbharana SN, Pandey GM (2013) Solving travelling salesman problem using firefly algorithm. Int J Res Sci Adv Technol (IJRSAT) 2(2):53–57
Weyland D (2015) A critical analysis of the harmony search algorithm—how not to solve Sudoku. Oper Res Perspect 2:97–105
Singh G, Kusum D (2016) A new membrane algorithm using the rules of particle swarm optimization incorporated within the framework of cell-like P-systems to solve Sudoku. Appl Soft Comput 45:27–39
Jana S, Dey A, Maji AK, Pal RK (2020) Solving Sudoku using neighbourhood-based mutation. Accepted in Applied Computation, and Security Systems (ACSS). Springer India
Das KN, Bhatia S, Puri S, Deep K (2012) A retrievable GA for solving Sudoku puzzles. Technical Report, Department of Electrical Engineering, IIT, Roorkee
Mehran S, Fatemi B (2014) A retrievable genetic algorithm for efficient solving of Sudoku puzzles. In: Proceedings of International Journal of Computer, Electrical, Automation, Control and Information Engineering, vol 8. World Academy of Science, Engineering and Technology, pp 736–740 2014.
Assad A, Kusum D (2018) Harmony search based mimetic algorithms for solving Sudoku. Int J Syst Assur Eng Manag 9(4):741–754
Mantere T, Koljonen J (2007) Solving, rating, and generating Sudoku puzzles with GA. In: Proceedings of the IEEE Congress on Evolutionary Computation (CEC), pp 1382–1389
Ritthipakdee A, Thammano A, Premasathian N, Jitkongchuen D (2017) Firefly mating algorithm for continuous optimisation problems. Comput Intell Neurosci 2017:1–10
Maji AK, Pal RK (2014) Sudoku solver using minigrid based backtracking. In: Proceedings of the IEEE International Advance Computing Conference (IACC), pp 33–44, Gurgaon, India
Waters DI (2008) Sudokube: using genetic algorithms to simultaneously solve multiple combinatorial problems. MS Thesis, Graduate College of the Oklahoma State University, May 2008
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
In this paper, all experimental results have been computed based on only three sets of Sudoku instances of type Easy, Medium, and Hard, and for each such set, particularly, we have utilised 50 specific Sudoku instances that were selected randomly. Out of these 150 instances in total, only 12 instances of each of easy, medium, and hard have been included below as example Sudoku instances.
1.1 Sample easy Sudoku instances
1.2 Sample medium Sudoku instances
1.3 Sample hard Sudoku instances
Rights and permissions
About this article
Cite this article
Jana, S., Dey, A., Maji, A.K. et al. A novel hybrid genetic algorithm-based firefly mating algorithm for solving Sudoku. Innovations Syst Softw Eng 17, 261–275 (2021). https://doi.org/10.1007/s11334-021-00397-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11334-021-00397-4