I am copying here few posts I initialy did in the former Sudoku Programmers forum, which seems to be dead from few weeks.
dobrichev at Programmers Forum, Sun Jun 15, 2014 7:46 pm wrote:Fast Simple Sudoku Solver 2 has been released and C++ source is available at https://github.com/dobrichev/fsss2
It is entirely redesigned successor of fsss (https://sites.google.com/site/dobrichev/fsss/)
The new design exploits 128-bit arithmetic.
Currently it requires Intel® Streaming SIMD Extensions (Intel® SSE4) for packed integer 128-bit comparisons but could be compiled with minor modifications and less than 15% performance loss to Intel® Streaming SIMD Extensions 2 (Intel® SSE2).
The new solver is still immature, not well tested, and possibly has room for further optimizations.
Below is a time comparison between the old fsss, two alternatives of the fsss2, and the fastest known solver ZSolver.
- Code: Select all
17puz48826 1465x20 50000 Tarek gen_puzzles 38puz540512 hard817681
Pearly 500000
6000
Solve fsss v9.x 0.299 0.699 0.457 0.612 0.319 4.847 120.447
up to the fsss2 v0 no line-box 0.345 1.058 0.336 0.485 0.262 2.902 86.891
second fsss2 v0 line-box 0.256 0.689 0.368 0.498 0.268 3.329 88.269
solution ZSolver 0.203 0.784 0.321 0.527 0.664 2.897 85.800
Solve fsss v9.x 0.351 0.764 0.354 0.330 0.311 3.523 65.587
up to the fsss2 v0 no line-box 0.250 0.603 0.240 0.268 0.255 2.059 45.814
first fsss2 v0 line-box 0.227 0.432 0.291 0.275 0.264 2.481 46.828
solution ZSolver 0.175 0.425 0.232 0.283 0.658 2.119 44.692
Times are in seconds, the testing platform is 64-bit Linux on Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, the compiler is Intel® 64 C++ Compiler v14.0.0.
dobrichev at Programmers Forum, Sun Jul 06, 2014 1:20 pm wrote:Comparison of the latest fsss2 and ZSolver, solving up to the second solution.
- Code: Select all
17puz48826 1465x20 50000 Tarek gen_puzzles 38puz540512 hard817681
Pearly 500000
6000
fsss2 0.284 0.913 0.315 0.429 0.239 2.688 78.952
ZSolver 0.203 0.784 0.321 0.527 0.664 2.897 85.800
dobrichev at Programmers Forum, Sat Jul 19, 2014 2:29 pm wrote:Time comparison of today's source code release of fsss2 to ZSolver, solving up to the second solution.
This release is compatible with GCC C++ compiler.
- Code: Select all
17puz48826 1465x20 50000 Tarek gen_puzzles 38puz540512 hard817681
Pearly 500000
6000
fsss2 0.252 0.808 0.277 0.375 0.228 2.283 69.308
ZSolver 0.203 0.784 0.321 0.527 0.664 2.897 85.800
I am planning to post here any improvements related to this solver.