- Code: Select all
6 . . | . 5 . | . . 1
. . . | 4 . 3 | . . .
. . 7 | . 2 . | 9 . .
-------+-------+------
. 1 . | . . . | . 4 .
4 . 9 | . . . | 2 . 3
. 8 . | . . . | . 5 .
-------+-------+------
. . 2 | . 9 . | 8 . .
. . . | 1 . 7 | . . .
5 . . | . 8 . | . . 6
It's very difficult to make a single move and, prior to the arrival of Sherlock, I had to guess albeit after a few logical eliminations.
- Code: Select all
The value 2 in Box 9 must lie in Row 8.
- The move r9c8:=2 has been eliminated.
The value 2 in Box 1 must lie in Column 2.
- The move r2c1:=2 has been eliminated.
The value 5 in Box 9 must lie in Row 8.
- The move r7c9:=5 has been eliminated.
The value 9 in Box 1 must lie in Row 2.
- The move r1c2:=9 has been eliminated.
The value 9 in Box 9 must lie in Column 8.
- The move r8c9:=9 has been eliminated.
The values 4 and 5 occupy the cells r3c2 and r3c9 in some order.
- The moves r3c2:=3 and r3c9:=8 have been eliminated.
Consider the chain r3c6-1-r2c5~1~r2c3-1-r9c3~1~r9c7-1-r6c7~1~r6c6.
When the cell r6c6 contains the value 1, so does the cell r3c6 - a contradiction.
Therefore, the cell r6c6 cannot contain the value 1.
- The move r6c6:=1 has been eliminated.
The critical point is the following:
- Code: Select all
6 2|3|4 3|4|8 | 7|8|9 5 8|9 | 3|4|7 2|3|7|8 1
1|8|9 2|5|9 1|5|8 | 4 1|6|7 3 | 5|6|7 2|6|7|8 2|5|7|8
1|3|8 4|5 7 | 6|8 2 1|6|8 | 9 3|6|8 4|5
--------------------------+--------------------------------------+---------------------------
2|3|7 1 3|5|6 | 2|3|5|6|7|8|9 3|6|7 2|5|6|8|9 | 6|7 4 7|8|9
4 5|6|7 9 | 5|6|7|8 1|6|7 1|5|6|8 | 2 1|6|7|8 3
2|3|7 8 3|6 | 2|3|6|7|9 1|3|4|6|7 2|4|6|9 | 1|6|7 5 7|9
--------------------------+--------------------------------------+---------------------------
1|3|7 3|4|6|7 2 | 3|5|6 9 4|5|6 | 8 1|3|7 4|7
3|8|9 3|4|6|9 3|4|6|8 | 1 3|4|6 7 | 3|4|5 2|3|9 2|4|5
5 3|4|7|9 1|3|4 | 2|3 8 2|4 | 1|3|4|7 1|3|7|9 6
I can't find any Forced Chain here but, after Sherlock has helped out twice in short order:
- Code: Select all
The 12 permutations of Column 7 and 6 permutations of Column 9 combine legally in 11 different ways.
Column 7:
3-5-9-6-2-1-8-4-7
3-6-9-7-2-1-8-5-4
3-7-9-6-2-1-8-5-4
4-5-9-6-2-1-8-3-7
7-5-9-6-2-1-8-3-4
4-6-9-7-2-1-8-5-3
4-7-9-6-2-1-8-5-3
7-5-9-6-2-1-8-4-3
3-5-9-6-2-7-8-4-1
3-5-9-7-2-6-8-4-1
4-5-9-6-2-7-8-3-1
4-5-9-7-2-6-8-3-1
Column 9:
1-2-4-8-3-9-7-5-6
1-2-5-8-3-9-7-4-6
1-5-4-8-3-9-7-2-6
1-7-5-8-3-9-4-2-6
1-8-5-7-3-9-4-2-6
1-8-5-9-3-7-4-2-6
No combination has the value 7 as a candidate for the cell r9c7.
- The move r9c7:=7 has been eliminated.
The values 7 and 9 occupy the cells r9c2 and r9c8 in some order.
- The moves r9c2:=3, r9c2:=4, r9c8:=1 and r9c8:=3 have been eliminated.
Consider the chain r9c3-1-r9c7-1-r6c7-1-r6c5-4-r6c6~4~r9c6-2-r9c4~3~r9c3.
When the cell r9c3 contains the value 3, it likewise contains the value 1 - a contradiction.
Therefore, the cell r9c3 cannot contain the value 3.
- The move r9c3:=3 has been eliminated.
The 18 permutations of Column 1 and 18 permutations of Column 2 combine legally in 44 different ways.
Column 1:
6-1-8-2-4-3-7-9-5
6-1-8-2-4-7-3-9-5
6-1-8-3-4-2-7-9-5
6-1-8-7-4-2-3-9-5
6-8-1-2-4-3-7-9-5
6-9-1-2-4-3-7-8-5
6-8-1-2-4-7-3-9-5
6-9-1-2-4-7-3-8-5
6-8-1-3-4-2-7-9-5
6-9-1-3-4-2-7-8-5
6-8-1-7-4-2-3-9-5
6-9-1-7-4-2-3-8-5
6-8-3-2-4-7-1-9-5
6-9-3-2-4-7-1-8-5
6-9-8-2-4-7-1-3-5
6-8-3-7-4-2-1-9-5
6-9-3-7-4-2-1-8-5
6-9-8-7-4-2-1-3-5
Column 2:
2-5-4-1-6-8-3-9-7
2-5-4-1-7-8-3-6-9
2-9-4-1-5-8-3-6-7
2-9-5-1-6-8-3-4-7
2-5-4-1-6-8-7-3-9
2-5-4-1-7-8-6-3-9
2-9-4-1-5-8-6-3-7
2-9-5-1-6-8-4-3-7
3-2-4-1-5-8-6-9-7
3-2-4-1-5-8-7-6-9
3-2-5-1-6-8-4-9-7
3-2-5-1-7-8-4-6-9
3-2-5-1-6-8-7-4-9
3-2-5-1-7-8-6-4-9
4-2-5-1-6-8-3-9-7
4-2-5-1-7-8-3-6-9
4-2-5-1-6-8-7-3-9
4-2-5-1-7-8-6-3-9
No combination has the value 1 as a candidate for the cell r2c1.
- The move r2c1:=1 has been eliminated.
... a chain turns up. The solution is still far from straightforward and requires Tables but at least it's obtained logically:
- Code: Select all
Consider the chain r2c5-1-r2c3-1-r9c3-1-r9c7-1-r6c7-1-r6c5.
The cell r6c5 must contain the value 1 if the cell r2c5 doesn't.
Therefore, these two cells are the only candidates for the value 1 in Column 5.
- The move r5c5:=1 has been eliminated.
Consider the chains r1c4-7-r2c5-1-r6c5-4-r6c6 and r1c4-9-r1c6~9~r6c6.
When the cell r6c6 contains the value 9, one chain states that the cell r1c4 contains the value 7 while the other says it doesn't - a contradiction.
Therefore, the cell r6c6 cannot contain the value 9.
- The move r6c6:=9 has been eliminated.
Consider the chains r1c7~7~r1c4-7-r2c5-1-r2c3-1-r9c3~4~r9c7, r1c7-4-r3c9-4-r3c2-5-r3c9-4-r1c7 and r1c7~7~r1c4-7-r2c5-1-r6c5-4-r8c5~4~r8c7.
Whichever of the 3 candidates in Column 7 contains the value 4, the cell r1c7 does not contain the value 7.
- The move r1c7:=7 has been eliminated.
Consider the chains r3c2-5-r3c9-4-r1c7~3~r8c7 and r3c9~5~r8c9-5-r8c7.
Whichever of the 2 candidates in Row 3 contains the value 5, the cell r8c7 does not contain the value 3.
- The move r8c7:=3 has been eliminated.
Consider the chains r1c8~3~r1c7-3-r9c7-1-r6c7-1-r6c5 and r1c8~3~r3c8-3-r3c1-1-r2c3-1-r2c5.
Whichever of the 2 candidates in Column 5 contains the value 1, the cell r1c8 does not contain the value 3.
- The move r1c8:=3 has been eliminated.
Consider the chains r7c6~4~r6c6-4-r6c5-1-r6c7-1-r9c7, r7c2~4~r9c3-1-r9c7 and r7c9~4~r3c9-4-r1c7-3-r9c7.
Whichever of the 3 candidates in Row 7 contains the value 4, the cell r9c7 does not contain the value 1.
- The move r9c7:=1 has been eliminated.
The cell r9c3 is the only candidate for the value 1 in Row 9.
... and that's the first move in place - I won't bore you with the rest of it. I'd be interested to here from anyone who could solve this puzzle without assistance from Sherlock.
I'm about to upgrade my Sherlock implementation to consider pairs of rows (or columns) that don't lie in the same block. I see that r.e.s. has had some success with this method.