dml wrote:Mauricio wrote:I can now generate about 1500 puzzles/hour/2.8Ghz with the pattern of dml/Ocean hard puzzles, ie, 3 diagonal boxes with one clue each and the other boxes with 3 clues each, 21 clues total. A week ago I would be happy if a generated one of those in 1 day or work. Ocean, dml, is that number (1500 puzzles/hour/2.8Ghz) close to yours? Or you have some kind of secret not revealed? Or are you are just smarter than I?
With a similar pattern as yours I found in 1 hour 4744 valid sudokus at 3.0Ghz
[snip]
Then this seems similar to what you can achieve
The best way to generate lot of hard grids is:
use a total 21 clues, if you try 20 clues you will see it is much harder to find some valid grids and the grids have similar density properties and ranking than 21-sudokus
use 1 or 3 clues per box , 7 clues per horizontal or vertical 3-boxes
If 1-clue the central square in a box offers generally the highest density, but some others positions give also some high density
If 3-clues, they should be put in different columns and rows inside a box, it does not seems the diagonal is optimal
The most important factor is that all 7 clues in the 3 horizontal or vertical boxes should be all different, this is that single property that create the extremely high density of very hard sudokus, for some specific patterns you can reach quasi 100% of hard grids!!!
Just for fun I programmed a similar pattern: 7 different clues per chute, 1 to 3 clues per box, with a bias to the diagonal. I produce 2100 of these per hour at 1.6GHz. Also comparable. Lots of hard ones but no gold nugget .
Regards,
Mike Metcalf