Diabolical

ALS-XZ

Two Almost Locked Sets connected by a restricted common candidate. The other common candidate is eliminated from cells seeing both sets.

Also known as: Almost Locked Sets - XZ Rule

X465891372913648278436915231983819983184916572363278415915792386457275765675725576565725
ALS-XZ
In short

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

  1. Find two Almost Locked Sets: N cells in one row, column or box with N+1 candidates (a single cell with two candidates counts).
  2. Find a digit X in both, where every X in one set sees every X in the other, and a second shared digit Z.
  3. 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.

46589137291364827843691523198381998318491657236327841591579238642557275746456725645727245675746256457245

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.

X4658913729136482784369152319838199831849165723632784159157923864572757464567457245574656457245

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.

4658913729136482784369152319838199831849165723632784159157923864255727574645672564572724567574656457245

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

Diabolical puzzle · ALS-XZ

This is the board after 29 digits have been placed. Next Step tries every easier technique first, and none of them works here.

Step 1 of 4Step 2 of 4Step 3 of 4Step 4 of 4

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.

Puzzle key uPIDpe14 Play this puzzle

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

Diabolical puzzle · not 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.

Step 1 of 3Step 2 of 3Step 3 of 3

The rule to remember: every X in one set must see every X in the other.

Puzzle key uPIDpe14 Play this puzzle

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.

Puzzle 1

Diabolical · 24 clues
Puzzle key OiVv3oWK
Play this puzzle

Puzzle 2

Diabolical · 26 clues
Puzzle key eObN1HHi
Play this puzzle

Puzzle 3

Diabolical · 28 clues
Puzzle key XgwJTD2W
Play this puzzle

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

Learn first:

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.

Easy
0%0 of 30,025 Easy puzzles
Medium
0%0 of 40,115 Medium puzzles
Hard
0%0 of 70,223 Hard puzzles
Extreme
0%0 of 10,089 Extreme puzzles
Diabolical
16%1,656 of 10,112 Diabolical puzzles

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.

© 2026 Sudoku Challenge | sudokuchallenge.com

All Sudoku Techniques

Explore all 28 solving techniques in our complete technique guide.

Naked Single Hidden Single Locked Candidates Naked Pair Hidden Pair Naked Triple Hidden Triple Naked Quad Hidden Quad BUG+1 Unique Rectangle X-Wing Skyscraper Two-String Kite Empty Rectangle Simple Coloring XY-Wing Swordfish W-Wing X-Cycles XY-Chain XYZ-Wing WXYZ-Wing Finned X-Wing Finned Swordfish Jellyfish Remote Pairs