Skip to main content
QUICK REVIEW

[Paper Review] Heuristic Reasoning on Graph and Game Complexity of Sudoku

Zhe Chen|ArXiv.org|Mar 9, 2009
graph theory and CDMA systemsEngineering9 references3 citations
TL;DR

This paper proposes a graph-based heuristic reasoning framework for solving Sudoku puzzles and quantitatively measuring their game complexity. By modeling Sudoku as a directed graph with constraint edges and applying r-Reduction and inference theorems, the method solves 100% of easy and intermediate puzzles and 70.5% of hard puzzles using only r-Reduction, with full solution via minimal inference (avg. 1.6 inferences/puzzle), while a novel entropy-based game complexity metric perfectly discriminates difficulty levels across three tiers.

ABSTRACT

The Sudoku puzzle has achieved worldwide popularity recently, and attracted great attention of the computational intelligence community. Sudoku is always considered as Satisfiability Problem or Constraint Satisfaction Problem. In this paper, we propose to focus on the essential graph structure underlying the Sudoku puzzle. First, we formalize Sudoku as a graph. Then a solving algorithm based on heuristic reasoning on the graph is proposed. The related r-Reduction theorem, inference theorem and their properties are proved, providing the formal basis for developments of Sudoku solving systems. In order to evaluate the difficulty levels of puzzles, a quantitative measurement of the complexity level of Sudoku puzzles based on the graph structure and information theory is proposed. Experimental results show that all the puzzles can be solved fast using the proposed heuristic reasoning, and that the proposed game complexity metrics can discriminate difficulty levels of puzzles perfectly.

Motivation & Objective

  • To formalize Sudoku as a directed graph to enable structured reasoning and algorithm development.
  • To develop a heuristic solving algorithm based on r-Reduction and inference theorems for efficient puzzle solving.
  • To propose a quantitative, information-theory-based game complexity metric that correlates with human-perceived difficulty levels.
  • To evaluate the effectiveness of the proposed solving algorithm and complexity metric on real-world Sudoku puzzles, including hard and diabolical instances.
  • To explore the potential of heuristic reasoning alone to solve all Sudoku puzzles without backtracking.

Proposed method

  • Model Sudoku as a directed graph G = (V, E), where vertices represent cells and edges represent row, column, and sub-grid constraints.
  • Define vertex candidate sets v_ij as the set of possible values for cell (i,j), initialized to {k} if pre-filled with k.
  • Introduce the r-Reduction theorem: if a value r appears only once in the candidate set of a cell’s constraint neighbors, it can be assigned to that cell.
  • Apply the Inference Theorem to propagate constraints and reduce candidate sets across connected vertices.
  • Use information-theoretic entropy to compute game complexity: H = -Σ p_i log p_i, where p_i is the probability of value i in a cell’s candidate set.
  • Implement a solving algorithm combining r-Reduction and inference steps, with complexity measured by average inferences per puzzle.

Experimental results

Research questions

  • RQ1Can Sudoku puzzles be effectively modeled and solved using a formal graph-based representation with heuristic reasoning?
  • RQ2How effective is the r-Reduction rule in solving Sudoku puzzles without backtracking?
  • RQ3Can the proposed game complexity metric, based on entropy, accurately reflect the difficulty levels of Sudoku puzzles as perceived by humans?
  • RQ4What is the computational complexity of the proposed heuristic algorithm, and how does it scale across different difficulty levels?
  • RQ5Can a single heuristic rule (e.g., r-Reduction) solve all Sudoku puzzles, or is additional inference necessary?

Key findings

  • The r-Reduction rule alone solved 100% of easy and intermediate puzzles and 70.5% of hard puzzles, demonstrating strong heuristic power.
  • Adding the inference rule enabled full solution of all 10,000 hard puzzles, with an average of only 1.6 inferences per puzzle.
  • The game complexity metric, based on entropy, perfectly discriminated difficulty: easy (0.5362–0.9046), intermediate (1.2246–1.3965), and hard (1.6946–1.8189).
  • The average game complexity of unsolved puzzles (1.75349) was higher than that of solved puzzles (1.75226), confirming the metric’s discriminative power.
  • The algorithm successfully solved the notoriously difficult 'AI Escargot' puzzle in 91 inferences and 21 other hard puzzles in 2,442 total inferences (avg. 116 per puzzle).
  • The practical computational complexity remains nearly polynomial due to the low number of required inferences, even for hard puzzles.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.