bennys wrote:I think its close but its not the same thing.
Correct me if I am wrong but a magic cell exists for a sudoku if and only if the following algorithm will work.
Pick a cell, pick a value and start applying elementary techniques if you get to solve the puzzle you stop (and you did find a magic cell) if not (you get stuck or get a contradiction) you move to the next candidate or the next cell if you finished checking the candidates for that cell without changing the candidates list.
sudoku magic cells are equivalent to CSP backdoors
bennys, you might be thinking of "magic cell" as a single entity,
but magic cells, like backdoors, may come in tuples
for a given set of constraints ("elementary techniques" say)
an N-constrained puzzle has minimal backdoor set size N
meaning that there exists N cells, that when assigned the correct
value, trivially solve the puzzle using the constraints *and*
there exists no N-1 tuple of cells that trivially solves the puzzle
you seem to have requested a backdoor size of 2
(a 2-constrained puzzle)
this puzzle has 11 size 2 FN constraint (elementary technique) backdoors (and no size 1)
- Code: Select all
. . 3 | . . . | 7 8 9
. . . | 7 8 . | 1 3 .
. . . | . . . | . . .
---------------------
2 . . | . . 4 | . . 8
6 1 . | . . . | . . .
. . . | 3 . . | . . 1
---------------------
. 6 7 | . . 5 | 9 2 .
. . . | . . . | . . .
. 4 . | . . 2 | . . .
the backdoors are
- Code: Select all
[1,1]=1[4,5]=9
[1,5]=5[5,7]=4
[3,3]=9[5,7]=4
[3,3]=9[9,1]=8
[3,6]=1[4,5]=9
[3,7]=5[8,5]=4
[3,9]=6[5,7]=4
[3,9]=6[5,9]=3
[3,9]=6[9,7]=3
[5,7]=4[6,1]=9
[6,1]=9[8,1]=5
and this one has 550
- Code: Select all
. 2 3 | 4 . . | . . 9
. . . | 1 . . | . . .
7 8 . | 6 . . | . . 5
---------------------
. . 4 | . . . | 5 . .
. 6 . | . 2 . | . . .
. . . | . 6 . | . 3 .
---------------------
5 . . | . . . | . 9 3
. 1 . | . . 8 | . . .
. . . | . . . | . 6 2