DoubleB72 wrote:i have been reading about rectangles and they are sort of making sense. Would someone be so kind to explain the next step here, as far as what can be eliminated and why? I think I may understand it from there.
Thanks
- Code: Select all
*-----------------------------------------------------------*
| 16 3 5 | 2 8 7 | 146 69 149 |
| 18 2 9 | 4 3 6 | 1578* 78 158* |
| 7 4 68 | 1 9 5 | 68 3 2 |
|-------------------+-------------------+-------------------|
| 249 1 247 | 5 6 48 | 278 789 3 |
| 49 678 3467 | 39 2 48 | 15* 6789 15* |
| 5 68 236 | 39 7 1 | 268 4 89 |
|-------------------+-------------------+-------------------|
| 3 9 48 | 6 1 2 | 48 5 7 |
| 24 67 2467 | 8 5 3 | 9 1 46 |
| 68 5 1 | 7 4 9 | 3 2 68 |
*-----------------------------------------------------------*
The thing about Unique Rectangles is this.. There can't be a "deadly pattern"
What is a deadly pattern? It's an arrangement of candidates that would allow a puzzle to have more than one solution.
Look at the 15 pair in row 5 of box 6. Then notice that the 15 pair appears in the same columns in box 3, along with some other candidates.
The deadly pattern would be this:
- Code: Select all
IMPOSSIBLE!!! PUZZLE WOULD HAVE MULTIPLE SOLUTIONS!!!
*-----------------------------------------------------------*
| 16 3 5 | 2 8 7 | 46 69 49 |
| 18 2 9 | 4 3 6 | 15* 78 15* |
| 7 4 68 | 1 9 5 | 68 3 2 |
|-------------------+-------------------+-------------------|
| 249 1 247 | 5 6 48 | 278 789 3 |
| 49 678 3467 | 39 2 48 | 15* 6789 15* |
| 5 68 236 | 39 7 1 | 268 4 89 |
|-------------------+-------------------+-------------------|
| 3 9 48 | 6 1 2 | 48 5 7 |
| 24 67 2467 | 8 5 3 | 9 1 46 |
| 68 5 1 | 7 4 9 | 3 2 68 |
*-----------------------------------------------------------*
The 15 pairs are in a nice rectangle and occupy 2 rows, 2 columns, and 2 boxes.
It's pretty, but there is a problem with it. The puzzle can be solved 2 ways from this point. r2c7 can be either a 1 or a 5, and the other 3 cells in the rectangle will work out and there will be a 1 and a 5 in row 2, row 5, column 7, coulmn 9, box 3 and box 6 either way.
If you ever arrive at a deadly pattern like that through legitimate eliminations, then the puzzle is invalid.
- Code: Select all
*-----------------------------------------------------------*
| 16 3 5 | 2 8 7 | 146 69 149 |
| 18 2 9 | 4 3 6 | 1578* 78 158* |
| 7 4 68 | 1 9 5 | 68 3 2 |
|-------------------+-------------------+-------------------|
| 249 1 247 | 5 6 48 | 278 789 3 |
| 49 678 3467 | 39 2 48 | 15* 6789 15* |
| 5 68 236 | 39 7 1 | 268 4 89 |
|-------------------+-------------------+-------------------|
| 3 9 48 | 6 1 2 | 48 5 7 |
| 24 67 2467 | 8 5 3 | 9 1 46 |
| 68 5 1 | 7 4 9 | 3 2 68 |
*-----------------------------------------------------------*
We're going to make an assumption, though. We are going to assume that the puzzle has one and only one solution. Given that assumption, we
know that r2c7 and r2c9 cannot both be 1,5. If they were, then we'd have a deadly pattern and the puzzle would have more than one solution.
So.. r2c7 and r2c9 cannot both be 1,5.. how does that help us? Here's how: of r2c7 and r2c9, at least one of the cells
has to be a 7 or an 8. It's required, otherwise we get the deadly pattern. Think of those 2 cells as a single virtual (7,8). There's an actual (7,8) in r2c8. Together they make a naked pair knocking the 8 out of r2c1. The puzzle is solved.
If the idea of a "virtual pair" doesn't sit right, look at it this way: of r2c7 and r2c9, at least one of the cells
has to be a 7 or an 8. If one is an 8, then the 8 is knocked out of r2c1. If one is a 7, then r2c8 is made an 8, and the 8 is knocked out of r2c1. r2c1 loses its 8 either way.
Unique rectangles are easy to spot with a little practice, and they turn up more often than you might think.
I picked up the book : "Black Belt Sudoku" by Frank Longo. It advertises 300 Super Tough Puzzles.
Unique rectangles have turned up in more than half of the puzzles I've solved in it so far.
#295 is a good example. The candidate grid shows where Simple Sudoku gets stuck:
- Code: Select all
*-----------*
|...|3.5|.47|
|2..|..4|..8|
|...|9..|6..|
|---+---+---|
|...|..9|.5.|
|8..|.6.|..1|
|.4.|7..|...|
|---+---+---|
|..8|..3|...|
|9..|4..|..5|
|52.|1.6|...|
*-----------*
*-----------*
|186|325|947|
|2..|6.4|5.8|
|.5.|9..|6..|
|---+---+---|
|.12|849|.56|
|8..|562|4.1|
|645|731|...|
|---+---+---|
|..8|253|1..|
|9.1|4..|..5|
|52.|196|...|
*-----------*
*--------------------------------------------------*
| 1 8 6 | 3 2 5 | 9 4 7 |
| 2 379 379 | 6 17 4 | 5 13 8 |
| 347 5 47 | 9 178* 78* | 6 12 23 |
|----------------+----------------+----------------|
| 37 1 2 | 8 4 9 | 37 5 6 |
| 8 79 379 | 5 6 2 | 4 37 1 |
| 6 4 5 | 7 3 1 | 28 289 29 |
|----------------+----------------+----------------|
| 47 67 8 | 2 5 3 | 1 679 49 |
| 9 36 1 | 4 78* 78* | 23 26 5 |
| 5 2 347 | 1 9 6 | 378 78 34 |
*--------------------------------------------------*
The Unique Rectangle is marked with asterisks. If the 1 is knocked out of r3c5 we get a deadly pattern. Since we assume the puzzle has just one solution, r3c5
must be a 1.
Set r3c5 to 1 and the puzzle solves itself.
I'd hate to think of the tortuous solution I'd have to find if I hadn't spotted that Unique Rectangle.
Unique Rectangles.. Learn to use them. You'll be glad you did.