1to9only wrote:Wished there was a way to flag these users for deletion??
A PM to Pat?
1to9only wrote:Wished there was a way to flag these users for deletion??
+---+---+---+
|...|...|432|
|...|...|716|
|...|...|589|
+---+---+---+
|...|726|...|
|...|451|...|
|...|938|...|
+---+---+---+
|287|314|695|
|416|895|327|
|935|267|148|
+---+---+---+
+---+---+---+
|...|.79|432|
|3..|582|716|
|...|.43|589|
+---+---+---+
|..3|726|.5.|
|...|451|..3|
|...|938|2..|
+---+---+---+
|287|314|695|
|416|895|327|
|935|267|148|
+---+---+---+
JPF wrote:two questions:Note: when a puzzle has a unique solution, its closure is its solution grid.
- how to use Sudoku Explainer to find the closure?
- what is the corresponding rating?
JPF
m_b_metcalf wrote:1to9only wrote:Wished there was a way to flag these users for deletion??
A PM to Pat?
JPF wrote:This puzzlehas 10 solutions.
- Code: Select all
+---+---+---+
|...|...|432|
|...|...|716|
|...|...|589|
+---+---+---+
|...|726|...|
|...|451|...|
|...|938|...|
+---+---+---+
|287|314|695|
|416|895|327|
|935|267|148|
+---+---+---+
The 10 solutions have cells in common, giving what I call the "closure" of the puzzle.
Here is the closure:
- Code: Select all
+---+---+---+
|...|.79|432|
|3..|582|716|
|...|.43|589|
+---+---+---+
|..3|726|.5.|
|...|451|..3|
|...|938|2..|
+---+---+---+
|287|314|695|
|416|895|327|
|935|267|148|
+---+---+---+
two questions:Note: when a puzzle has a unique solution, its closure is its solution grid.
- how to use Sudoku Explainer to find the closure?
- what is the corresponding rating?
JPF
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.serate -M --input=sample.txt --output=sample.se
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.pencilmarks -M --input=sample.txt >sample.p
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.hints -M --input=sample.txt >sample.h
2.0, Direct Hidden Pair: Cells R2C6,R3C6: 2,3 in block: r2c6<>9, r1c6=9
2.0, Direct Hidden Pair: Cells R1C4,R3C4: 1,6 in block: r1c4<>5, r2c4=5
2.0, Direct Hidden Pair: Cells R4C9,R6C9: 1,4 in block: r4c9<>3, r5c9=3
2.0, Direct Hidden Pair: Cells R5C8,R6C8: 6,7 in block: r6c8<>5, r4c8=5
2.0, Direct Hidden Pair: Cells R4C7,R5C7: 8,9 in block: r5c7<>2, r6c7=2
3.0, Naked Pair: Cells R6C3,R6C9: 1,4 in row: r6c1<>1, r6c2<>4
7.1, Forcing Chain (w/6 nodes): R4C3.1 off: r4c3<>1
7.1, Forcing Chain (w/6 nodes): R4C1.3 off: r4c1<>3
1.2, Hidden Single: R4C3: 3 in block 4: r4c3=3
7.2, Forcing Chain (w/8 nodes): R2C3.8 off: r2c3<>8
7.2, Forcing Chain (w/8 nodes): R2C2.2 off: r2c2<>2
3.0, Naked Pair: Cells R2C2,R4C2: 4,9 in column: r3c2<>4, r5c2<>9
7.2, Forcing Chain (w/8 nodes): R1C5.7 on: r1c5<>8, r1c5=7
1.2, Hidden Single: R2C5: 8 in block 2: r2c5=8
1.0, Hidden Single: R3C5: 4 in column 5: r3c5=4
2.0, Direct Hidden Pair: Cells R2C2,R2C3: 4,9 in row: r2c3<>2, r2c6=2
1.0, Hidden Single: R3C6: 3 in column 6: r3c6=3
1.2, Hidden Single: R2C1: 3 in block 1: r2c1=3
ED=7.2/2.0/2.0
+---+---+---+
|...|...|...|
|...|...|...|
|...|...|...|
+---+---+---+
|...|123|...|
|...|4.6|...|
|...|789|...|
+---+---+---+
|...|...|...|
|...|...|...|
|...|...|...|
+---+---+---+
+---+---+---+
|...|...|9..|
|.5.|..3|...|
|7..|.4.|..2|
+---+---+---+
|...|..5|.3.|
|..1|.9.|7..|
|.8.|6..|...|
+---+---+---+
|2..|.1.|..7|
|...|8..|.6.|
|..9|...|4..|
+---+---+---+ Game 434 highest rating, r1c3 deleted
initial:
+----------------------+----------------------+----------------------+
| 13468 12346 23468 | 1257 25678 12678 | 9 14578 134568 |
| 14689 5 2468 | 1279 2678 3 | 168 1478 1468 |
| 7 1369 368 | 159 4 1689 | 13568 158 2 |
+----------------------+----------------------+----------------------+
| 469 24679 2467 | 1247 278 5 | 1268 3 14689 |
| 3456 2346 1 | 234 9 248 | 7 2458 4568 |
| 3459 8 23457 | 6 237 1247 | 125 12459 1459 |
+----------------------+----------------------+----------------------+
| 2 346 34568 | 3459 1 469 | 358 589 7 |
| 1345 1347 3457 | 8 2357 2479 | 1235 6 1359 |
| 13568 1367 9 | 2357 23567 267 | 4 1258 1358 |
+----------------------+----------------------+----------------------+
final:
+----------------------+----------------------+----------------------+
| 13468 124 23468 | 1257 25678 12678 | 9 14578 134568 |
| 1489 5 248 | 1279 2678 3 | 168 147 1468 |
| 7 1369 368 | 159 4 1689 | 3568 158 2 |
+----------------------+----------------------+----------------------+
| 469 24679 2467 | 1247 278 5 | 1268 3 14689 |
| 3456 2346 1 | 234 9 248 | 7 2458 4568 |
| 3459 8 23457 | 6 237 1247 | 125 12459 1459 |
+----------------------+----------------------+----------------------+
| 2 346 34568 | 3459 1 469 | 358 589 7 |
| 1345 1347 3457 | 8 2357 2479 | 1235 6 1359 |
| 13568 1367 9 | 2357 23567 267 | 4 1258 1358 |
+----------------------+----------------------+----------------------+
6 candidate eliminations
JPF wrote:As I wrote to you by PM, there are situations where the number of solutions is very large but where the closure or/and the rating is/are obvious.
Example:
- Code: Select all
+---+---+---+
|...|...|...|
|...|...|...|
|...|...|...|
+---+---+---+
|...|123|...|
|...|4.6|...|
|...|789|...|
+---+---+---+
|...|...|...|
|...|...|...|
|...|...|...|
+---+---+---+
Without precaution, the program loops ad infinitum.
You gave me the method by PM; it may be useful to disclose it to any reader.
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.serate -M -T --input=sample.txt --output=sample.se
"techniques":"111111111111111111111111000",
JPF wrote:I tested the program on this puzzle:
- Code: Select all
+---+---+---+
|...|...|9..|
|.5.|..3|...|
|7..|.4.|..2|
+---+---+---+
|...|..5|.3.|
|..1|.9.|7..|
|.8.|6..|...|
+---+---+---+
|2..|.1.|..7|
|...|8..|.6.|
|..9|...|4..|
+---+---+---+ Game 434 highest rating, r1c3 deleted
86 solutions
closure = initial puzzle ; ie no cell placement
ED=12.2/0.0/11.5
timing: about 6 hours
if (hint == null) {
difficulty = 20.0;
break;
}
if (hint == null) {
// difficulty = 20.0;
break;
}
1to9only wrote:JPF wrote:ED=12.2/0.0/11.5
timing: about 6 hours
If you are able to build PGExplainer.jar, comment out line 181 in Solver.java:
I'm afraid I am not.1to9only wrote:If you are able to build PGExplainer.jar...
Sure, thanks!you wrote:If there is interest (it will save you a bit of time on future runs), I can look into releasing a PGExplainer for sudokus with multiple solutions.
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.serate -U -X --input=custom.txt --output=custom.se
1to9only wrote:I'll update PGExplainer (to rate sudokus with multiple solutions) in the next few days.
.3.........2......4..6.........1..7.3.7...5.1.8..3.........8..2......4.........9.
...e..o......e.o.........ooe.........e.....e.........eoo.........o.e......o..e...
-V for odd/eVen sudokus (odd or even, or both odd and even in sudoku)
java.exe -Xrs -Xmx1g -cp SukakuExplainer.jar diuf.sudoku.test.serate -V --input=oddeven.txt --output=oddeven.se
Technique Chain Nesting Base
Level Level Multi Dynamic Nishio Rating
ForcingChainCycle 0 false false false 6.6 7.0 if both X-/Y- chains
NishioForcingChain 0 true true 7.5
DynamicForcingChain 0 true true 8.5
MultipleForcingChain 0 true 8.0
DynamicForcingChainPlus 1 0 true true 9.0 + nested sets!
NestedForcingChain 2 0 true true 9.5 + nested ForcingChainCycle (6.6)
NestedForcingChain 3 0 true true 10.0 + nested MultipleForcingChain (8.0)
NestedForcingChain 4 0 true true 10.5 + nested DynamicForcingChain (8.5)
NestedForcingChain 4 1 true true 10.5 + nested DynamicForcingChainPlus (9.0)
NestedForcingChain 4 2 true true 10.5 + nested NestedForcingChain (9.5)
+ 0.0 : 1 - 4 nodes
+ 0.1 : 5 - 6 nodes
+ 0.2 : 7 - 8 nodes
+ 0.3 : 9 - 12 nodes
+ 0.4 : 13 - 16 nodes
+ 0.5 : 17 - 24 nodes
+ 0.6 : 25 - 32 nodes
+ 0.7 : 33 - 48 nodes
+ 0.8 : 49 - 64 nodes
+ 0.9 : 65 - 96 nodes
+ 1.0 : 97 - 128 nodes
+ 1.1 : 129 - 192 nodes
+ 1.2 : 193 - 256 nodes
+ 1.3 : 257 - 384 nodes
+ 1.4 : 385 - 512 nodes
+ 1.5 : 513 - 768 nodes
+ 1.6 : 769 - 1024 nodes
+ 1.7 : 1025 - 1536 nodes
+ 1.8 : 1537 - 2048 nodes
+ 1.9 : 2049 - 3072 nodes
+ 2.0 : 3073 - 4096 nodes
+ 2.1 : 4097 - 6144 nodes
+ 2.2 : 6145 - 8192 nodes
+ 2.3 : 8193 - 12288 nodes
+ 2.4 : 12289 - 16384 nodes
+ 2.5 : 16385 - 24576 nodes
+ 2.6 : 24577 - 32768 nodes
+ 2.7 : 32769 - 49152 nodes
+ 2.8 : 49153 - 65536 nodes
+ 2.9 : 65537 - 98304 nodes
11.6, Contradiction Forcing Chain (w/816 nodes)
11.6, Nested Forcing Chains (+ Multiple Forcing Chains), ED=10.0 + 1.6 (769-1024 nodes)
4.69......2...8...5..6..7..9.4...5..........8.1...7.3...74..6.......9..1....3..2. # 0414 12 11.6/11.6/9.3
11.6, Region Forcing Chains (w/158 nodes)
11.6, Nested Forcing Chains (+ Dynamic Forcing Chains), ED=10.5 + 1.1 (129-192 nodes)
.....3..7.7.....1...9.6.8.......1..5..8.2.9..4..6.......6.4.2...5.....3.2..8..... # 0427 2 11.6/11.6/9.9