After the X Wing and XY Wing and other simpler steps we end up here:
- Code: Select all
*--------------------------------------------------*
| 37* 23 47 | 8 5 24 | 1 6 9 |
| 9 5 1 | 6 3 7 | 8 4 2 |
| 46 26 8 | 1 24 9 | 7 3 5 |
|----------------+----------------+----------------|
| 36^ 9 2 | 5 68 38 | 4 1 7 |
| 8 1 47 | 9 27 24 | 3 5 6 |
| 4(7) 36^ 5 | 37* 467 1 | 2 9 8 |
|----------------+----------------+----------------|
| 5 4 6 | 37 78 38 | 9 2 1 |
| 1 7 3 | 2 9 6 | 5 8 4 |
| 2 8 9 | 4 1 5 | 6 7 3 |
*--------------------------------------------------*
It's easy to slove it with a short XY chain. There are probably numerous chains that would solve it, Here's one:
7-(r6c4)-3-(r6c2)-6-(r4c1)-3-(r1c1)-7 which eliminates the 7 in r6c1, reducing the puzzle to singles.
Above, the ends of the chain are marked with *, the other cells in the chain are marked with ^, and the candidate that gets excluded has () around it. r6c1 loses its 7 because it sees both the start of the chain in r6c4 and the end of the chain in r1c1.
In nice loop notation:
[r6c1]-7-[r6c4]-3-[r6c2]-6-[r4c1]-3-[r1c1]-7-[r6c1], => r6c1<>7
A more interesting way to solve it, though, is to recognize that it's a classic BUG+1. BUG is described here:
http://forum.enjoysudoku.com/viewtopic.php?t=2352From that article:
A Bivalue Universal Grave (BUG) is any grid in which all the unsolved cells have two candidates, and if a candidate exists in a row, column, or box, it shows up exactly twice.A BUG grid
cannot have a unique solution. It may have no solutions, or more than one solution, but never one solution.
This grid is called a BUG+1 because only one cell is keeping it from being a BUG,
- Code: Select all
*--------------------------------------------------*
| 37 23 47 | 8 5 24 | 1 6 9 |
| 9 5 1 | 6 3 7 | 8 4 2 |
| 46 26 8 | 1 24 9 | 7 3 5 |
|----------------+----------------+----------------|
| 36 9 2 | 5 68 38 | 4 1 7 |
| 8 1 47 | 9 27 24 | 3 5 6 |
| 47 36 5 | 37 467 1 | 2 9 8 |
|----------------+----------------+----------------|
| 5 4 6 | 37 78 38 | 9 2 1 |
| 1 7 3 | 2 9 6 | 5 8 4 |
| 2 8 9 | 4 1 5 | 6 7 3 |
*--------------------------------------------------*
r6c5 is the only unsolved cell that is not bivalue. All the other unsolved cells have exactly two candidates. Furthermore, with the exception of r6c5, any candidates that appear in a group do so twice.
Lok at column 1. It has two 3s, two 7s, and two 4s. Box 1 has two 3s, two 7s, two 2s, two 4s, and two 6s.
This grid is almost a BUG, and remember, a BUG grid is invalid. We can use this to solve the puzzle.
What would it take to make this grid a BUG? Well, we'd have to do something to r6c5, which is the only non-bivalue cell. If we remove one candidate from r6c5 we can make this a BUG, which, of course, would be invalid. But removing which candidate makes this a BUG?
Remove the 4? No. There are two 4s in row 6 and column 5, and box 5. Remove the 4 and those groups would have only a single 4, so there would be no BUG.
Remove the 6? No. There are two 6s in row 6 and column 5, and box 5. Remove the 6 and those groups would have only a single 6, so there would be no BUG.
Remove the 7? Yes! There are 3 7s in row 6, 3 7s in box 5, and one 7 in column 5. If we remove the 7 from r6c5 we will have a BUG, which, as we know, would be invalid.
Here's what the grid would look like if we remove the 7 from r6c5:
- Code: Select all
INVALID!! This grid is a BUG
*--------------------------------------------------*
| 37 23 47 | 8 5 24 | 1 6 9 |
| 9 5 1 | 6 3 7 | 8 4 2 |
| 46 26 8 | 1 24 9 | 7 3 5 |
|----------------+----------------+----------------|
| 36 9 2 | 5 68 38 | 4 1 7 |
| 8 1 47 | 9 27 24 | 3 5 6 |
| 47 36 5 | 37 46 1 | 2 9 8 |
|----------------+----------------+----------------|
| 5 4 6 | 37 78 38 | 9 2 1 |
| 1 7 3 | 2 9 6 | 5 8 4 |
| 2 8 9 | 4 1 5 | 6 7 3 |
*--------------------------------------------------*
Look at it. All the unsolved cells are bivalue i.e. they have exactly two candidates. Every candidate that appears in a row, column or box does so exactly twice. This is a BUG, which, of course, is invalid.
We get an invalid grid if we remove the 7 from r6c5. Therefore, r6c5 must be a 7.
So set r6c5 to 7 and it's all singles after that.
Whenever you have a grid that is all bivalue except for one cell, it is worthwhile to look and see if it's almost a BUG. They often are, and it's a fun and easy way to finish a puzzle.