Papers
Topics
Authors
Recent
Search
2000 character limit reached

Symmetric Sudoku-Type Games from Perfect Codes

Published 10 May 2026 in math.CO and cs.IT | (2605.09617v1)

Abstract: This paper presents a novel construction method for symmetric Sudoku-type games based on Lee distance perfect codes and diameter perfect codes. The proposed method utilizes the tiling property of these codes to define the structure of the subgrid constraints of Sudoku-type games. In this way, our games inherit the symmetric properties of Sudoku. We provide a detailed analysis of two small cases: a 5×55 \times 5 Sudoku in Z5<sup>2\mathbb{Z}_5<sup>2, and an 8×88 \times 8 Sudoku in Z8<sup>2\mathbb{Z}_8<sup>2. By defining equivalence relations via rigid motions, we provide a complete enumeration of valid grids, identifying 17 inequivalent solutions for 5×55\times 5 Sudoku. For two different types of 8×88\times 8 Sudoku, we characterize 232,735 and 304,014 inequivalent solutions, respectively. Furthermore, to verify practical playability, we implement a human-like solver that assesses the difficulty of the generated games. The analysis confirms that our 5×55\times5 Sudoku games offer a balanced distribution of difficulty levels, ranging from Easy to Hard, making them a viable alternative to traditional 9×99 \times 9 Sudoku.

Summary

  • The paper introduces a systematic construction of symmetric Sudoku puzzles using tilings from perfect and diameter perfect codes under the Lee metric.
  • It mathematically characterizes puzzle symmetries and enumerates valid grids, classifying them into inequivalent solution classes based on symmetry group actions.
  • A human-like solver evaluates game difficulty via logical deduction, demonstrating varied challenge levels from easy to hard in practice.

Symmetric Sudoku-Type Games via Perfect and Diameter Perfect Codes

Theoretical Framework and Motivation

The paper "Symmetric Sudoku-Type Games from Perfect Codes" (2605.09617) introduces a codified methodology for constructing Sudoku-like puzzles possessing intrinsic symmetries, grounded in the mathematical structure of perfect codes and diameter perfect codes under the Lee metric. The classical 9×99 \times 9 Sudoku possesses a preponderance of symmetry due to its uniform subgrid partitioning, which supports both theoretical analyses and solver strategies. However, most variants, including jigsaw Sudoku, lose such symmetry, impairing both combinatorial investigations and algorithmic tractability.

Perfect codes, by their nature, partition the ambient space into disjoint balls of appropriate radius, directly mirroring the subgrid constraints in Sudoku. By leveraging the tiling property of Lee distance perfect codes and diameter perfect codes, the authors generate palette grids that encode symmetric block constraints. The construction thereby generalizes Sudoku while retaining the fundamental symmetries and combinatorial richness essential for mathematical analysis.

Construction Details: Sudoku from Codes

Formalization and Palette Grid Structure

The palette grid is central to encoding subgrid constraints. For a code C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^2, palette entries are distributed such that each codeword's associated ball or anticode defines the constituent cells of a single subgrid. This construction ensures that Sudoku grids orthogonal to these palette grids will satisfy analogs of the original row, column, and block constraints.

For instance, a 5×55\times 5 Sudoku over Z52\mathbb{Z}_5^2 is constructed from a $1$-error-correcting Lee distance perfect code, and an 8×88\times 8 Sudoku analog uses a $3$-diameter perfect code over Z82\mathbb{Z}_8^2. The symmetry group actions—rotation, reflection, and translation—are analyzed and leveraged to classify solution grids up to equivalence.

The action of the symmetry group G\mathcal{G} on Sudoku grids is depicted, illustrating how rigid motions generate orbit classes within the set of valid solutions.

Figure 1

Figure 1: Action of G\mathcal{G} on a Sudoku grid exemplifies symmetry-preserving transformations among solution grids.

Enumeration and Equivalence Classification

The analysis covers exhaustive enumeration of valid Sudoku solution grids for both the C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^20 and C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^21 constructions:

  • For the C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^22 Sudoku, C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^23 valid grids are identified, partitioned into C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^24 inequivalent classes under relabeling.
  • For C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^25 Sudoku, two constructions yield C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^26 and C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^27 inequivalent solution classes, respectively.

Classifications utilize the orbit-stabilizer theorem under actions of the appropriate symmetry group, with detailed breakdowns of class sizes and structural properties.

Examples of minimal Sudoku configurations (those with the minimum set of clues ensuring uniqueness) are presented, highlighting how these constructions allow for rigorous analysis of clue minimality.

Figure 2

Figure 2: Examples of minimal Sudoku puzzles derived from a perfect code over C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^28, illustrating minimal clue placements.

Figure 3

Figure 3: Minimal Sudoku examples from diameter perfect codes over C⊆Zn2\mathcal{C} \subseteq \mathbb{Z}_n^29, demonstrating analogs to classical minimal puzzles.

The palette grids for the 5×55\times 50 construction (Case I and II) are shown, underscoring the combinatorial diversity of block structuring resulting from different code generators.

Figure 4

Figure 4: Palette grids 5×55\times 51, 5×55\times 52 visualize subgrid boundaries induced by diameter perfect codes over 5×55\times 53.

Practical Game Analysis and Difficulty Metrics

To evaluate practical playability, a human-like solver is implemented, mimicking basic logical deduction typical of human solvers (Naked Single and Hidden Single techniques, augmented by trial-and-error for harder puzzles). Difficulty is quantified by the number of insertions beyond the count of blank cells, forming a "difficulty score." The classification is as follows:

  • Easy: score 0
  • Medium: score in 5×55\times 54
  • Hard: score 5×55\times 55

The 5×55\times 56 Sudoku generated from perfect codes demonstrates varied difficulty profiles, with the majority falling into the easy or medium categories, but with a significant subset achievable only via trial-and-error, indicating genuine challenge and diversity.

Figure 5

Figure 5: Difficulty score distribution for 5×55\times 57 minimal Sudoku; scores encapsulate required logical insertions for solution.

Implications and Future Directions

This synthesis bridges coding theory and combinatorial design, establishing a new class of symmetric Sudoku-type games amenable to both mathematical treatment and practical gameplay. The representation of block constraints through code tilings offers explicit structural control and enables systematic enumeration, equivalence classification, and analysis of minimal clues.

The practical implications include:

  • Generation of Sudoku analogs with well-controlled symmetry and block structure, facilitating algorithmic and combinatorial studies.
  • Provision of diverse game difficulties, making the puzzles viable alternatives for both recreational and analytical contexts.
  • Direct applicability to computational methods for generating and classifying Sudoku-type puzzles.

Theoretical implications suggest that the codified approach can be extended to other metrics (e.g., Mannheim, rank-metric), and alternative rings, possibly yielding novel puzzle paradigms. The inherent symmetry may enable new progress in understanding uniqueness, minimal clues, and algorithmic hardness in Sudoku and its combinatorial variants.

Conclusion

The paper rigorously establishes a systematic methodology for constructing symmetric, mathematically tractable Sudoku-type games using perfect codes and diameter perfect codes in the Lee metric. The enumeration and equivalence analysis provide tight structural characterization, while experimental assessment with solvers demonstrates practical viability and challenge diversity. The construction presents a versatile platform for further exploration, both in combinatorics and recreational mathematics, with potential for broad extensions across coding theory and puzzle design.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.