Abstract

Sudoku is an NP-complete problem therefore developing various efficient algorithms is crucial. This paper presents an enhanced approach to solving sudoku puzzles by improving on recursive backtracking with constraint propagation and bitmask, focusing on the implementation of the naked pair technique. This research aims to add constraints to reduce the backtracking steps in solving sudoku using naked pairs, which is a technique that eliminates candidates of a cell from other cells in the same row, column or sub-grid when two cells share the same candidate sets. This research uses a dataset of 1 million sudoku puzzlers from Kaggle to evaluate the proposed solver’s performance. The solver first processes the puzzle into bitmask vectors then uses the singles and naked pairs technique to minimize the candidates, and then uses depth-first search to backtrack and solve the puzzle. As a result, the naked pair strategy slightly increases the total steps, and it significantly reduces the computation of depth-first search steps, making the solver potentially more efficient in solving difficult puzzles.

Details

Title
Exploring A Better Way to Constraint Propagation Using Naked Pair
Author
Chen, Kaiqi
Section
AI and Advanced Applications
Publication year
2025
Publication date
2025
Publisher
EDP Sciences
ISSN
24317578
e-ISSN
22712097
Source type
Conference Paper
Language of publication
English
ProQuest document ID
3194612870
Copyright
© 2025. This work is licensed under https://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and conditions, you may use this content in accordance with the terms of the License.