Python · Data engineering
SudokuMind
A Python tooling project focused on generating and independently validating high-quality Sudoku datasets, with uniqueness checks, logical difficulty traces and dataset-integrity controls.
At a glance
A Python tooling project focused on generating and independently validating high-quality Sudoku datasets, with uniqueness checks, logical difficulty traces and dataset-integrity controls.
The problem
A generated puzzle dataset is only useful when each puzzle is valid, uniquely solvable, correctly labelled and separated cleanly across training and evaluation splits. Naive generation can create duplicates, leakage or misleading difficulty labels.
Engineering approach
The documented generator uses a bounded exact solver, logical-strategy traces and calibrated difficulty scoring. A separate validator independently checks puzzle integrity, uniqueness, trace correctness and split leakage, with non-destructive repair and quarantine concepts.
What the project explores
- Sudoku dataset generation and resumable processing
- Bounded solution counting and uniqueness verification
- Human-style strategy traces across graded deduction tiers
- Difficulty calibration on a 1.0–10.0 scale
- Cross-split duplicate/leakage prevention
- Independent validation, repair and quarantine workflow
Architecture at a glance
Engineering decisions
- Use bounded solution counting to distinguish unsolvable, unique, multiple-solution and unresolved cases.
- Extract interpretable logical traces rather than relying only on a single numeric difficulty score.
- Use canonicalization and hashes to prevent equivalent puzzles leaking across splits.
- Keep validation independent from the generator to reduce correlated errors.
Go deeper
The developer section contains a more technical explanation of the system boundaries, component responsibilities, interfaces, security considerations and build model.