You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Sudoku can be solved as a space-filling. The idea is to take each digit in turn and place it in all its grid positions at once. A 4x4 solver was first developed to understand and plan the 9x9 solver. The critical concept is the collection of templates that describe the grid positions of any single digit in the completed puzzle. The templates are available in a .mat file, but can be regenerated by setting the internal variable 'saving' to 1. The programs use MATLAB nested functions and closures to provide an efficient OO implementation.
Cite As
Bill McKeeman (2026). Space-filling Sudoku Solver (https://uk.mathworks.com/matlabcentral/fileexchange/48123-space-filling-sudoku-solver), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (598 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2.0.0 | Tweaked description and fixed some bogus test cases. |
||
| 1.1.0.0 | I have added input checks and some sanity checks to avoid long computations searching for non-existent solutions. I have re-ordered the search to improve performance. |
||
| 1.0.0.0 |
