is now programmed to find simple almost-locked sets. In this configuration:
- Code: Select all
|---c1--|---c2--|---c3--||---c4--|---c5--|---c6--||---c7--|---c8--|---c9--
-----------------------------------------------------------------------------
r1 | 4 | 89 | 3789 || 2 | 1 | 58 || 35 | 6 | 79
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r2 | 19 | 16 | 369 || 39 | 7 | 45 || 1345 | 8 | 2
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r3 | 1789 | 5 | 2 || 39 | 6 | 48 || 134 | 13 | 79
===========================||=======================||=======================
r4 | 5 | 28 | 1 || 6 | 38 | 9 || 7 | 23 | 4
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r5 | 6 | 7 | 48 || 14 | 38 | 2 || 13 | 9 | 5
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r6 | 3 | 29 | 49 || 14 | 5 | 7 || 8 | 12 | 6
===========================||=======================||=======================
r7 | 1789 | 16 | 6789 || 78 | 4 | 16 || 2 | 5 | 3
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r8 | 17 | 3 | 567 || 57 | 2 | 16 || 9 | 4 | 8
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r9 | 2 | 4 | 58 || 58 | 9 | 3 || 6 | 7 | 1
-----------------------------------------------------------------------------
It found this one:
- Code: Select all
|---c1--|---c2--|---c3--||---c4--|---c5--|---c6--||---c7--|---c8--|---c9--
-----------------------------------------------------------------------------
r1 | 4 | 89 | 3789 || 2 | 1 | 58 || 35 | 6 | 79
A x z A A
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r2 | 19 | 16 | 369 || 39 | 7 | 45 || 45 | 8 | 2
B x B B x
===========================||=======================||=======================
A={89 58 35}
B={19 16 369}
x=9 (weak link)
z=3 (common, can be eliminated)
8
(r1c3) | {89 58 35}
3...3--A--5
. |
3 9
| .
1---B--9
| {19 16 369}
6
But here's another that is already doubly weakly linked
- Code: Select all
|---c1--|---c2--|---c3--||---c4--|---c5--|---c6--||---c7--|---c8--|---c9--
-----------------------------------------------------------------------------
r1 | 4 | 89 | 3789 || 2 | 1 | 58 || 35 | 6 | 79
Bxx **
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r2 | 19 | 16 | 369 || 39 | 7 | 45 || 45 | 8 | 2
A x *
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r3 | 789 | 5 | 2 || 39 | 6 | 48 || 134 | 13 | 79
A xx
===========================||=======================||=======================
r4 | 5 | 28 | 1 || 6 | 38 | 9 || 7 | 23 | 4
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r5 | 6 | 7 | 48 || 14 | 38 | 2 || 13 | 9 | 5
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r6 | 3 | 29 | 49 || 14 | 5 | 7 || 8 | 12 | 6
===========================||=======================||=======================
r7 | 789 | 16 | 789 || 78 | 4 | 16 || 2 | 5 | 3
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r8 | 17 | 3 | 567 || 57 | 2 | 16 || 9 | 4 | 8
A
---+-------+-------+-------||-------+-------+-------||-------+-------+-------
r9 | 2 | 4 | 58 || 58 | 9 | 3 || 6 | 7 | 1
-----------------------------------------------------------------------------
In chain notation, the situation is:
- Code: Select all
.8
. \
8 9
| .
1---+--9
|
7
Since the two chains are mutually weakly linked, together they are
essentially "locked" on 8 and 9, and they act just like a naked 89 89
pair -- all other 8s an 9s weakly linked to both A and B can be eliminated.
I should note that only one case in the top95 puzzles was solved just
with "standard methods"+"almost-locked sets" (in this direction, at least,
I don't know yet about X-cycles).
That's #14:
http://www.stolaf.edu/people/hansonr/sudoku?LOAD=top95.14
Here's what it found in snapshot #29:
A={26 23}
B={79 39 679}
x=3 (weak link)
z=6 (can be eliminated)