Skip to main content
Log in

A novel hybrid genetic algorithm-based firefly mating algorithm for solving Sudoku

  • S.I.: Verifiability in Systems and Data Engineering
  • Published:
Innovations in Systems and Software Engineering Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

References

  1. 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

    Google Scholar 

  2. 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

    Google Scholar 

  3. 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

  4. 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

  5. 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

  6. 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.

  7. Kumbharana SN, Pandey GM (2013) Solving travelling salesman problem using firefly algorithm. Int J Res Sci Adv Technol (IJRSAT) 2(2):53–57

    Google Scholar 

  8. Weyland D (2015) A critical analysis of the harmony search algorithm—how not to solve Sudoku. Oper Res Perspect 2:97–105

    MathSciNet  Google Scholar 

  9. 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

    Article  Google Scholar 

  10. 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

  11. Das KN, Bhatia S, Puri S, Deep K (2012) A retrievable GA for solving Sudoku puzzles. Technical Report, Department of Electrical Engineering, IIT, Roorkee

  12. 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.

  13. Assad A, Kusum D (2018) Harmony search based mimetic algorithms for solving Sudoku. Int J Syst Assur Eng Manag 9(4):741–754

    Article  Google Scholar 

  14. 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

  15. Ritthipakdee A, Thammano A, Premasathian N, Jitkongchuen D (2017) Firefly mating algorithm for continuous optimisation problems. Comput Intell Neurosci 2017:1–10

    Article  Google Scholar 

  16. http://www.puzzles.ca/Sudoku.html

  17. 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

  18. Waters DI (2008) Sudokube: using genetic algorithms to simultaneously solve multiple combinatorial problems. MS Thesis, Graduate College of the Oklahoma State University, May 2008

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Arnab Kumar Maji.

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

figure b

1.2 Sample medium Sudoku instances

figure c

1.3 Sample hard Sudoku instances

figure d

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11334-021-00397-4

Keywords

Navigation