ALS-XZ (Almost Locked Sets)

An almost locked set, or ALS, is a group of N cells in one row, column or box that hold N + 1 candidates between them. A single cell with two candidates is the smallest ALS. If one of its digits is taken away, the set becomes locked: its cells are filled by exactly the remaining digits. ALS-XZ uses two such sets, A and B, that share a restricted digit X: every X of A sees every X of B, so X can be in at most one of the sets. The set without X is then locked. If the two sets also share another digit Z, that digit must end up in A or in B, so every cell that sees all the Z candidates of both sets can lose Z. A Y-Wing is the smallest case of this idea. ALS-XZ is a Master technique in Bare Sudoku.

When to use it

Late in hard puzzles, when the board has many cells with two or three candidates and the chains find nothing. ALS techniques look at groups of cells instead of single candidates, so they find eliminations that chains of single cells miss.

How to spot it

Look for small groups first: a two-candidate cell, two cells of one unit with three candidates between them, or three cells with four. Take two such sets that do not share a cell. Find a digit X that both hold and check that every X in one set sees every X in the other. Then take any other digit Z that both sets hold, and remove Z from the cells that see every Z in both sets.

Example

ALS-XZ
c1c2c3c4c5c6c7c8c9
r1423656785689135682593593579
r291361567456214513458
r3258123157845894583581245963579
r469258743581
r578435691569259
r615326896868974
r7587156894568256814589134589359
r834656814568974582
r925812415894583714589145896

Bold digits are given, blue digits were placed while solving, small digits are candidates. Highlighted cells form the pattern, crossed-out candidates are removed, and a circled candidate is the digit to place.

  1. Set A is r7c1 (5 8), r7c6 (5 6 8): together these cells hold 5, 6, 8, one digit more than cells, so A is an almost locked set. Set B is r4c4 (5 8), r6c6 (6 8), holding 5, 6, 8.
  2. Both sets hold 6, and every 6 of A sees every 6 of B, so at most one of the sets can contain 6.
  3. The set that does not get 6 is locked: its cells take exactly its other digits, and 5 is one of them. So 5 ends up in A or in B.
  4. A cell that sees every 5 of both sets cannot be 5. Remove 5 from r7c4.

Common mistakes

In Bare Sudoku

Needed from level: Master
In the game, the hint says: ALS-XZ

Play this puzzle · Play Sudoku · Sudoku solver

Practice puzzles

In these puzzles, ALS-XZ is the hardest technique you need. Each link opens the puzzle in the game; the solver link shows every step.

  1. Master 7.5 · Sudoku solver
  2. Master 7.5 · Sudoku solver
  3. Master 7.5 · Sudoku solver
  4. Master 7.5 · Sudoku solver
  5. Master 7.5 · Sudoku solver
  6. Master 7.5 · Sudoku solver
  7. Master 7.5 · Sudoku solver
  8. Master 7.5 · Sudoku solver
  9. Master 7.5 · Sudoku solver
  10. Master 7.5 · Sudoku solver

Frequently asked questions

What is an almost locked set?

A group of N cells in one row, column or box with N + 1 candidates between them. Taking away any one of those digits locks the set, so that its cells are filled by exactly the remaining digits.

What do X and Z stand for in ALS-XZ?

X is the restricted common digit: both sets hold it, but it can be in at most one of them. Z is the digit that gets removed: it is in both sets and must end up in one of them.

Is a Y-Wing an ALS-XZ?

Yes. A [Y-Wing](y-wing) is an ALS-XZ whose sets are the pivot with one wing and the other wing on its own. ALS-XZ applies the same idea to larger groups of cells.

What if the two sets share two restricted digits?

Then both sets are locked at once and more can be removed: each of the two digits leaves the cells that see all of its candidates in both sets, and every other digit of each set leaves the cells that see all of that digit within the set. This is called a doubly linked ALS-XZ.

All techniques

· Updated