|
|
|
|
|
by klochner
5712 days ago
|
|
Nothing really clever though - he only applies the two most basic sudoku strategies: If a square has only one possible value, eliminate it from the square's peers.
If a unit has only one possible place for a value, then put the value there.
And then he notes that those simple strategies combined with search yields very reasonable run times. |
|
For 16x16, it is more of a toss-up if one should use more advanced propagation. The solve-times are still so low though, that it doesn't really matter (tens of milliseconds). For 25x25 it starts to get interesting. In my experience, full propagation on lines, rows, and regions is needed, but more than that slows it down. Without a good heuristic (some learning process, prefferably coupled with randomized restarts), the solve-time easily goes up into hours. Wih a good heuristic, minutes seems to be a reasonable time-span to hope for.