Abstract
Sudoku is a very popular mathematical and logical curiosity with abundant variations. Many artificial intelligence (AI) programs that imitate human expertise have been developed to solve sudoku puzzles. However, most popular methods, such as Recurrent Relational Networks and Double Q-learning, are primarily reinforcement learning (RL) algorithms. These algorithms are rather complex since they consist of two or more fundamental models for achieving high accuracy. To circumvent this drawback, this paper proposes a simple Multi-Layer Perceptron (MLP) model that not only produces correct results but is easy enough for implementation as well. Since the MLP model is a supervised learning method and is widely used in classification problems, this paper first discusses how the training data is generated. It then demonstrates a coding method that can be used to convert 4 × 4 sudoku puzzles to classification problems. Afterward, it shows the MLP settings and how the predictions from the model can be transformed into legal solutions. This model has been thoroughly tested on sudoku puzzles with various levels of difficulty, and the resulting data illustrate that its accuracy is no worse than those reinforcement learning methods and other non-AI algorithms. Moreover, with slight modification, the MLP model can be utilized on larger scales, such as 9 × 9 sudoku puzzles, or even harder ones.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.