Let me see if I can redeem myself a bit, for my
earlier mistake in this thread. I hope to clarify
when you can use the "uniqueness logic", and
when you can't.
Let's say that the candidates for r3c7,8 and
r8c7,8 in a certain puzzle look like this:
- Code: Select all
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . | 27 27 .
------+-------+----------
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
------+-------+----------
. . . | . . . | . . .
. . . | . . | 27 27 .
. . . | . . . | . . .
If this puzzle has any solutions, then
it must have multiple solutions. Why?
Let's start with one solution. Clearly,
there must be 2's and 7's in r3c7,8 and
r8c7,8 (as they were the only candidates).
We can then swap the 2's and 7's in these 4 cells.
We will still have one 2 and one 7 in rows 3 and 8,
one 2 and one 7 in columns 7 and 8, and one 2 and
one 7 in boxes 3 and 9. And we didn't disturb
any of the other numbers. So we have created
a second solution!
On the other hand, let's say that the candidates for
r3c6,8 and r8c6,8 in a certain puzzle look like this:
- Code: Select all
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . 27 | . 27.
------+-------+------
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
------+-------+------
. . . | . . . | . . .
. . . | . . 27 | . 27.
. . . | . . . | . . .
The critical difference is that now each "27 cell"
is in its own box.
Here, we can't say the same thing!
This puzzle will not necessarily have
multiple solutions. Let's say we
found 1 solution, and tried to
swap the 2's and 7's again. The result
is not another solution. The rows
are still OK (one 2 and one 7 each), and
the columns are OK (one 2 and one 7 each)...
but now the boxes are messed up!
Two of them will have two 2's and two will
have two 7's.
Let's go back to the first example, and
add a 6 as a candidate to 1 of the cells:
- Code: Select all
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . | 27 276 .
------+-------+----------
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
------+-------+----------
. . . | . . . | . . .
. . . | . . | 27 27 .
. . . | . . . | . . .
On a puzzle like this, we can use the
"uniqueness logic". Assume we know
ahead of time that the puzzle has a
unique solution because the puzzle-maker
guaranteed this.
If 6 is not the final value of r3c8, then
this puzzle will have multiple solutions
(as explained above). That would contradict
the fact that the puzzle has 1 solution.
So 6 must be the final value of r3c8, and
we can drop the other 2 candidates for that cell.
Now let's return to the 2nd example, and again
add a 6 as a candidate to 1 of the cells:
- Code: Select all
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . 27 | . 276 .
------+-------+---------
. . . | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
------+-------+----------
. . . | . . . | . . .
. . . | . . 27 | . 27 .
. . . | . . . | . . .
Here we can't do anything! If the final
value of r3c8 is not 6, that does not
imply that there will be multiple solutions,
as explained above. So we have to leave all
candidates just as they are, and look for other
ways to solve the puzzle.
There is an intense discussion of uniqueness
in
this thread . Using the language of that thread, the pattern in the 3rd diagram
is called a "unique rectangle". The pattern in the 4th
diagram is not a unique rectangle.
That thread also identifies several other patterns for which
the uniqueness logic can be used.