ALS-XZ

From Sudopedia, the Free Sudoku Reference Guide
Jump to navigationJump to search

The ALS-XZ rule is a solving technique that uses two Almost Locked Sets. It is the easiest of the ALS techniques, but still a technique that is rarely used by the average Sudoku player.

Make sure you understand the concept of Almost Locked Sets before you proceed.

How it works

The ALS-XZ rule says that if A and B are Almost Locked Sets (or ALSes), and X is restricted common to A and B, then no other common candidate (let's call it Z) can appear outside of A and B in a cell that can see all the Z candidates in both A and B.

Note that it doesn't matter whether or not Z is also restricted common to A and B, except that if Z is also restricted common, we can remove X as a candidate of any cells outside A and B that can see all the X candidates in both A and B. That is, each candidate, in turn, gets to play the role of restricted common, giving us the chance to eliminate the other candidate from outside cells.

This technique is best explained using an example:

ALS-XZ.png

There are two Almost Locked Sets:

  • r4568c2 (4 cells) with digits 3,4,5,6,9
  • r7c1 (1 cell) with digits 4,9

Digit 9 is restricted common to both sets. We call this the X digit. All candidates for digit 9 in both sets can see all candidates in the other set. In fact, there is only one candidate for digit 9 in each set, both are located in box 7. This box can have only a single digit 9, so one of the sets will not contain digit 9.

Digit 4 is also present in both sets. This is the Z digit. Because we know that digit 9 will not be present in one of these two sets, that set will be locked for the remaining digits and must therefore contain digit 4.

All cells that can see all candidates for digit 4 in both sets cannot contain this digit. Hence, we can eliminate digit 4 from r4c1 and r7c2.

String for original puzzle:

580700002000000000000000100009000630000000004701045008005203000006004070120060300

DOUBLY LINKED ALS-XZ EXAMPLE

An ALS-XZ with two common restricted digits (doubly linked) is more powerful than one with only one common restricted digit. This is illustrated in the example shown below which has 6 cell eliminations(indicated by -). In this example consider the ALS1, r12c6 =349 and the ALS2, r3c458=2347. The two restricted common digits are 3 and 4. It is important to note that both of these digits cannot actually be in a single ALS. In the actual solution one must be in ALS1 and the other is in ALS2. If both 3 and 4 were in ALS2, then ALS1 would have 2 cells with one candidate 9, which is impossible. Now if either 3 exclusive or 4 is assigned to ALS1, ALS1 will be a locked set with the digit 9. Therefore any cell that sees all 9's in ALS1 cannot contain 9 (r2c5 and r57c6). Similarly any cell that sees all of the 27 cells in ALS2 cannot contain 27 (r3c1). 3 can also be eliminated from r2c5.

Doubly-Linked ALS-XZ Example[code]
|------------------+-------------------+-----------------|
|   8    67  2467  |   1     5    49   | 269  267    3   |
| 2367    5  2367  |   8  2-37-9  39   |   1    4   69   |
| -234-7  9     1  | 247   237     6   |   8   27    5   |
|------------------+-------------------+-----------------|
|  47     3     8  |   6     1     2   |   5    9   47   |
| 4567    1   467  | 479   379  345-9  |  36    8    2   |
|  56     7     9  |  47    38   358   |  36    1   47   |
|------------------+-------------------+-----------------|
| 2679   67   267  |   3  2689    8-9  |   4    5    1   |
|   1     4   236  |   5   269      7  | 2369 236    8   |
| 2369    8     5  |  29     4      1  |   7  236   69   |
|------------------+-------------------+-----------------| [/code]

SIMPLEST DOUBLY-LINKED ALS-XZ EXAMPLE

This example is easy to spot because of the rectangular pattern. The row cells r2c25 and r4c25 can be combined into ALS's in which case X and Z are the common restricted digits. The column cells can also be combined into ALS's and V and W are the common restricted digits. As a result cell eliminatios occur for all of the digits as indicated by -.

Simplest Doubly-Linked ALS-XZ Example 1[code]
|------------------+------------------+----------------|
|        -X        |        -Z        |                |
|   -W   WX   -W   |   -W   WZ   -W   |   =W  -W  -W   |
|        -X        |        -Z        |                |
|------------------+------------------+----------------|
|        -X        |        -Z        |                |
|   -V   VX   -V   |   -V   VZ   -V   |   -V  -V  -V   |
|        -X        |        -Z        |                |
|------------------+------------------+----------------|
|        -X        |        -Z        |                |
|        -X        |        -Z        |                |
|        -X        |        -Z        |                |
|------------------+------------------+----------------| [/code]


This is also an example of a multidigit XY-chain loop which is continuous.

ALS notation

Advanced players are like doctors. They like compact incomprehensible writing. In a solving path, you might encounter this ALS-XZ move in the following format:

A=r4568c2, B=r7c1, X=9, Z=4 => r4c1,r7c2<>4

A is the first ALS, B is the second ALS, X is the restricted common digit and Z is the common digit that causes the eliminations.

As an alternative, an ALS move can be presented as a chain. The ALS-XZ move can be written like this in Eureka notation:

(4)r4c1|r7c2-(4=9)r7c1-(9=3564)r4568c2-(4)r4c1|r7c2 => r4c1|r7c2<>4

External link

See also