daj95376 wrote:Is there a typo where RW wrote r3c4 instead of r2c4 ???
ha -- I glossed over the typo, then forgot about it, and then quoted it for posterity
RW wrote:Apparently it then might make a difference and this could provide an approach to finding grids with low/high clue puzzles. First construct grids with high/low numbers of fully entwined pairs, then scan those grids for puzzles. I'm also wondering if the entwined grid would make it more likely for extremely difficult puzzles to appear. I tried applying the diagonal pattern to the grid you posted and this is how close I got:
- Code: Select all
5 . 2|. . 9|. . .
. . .|. 1 .|. 5 .
1 . .|4 . .|8 . .
-----+-----+-----
. . 8|. . 4|. . 7
. 7 .|. 6 .|. . .
2 . .|8 . .|3 . .
-----+-----+-----
. . 1|. . 2|. . 8
. . .|. 3 .|. 1 .
4 . .|. . 1|5 6 .
Seems quite hard, maybe ravel can tell me how it compares to the other hard ones. If this isn't hard enough, I'm quite sure you can find a harder diagonal puzzle from the grid as this was my first (manual) try.
RW
*-----------*
|5..|...|4..|
|.4.|71.|..3|
|...|.2.|...|
|---+---+---|
|...|..4|62.|
|97.|...|...|
|.1.|...|3.9|
|---+---+---|
|6..|..2|...|
|...|.3.|.14|
|...|...|...|
*-----------*
*-----------*
|...|.8.|4..|
|..9|.1.|25.|
|...|...|..6|
|---+---+---|
|...|..4|6..|
|97.|...|.8.|
|.1.|..7|...|
|---+---+---|
|6..|..2|...|
|7..|.3.|.1.|
|4..|...|...|
*-----------*
*-----------*
|..2|3..|.7.|
|..9|...|..3|
|...|.25|...|
|---+---+---|
|.58|..4|..7|
|.7.|...|1..|
|21.|..7|...|
|---+---+---|
|...|.4.|...|
|..5|.38|.14|
|4..|9.1|.6.|
*-----------*
Ocean wrote:Anyway, still got >20000 puzzles that were not solved. It's impossible to know which puzzles that are really hard (if any).
sudoku -e 'R>=95000' -f'"%r" %v' puzzles.dat
Ocean wrote:I am also curious about this one, created by manually picking an unsolvable and gradually making it harder.
- Code: Select all
*-----------*
|..2|3..|.7.|
|..9|...|..3|
|...|.25|...|
|---+---+---|
|.58|..4|..7|
|.7.|...|1..|
|21.|..7|...|
|---+---+---|
|...|.4.|...|
|..5|.38|.14|
|4..|9.1|.6.|
*-----------*
If this last should show signs of hardness, there is still room for improvement, as there are 20000 more starters to try...
+---+---+---+
|562|389|471|
|849|716|253|
|137|425|896|
+---+---+---+
|358|194|627|
|974|263|185|
|216|857|349|
+---+---+---+
|691|542|738|
|725|638|914|
|483|971|562|
+---+---+---+ SF grid
+---+---+---+
|639|241|785|
|284|765|193|
|517|983|624|
+---+---+---+
|123|857|946|
|796|432|851|
|458|619|237|
+---+---+---+
|342|178|569|
|861|594|372|
|975|326|418|
+---+---+---+ morphed SF grid
from 1000000 generated grids from the canon grid
puzzle size puzzles in sample duplicated puzzles in sample
28 50796 0
29 6787 0
30 455 0
31 16 0
Which means at the 28 clue level there may be at least 10^9 puzzles
589732614621854379743916825835129746417568293296347158968471532372695481154283967
gsf wrote:try this with my solver
- Code: Select all
sudoku -e 'R>=95000' -f'"%r" %v' puzzles.dat
the 90000-99999(max) rating range is exponential, larger => harder
tarek wrote:I've just put it through my solver........ It is difficult. Actually it is VERY difficult. it was on the outer rim of logical algorithms my solver employs to solve....
If there is a room for improvemnt, then my solver will not be that happy
The hard puzzles that ravel collects are puzzles that forces my solver to guess. That is the level of difficulty you were so close of achieving.
ravel wrote:Ocean,
none of the 5 puzzles needed 4 steps (for 4 of them the program stopped with 2 steps, for the 3rd one with 3). Can you use gsf's solver to extract the hardest 20 out of your 20000 ?
#
85878, 56...94......1.2...3............46...7.....8....8.....6.15....8....3..1.4...7....
85138, 5.23..4....9.1...3....2.........46...7.....8..1...7...6............3..1.48....5..
76180, 56....4.....71...3....2..9......46...7.......21.......69...2....2..3..1.4........
67188, 5.2.8.4.....71...3......8.......46...7.26.....1.......6...42..........1.4..9.....
63612, 562......8..71...3...4..........46...7......5.1....3.96....2.......3..1.4........
#
57488, 5....94...4..1.2...3....8.......46...74....8...68.....691.42.......3..1...3.7....
51521, 56...9.......1.2...3............46...7.....8....8...4.6.15....8....3..144...7....
#
96128, ..1...2...3..4..5.2.......6...1.5....7.....8....9.3...6.......1.5..3..7...2...9..
95259, ..1...2...2..3..1.4.......5...4.6....7.....8....9.5...5.......9.8..1..7...3...6..
95177, ..........1..2..3...34.56....4...5...7.....8...6...4....56.89...8..7..1..........
95157, ..1...2...2..3..4.5.......6...5.6....1.....7....8.9...8.......5.7..4..1...4...3..
95153, ..1...2...2..3..4.5.......6...2.6....7.....8....3.5...6.......1.3..9..7...9...5..
95153, ..1...2...2..3..4.5.......6...2.5....7.....8....3.6...6.......1.3..9..7...9...5..
95142, ..........1.....2...34.56....4.1.5.....7.8.....6.9.7....53.64...9.....8..........
95136, ..1...2...2..3..4.5.......6...4.7....8.....7....6.5...6.......1.4..2..8...9...5..
95136, ..1...2...2..3..4.5.......6...4.7....8.....7....5.6...6.......1.4..2..8...9...5..
95083, ..1...2...3..4..5.6.......7...1.2....8.....9....3.8...9.......1.7..5..8...2...6..
95077, ..1...2...2..3..4.5.......6...4.7....8.....7....6.5...9.......5.3..9..8...6...1..
95077, ..1...2...2..3..4.5.......6...4.7....8.....7....5.6...9.......5.3..9..8...6...1..
95060, ..1...2...3..4..5.6.......7...1.2....8.....9....5.9...2.......8.9..3..6...7...1..
95054, ..1...2...3..4..5.6.......7...1.3....8.....9....5.7...7.......1.9..5..4...2...8..
95051, ..1...2...2..3..4.5.......6...1.7....5.....7....6.2...6.......1.7..8..3...4...9..
95030, ..1...2...2..3..4.5.......6...1.5....7.....8....2.6...6.......1.8..4..3...9...7..
95022, ..1...2...2..3..4.5.......6...1.7....4.....8....6.2...6.......1.3..9..7...8...5..
95022, ..1...2...2..3..4.5.......6...1.2....4.....7....6.8...6.......1.3..9..8...7...5..
95009, ..1...2...3..4..5.6.......7...1.3....8.....3....5.6...7.......1.5..9..8...2...6..
95008, ..1...2...2..3..4.5.......6...4.7....7.....8....6.5...6.......1.8..1..7...9...5..
95008, ..1...2...2..3..4.5.......6...4.7....7.....8....5.6...6.......1.8..1..7...9...5..
95006, ..1...2...2..3..1.4.......5...4.6....7.....8....9.5...3.......4.8..1..7...2...9..
95001, ..1...2...2..3..4.5.......6...4.7....4.....8....6.5...6.......1.8..2..3...9...5..
95001, ..1...2...2..3..4.5.......6...4.7....4.....8....5.6...6.......1.8..2..3...9...5..
#
Ocean wrote:The rating is most stable for very high scores and very low scores (far below those on the hard list), while in between it can show peculiar behavior: Scrambled versions of the same puzzle may score very different. The implication of this is that in the intermediate range (say from 20000 to 90000) the rating is less reliable.
Ravels rating: top1 top2 top3 coloin trivial ran2
fully entwinded 20 24 29 28 22 25
4-permuteable 13 7 6 8 9 10
8-permuteable 2 2 1 0 5 1
16-permuteable 1 3 0 0 0 0
Ran1 - 123749568456183927789625431238567149561498273947231685874952316615374892392816754
Ran2 - 123849567456217839789356124642598713971463285538172946397681452865724391214935678
Ran3 - 146328975785196342329457861493561728218973654657284139564839217832715496971642583
Ran4 - 347981256582476193169523874896245317754318962213769485925137648478692531631854729
Ran5 - 325681974641379258789425613134968725962537841857142396416293587273854169598716432
Ran6 - 416235987275689431983147625391728546847516392562394718159873264624951873738462159
Ran7 - 856923714731456298492817356348291675925764183167385429273548961684179532519632847
Ran8 - 861953274395274618427681593249817356136425789578396421612749835753168942984532167
Ran9 - 318924576596173824274586319785631942143259687962847153431768295659412738827395461
Ran10- 241589763675143982839267514467832159593614278182975346718326495926451837354798621
ravel wrote:Ocean, thanks for the interesting analysis. It also shows, how hard it is to define and evaluate super hard puzzles.
From the last list with 24 puzzles, numbers 2 (4 steps) and 19 (5 steps) are for my list.
# sudoku -B -f'%2n %6(rating)x %(magic)x %2(guess)x' r13.dat | sort --stable -n -k2,2r -k1,1
1 96128 1 21
2 95258 3 28
3 95165 1 6
4 95157 4 28
5 95150 1 6
6 95150 1 6
8 95076 3 11
9 95076 3 11
10 95068 1 4
11 95062 1 7
12 95062 1 7
13 95057 1 4
14 95051 4 14
15 95048 1 4
16 95016 1 5
19 95006 2 11
20 95005 2 8
21 95005 2 8
22 95004 1 7
17 92351 1 3
18 92351 1 3
23 83124 2 7
24 83124 2 7
7 81052 2 1
Viggo wrote:Unfortunately, I have not seen any signs yet, that a high number of fully entwinded pairs should be a better start grid for producing hard sudokus.
*-----------*
|123|469|785|
|456|187|932|
|789|253|164|
|---+---+---|
|371|694|528|
|698|512|347|
|542|378|691|
|---+---+---|
|215|946|873|
|864|735|219|
|937|821|456|
*-----------*
2-permutable 9
4-permutable 17
8-permutable 10
16-permutable 0
Ocean wrote:This grid has quite many puzzles with a low number of clues (#17s: 29; #18s: 748 minimals found; #19s: >60000; #20s: >570000 minimals). Of the puzzles with few clues in this grid, a quite high persentage solves easily.
coloin wrote:The SFB grid [no 4 set unavoidables] may also have this intertwining feature - maybe more so ?
- Code: Select all
589732614621854379743916825835129746417568293296347158968471532372695481154283967