A Study Of Sudoku Solving Algorithms: Backtracking and Heuristic
Apekshya Bhattarai (1), Dinisha Uprety (1), Pooja Pathak (1), Safal Narshing Shrestha (1), Salina Narkarmi (1), Sanjog Sigdel (1) ((1) Department of Computer Science, Engineering, Kathmandu University, Nepal)

TL;DR
This study compares recursive backtracking and heuristic-based Sudoku-solving algorithms, demonstrating that heuristics significantly improve solving speed, especially on complex puzzles, across different difficulty levels.
Contribution
It provides a comparative analysis showing the superior performance of heuristic methods over backtracking in Sudoku solving across multiple difficulty levels.
Findings
Heuristic approach outperforms backtracking in solving speed.
Speedup ratios range from 1.27x to 2.91x depending on difficulty.
Heuristics are particularly effective for complex puzzles.
Abstract
This paper presents a comparative analysis of Sudoku-solving strategies, focusing on recursive backtracking and a heuristic-based constraint propagation method. Using a dataset of 500 puzzles across five difficulty levels (Beginner to Expert), we evaluated performance based on average solving time. The heuristic approach consistently outperformed backtracking, achieving speedup ratios ranging from 1.27x in Beginner puzzles to 2.91x in Expert puzzles. These findings underscore the effectiveness of heuristic strategies, particularly in tackling complex puzzles across varying difficulty levels.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
