If two Almost Locked Sets (N cells in one row, column or box with N+1 candidates) share two digits, X and Z, and every X in one set sees every X in the other, then every Z that sees all the Zs in both sets can be eliminated.
What Is It?
An Almost Locked Set is a group of cells in one row, column or box with one candidate more than it has cells: one cell with two candidates, two cells with three, and so on. Take away any one of its digits and the rest are locked into those cells.
ALS-XZ joins two such sets. They share a digit X, and every X in one set sees every X in the other, so at most one set can hold the X. The set that doesn't is locked without it, so it must hold its Z. Either way one of the two sets holds the Z, and every Z that sees all the Zs in both sets can be eliminated.
How It Works
- Find two Almost Locked Sets: N cells in one row, column or box with N+1 candidates (a single cell with two candidates counts).
- Find a digit X in both, where every X in one set sees every X in the other, and a second shared digit Z.
- Eliminate Z from every cell that sees all the Zs in both sets.
Worked Examples
Example 1: ALS-XZ
Step 1: Set A is R2C4, showing 2 and 5 (one cell, two candidates). Set B is R5C4 (2 5 6), R5C6 (2 7) and R5C9 (6 7): three cells in row 5 with four candidates, 2, 5, 6 and 7.
ALS-XZ pattern: ALS A = R2C4 {2,5}. ALS B = R5C4 {2,5,6} + R5C6 {2,7} + R5C9 {6,7}. They share restricted common X=5 and second common Z=2.
Step 2: X is 5: it is in R2C4 and R5C4, which share column 4, so only one set can hold it. If set A is the 5, set B is locked to 2, 6 and 7 and must hold the 2. If set A isn't the 5, it is the 2. Either way one of the sets holds a 2.
X=5 is restricted (R2C4 and R5C4 see each other in column 4), so Z=2 must be held by one of the two ALS. R6C4 sees every 2 in both sets, so it cannot also be 2.
Step 3: R6C4 sees every 2 in both sets: R2C4 and R5C4 by column 4, and R5C6 by box 5. Eliminate the 2 from R6C4, which is left with 5 and 6.
Digit 2 eliminated from R6C4, leaving {5, 6}.
ALS-XZ in a Real Puzzle
A puzzle from our Diabolical pool, at the moment it needs an ALS-XZ. Next Step, the game’s hint, tries every easier technique first, and none of them works here.
Without an ALS-XZ, no technique up to Diabolical finishes this puzzle. After it, singles finish the puzzle. Step through it below: the board lights what each step talks about.
ALS-XZ on 3 and 9
This is the board after 29 digits have been placed. Next Step tries every easier technique first, and none of them works here.
So one of the two sets holds the 3, and every 3 that sees all the 3s of both sets is eliminated: one cell in one step. Play it from the start and spot it yourself.
Looks Like an ALS-XZ, but Isn’t
Two sets that share two digits are easy to see and easy to get wrong. On the same board as above, two other sets have the shape but are not an ALS-XZ. Step through it to see why.
Looks like an ALS-XZ
Set A is R4C3, which shows 2 and 9: one cell, two candidates. Set B is R4C6 (2, 7 and 9), R5C5 (4 and 9) and R6C5 (2 and 4): three cells in box 5 with four candidates, 2, 4, 7 and 9. R4C6 has the 9 and shares row 4 with R4C3. It looks like an ALS-XZ that eliminates the 2 from R4C4.
The rule to remember: every X in one set must see every X in the other.
Practice on 3 Real Puzzles
Diabolical puzzles from our pool, easiest first. On the way through each one, Next Step comes to one ALS-XZ, and every other step is easier. Find it yourself, and open the hint only if you are stuck.
Frequently Asked Questions
What is an Almost Locked Set?
An Almost Locked Set is a group of N cells sharing one row, column or box whose candidates total N+1 digits. With N candidates the cells would be fully locked, like a Naked Pair or Triple; the one spare digit is what makes it ‘almost’. Take away any single digit from the set and it locks.
What does ‘restricted common’ mean in ALS-XZ?
A restricted common is a digit that appears in both sets where every cell holding it in one set sees every cell holding it in the other. So the two sets cannot both use it. That digit is X; the second shared digit, Z, is the one you eliminate.
In ALS-XZ, why must digit Z land inside one of the two sets?
Because one of the two sets must lock. At most one set can take X, so the other is left with N cells and N candidates, a proper locked set that places every digit it holds, Z among them. Whichever way it falls, Z occupies a cell in one set or the other.
Can a single cell count as an Almost Locked Set?
Yes, a bivalue cell, one cell with exactly two candidates, is the simplest ALS, since one cell holding two digits fits the N cells with N+1 candidates definition. The worked example uses exactly that: R2C4 {2, 5} is ALS A, paired with a three-cell ALS in row 5.
Where do ALS-XZ eliminations apply?
ALS-XZ eliminates Z from any cell outside both sets that sees every cell holding Z in either set. In the worked example Z is 2, held by R2C4 in ALS A and by R5C4 and R5C6 in ALS B. R6C4 sees all three, two down column 4 and one in the same box, so 2 is eliminated from R6C4.
How does ALS-XZ relate to XY-Wing and Naked Pairs?
ALS-XZ is the general form. A Naked Pair or Triple is a locked set, while an Almost Locked Set holds one candidate more than it has cells, so ALS-XZ generalises them. The forcing idea — a shared digit has to land somewhere, so cells seeing all its positions lose it — is the same one behind XY-Wing, applied to whole sets.
Key Points to Remember
- An Almost Locked Set is N cells in one row, column or box with N+1 candidates. Take away one digit and the rest are locked.
- Two ALS connect via a restricted common candidate (X), X can be true in at most one set.
- The second common digit (Z) is eliminated from cells seeing Z in both sets.
- It covers many patterns at once: a Naked Pair or Triple is a locked set, and XY-Wing is a small ALS-XZ.
- A single bivalue cell is the simplest ALS (1 cell, 2 candidates).
Related Techniques
In Our 160,000+ Puzzles
Our solver graded every puzzle on this site. This is how many puzzles at each level it used ALS-XZ in.
First used at Diabolical, in 16% of Diabolical puzzles.
In a Diabolical puzzle that uses it, it comes up about 1.4 times.
The best way to master ALS-XZ is to practice spotting it in real puzzles.