Research Article

Sudoku Puzzle Difficulty Rating based on Fuzzy Logic

Authors

  • Areen Naji Computer Science, PTUK, Tulkarem, Palestine
  • Saleh Salous Computer Science, PTUK, Tulkarem, Palestine

Abstract

In this document, we propose a new fuzzy logic-based rating technique for Sudoku difficulty, which takes into account Sudoku instance parameters such as the number of filled cells as well as parameters relating to the distribution of filled numbers on the cells. This new technique is validated using historical data from a certificate paper [Mantere, 2008], which includes 45 Sudoku instances of all rank levels, three of each level, and the average/max time consumed in 100 runs using different algorithms for each instance. First and foremost, these instances were analyzed and parameterized, and their parameters were quantitatively analyzed to be considered in fuzzy logic. The instance parameters' correlation with their solving time is studied, and dimensionality reduction was performed on these as variables to ensure that no unnecessary variable was included in the study. As solving time parameters, the number of filled cells in the instance, the minimum number of filled cells in rows and columns, and the number of empty sub-squares (3*3) in the instance are all accepted. Because there should be a functional relationship between the Sudoku rank and the time required to solve it, a linear regression model was performed on the historical data between the old rank and the solving time, and the same regression model was performed on the new rank to validate it. As a result, a new clear and simple ranking technique that outputs more correlated ranks with the time required to solve Sudoku puzzles is validated.

Article information

Journal

Journal of Computer Science and Technology Studies

Volume (Issue)

6 (2)

Pages

86-91

Published

2024-05-18

How to Cite

Naji, A., & Salous, S. (2024). Sudoku Puzzle Difficulty Rating based on Fuzzy Logic. Journal of Computer Science and Technology Studies, 6(2), 86–91. https://doi.org/10.32996/jcsts.2024.6.2.10

References

Chatterjee, S., Paladhi, S., & Chakraborty, R. A. (n.d) Comparative Study On The Performance Characteristics Of Sudoku Solving Algorithms. IOSR Journals (IOSR Journal of Computer Engineering), 1(16), 69-77.‏

Difficulty Rating of Sudoku Puzzles (2014) An Overview and Evaluation, Radek Pel´anek Faculty of Informatics, Masaryk University Brno, March 2014.

Fuzzy Logic (n.d) | Introduction - GeeksforGeeks

Juillerat N. (2007). Sudoku Explainer: Available at http://diuf.unifr.ch/people/juillera/Sudoku/Sudoku.html.

Kˇriv´anek M. (2011). Difficulty rating of sudoku puzzles: comparison of several techniques.Master’s thesis, Masaryk University Brno, 2011

Kˇriv´anek M. (2011). Difficulty rating of sudoku puzzles: comparison of several techniques. Master’s thesis, Masaryk University Brno, 2011.

La Monica P. R. (2005). Much ado about sudoku. CNNMoney.com, 2005

Mantere, T and Janne K (2008). Solving and Analyzing Sudokus with Cultural Algorithms. In Proceedings of 2008 IEEE World Congress on Computational Intelligence (WCCI 2008), 1-6 June, Hong Kong, China, pages 4054-4061.

Sudoku page (n.d) (uwasa.fi)

Downloads

Keywords:

Fuzzy logic, Sudoku, correlation, regression.