Glyn wrote:
Have you tried recursion on the puzzles that are solvable?
NO!Glyn wrote:
Clueless could be very nasty.
Tell me about it.
I am working on a really nasty variant of Regular Clueless Special #13.
Last recursive solve (after logical solve) traversed almost 15 BILLION nodes (in 3 days) before finding the first solution. Unfortunately the grid had more than one solution:
Starting to Recursively Solve.
Be patient this may take several minutes for hard grids...
Recursively Solve done in 248112563 milliseconds
14761577123 nodes traversed
At least 10 solutions found. This grid is invalid
Glyn wrote:
Børge The number of nodes is likely to increase with the difficulty of the puzzle as the programmed logical moves stall earlier.
In a PM Jean-Christophe mentioned that, (at that time: JSudoku 1.2b1) the recursive logic was not ideal:
In a PM Jean-Christophe wrote:
Note:
Grids with extra constraints like Clueless, extra diagonals... seems problematic for the recursive solver. Even more for the generator. If by any misfortune it takes a dead path, for which there are many long alternatives to consider, it will waste a lot of time just to discover it's a dead path. I'll see if I can improve it a bit.
Below variant 1B of Glyn Samurai #1 that solves further using logic and and where the Recursively Solve only requires 2 guesses and traverses 670 nodes. So with it you can test your theory.
Later I will post Glyn Samurai #2. By trying different "dispensable clues" sets for each grid, I will try to make it even harder.
0 Logical Solve + 1 Recursively Solve: Unique solution found with 22 guesses, 299796 nodes traversed
OR1 Logical Solve + 1 Recursively Solve: Unique solution found with 15 guesses, 94792 nodes traversed
Glyn Samurai #1B (Chief Wizard)Rating based on required solving techniques: Hellish Nightmare Solvable using logic only?
020701003000230000500000000070420000903000600000500900700008000001000000000000000
500073012000000900001500004300007000005800600000004098000100000000000050000400306
000400000000200000000000000001050006078000003000060000000178000000000000000000000
000087000030500000050000000000006903040002060200013000700005000006700008000060005
000300000000000090000208030050001406000030009006070083090100000000000000400609801
11 Naked Singles
43 Hidden Singles
33 Intersections
3 Naked Triplets
1 Naked Quads
1 X-Wing
1 Skyscrapers
1 Two String Kites
1 Empty Rectangles
2 Finned X-Wing
1 Finned Swordfish
1 XY-Wings
1 Y-Wings
2 Uniqueness Test 4
1 Uniqueness Test 6
3 XY-X-Chains up to 3 links
5 XY-X-Chains
1 Grouped XY-Chains up to 3 links
4 Grouped XY-Chains
1 Hidden Unique Rectangle
2 ALS-XZ up to 5 cells
5 ALS-XZ
1 Sue de Coq
1 Recursively Solve: Unique solution found with 2 guesses, 670 nodes traversed
_________________
Quis custodiet ipsos custodes?
Normal: [D Y-m-d, G:i] PM->email: [D, d M Y H:i:s]