Expert technique

Almost Locked Sets (ALS-XZ) in Sudoku

Almost locked sets let you treat a group of cells like a single, flexible candidate. ALS-XZ is the most common use.

Almost Locked Sets (ALS-XZ) in Sudoku: worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

What it is

An almost locked set (ALS) is N cells in one unit with N+1 candidates between them — one cell with two candidates is the simplest ALS. If you remove one digit from an ALS, the rest becomes locked. ALS-XZ uses two ALSs that share a digit X, where every X in one ALS sees every X in the other (a restricted common). X can only be in one of them, so the other is locked. If they also share a digit Z, then Z must appear in at least one ALS, and any cell seeing every Z in both sets cannot be Z.

When to use it

Expert puzzles, when wings and chains have dried up but there are many small groups of cells with few candidates.

How to apply it, step by step

  1. Find a small ALS: for example, two cells in a row holding three digits in total.
  2. Find a second ALS that shares two digits with the first.
  3. Check that one shared digit, X, is a restricted common: every X in one set sees every X in the other.
  4. Call the other shared digit Z.
  5. Remove Z from any cell outside the two sets that sees all Z candidates in both sets.

Worked example

ALS A is r1c1 = {2,6} and r1c2 = {2,6,8}: two cells, three digits. ALS B is the single cell r5c2 = {6,8}. The only 8 in A (r1c2) sees the 8 in B (r5c2) through column 2, so 8 is a restricted common: at most one set can hold it.

Whichever set does not hold 8 is locked and must contain 6. So 6 is in A or in B. Cells that see every 6 in both sets — r2c2 and r3c2, which share box 1 with A and column 2 with B — cannot be 6.

Common mistakes

  • Skipping the restricted common check. Every X in one set must see every X in the other.
  • Eliminating Z from cells that see only some of the Z candidates.

Questions

Is a bi-value cell an ALS?

Yes. One cell with two candidates is the smallest almost locked set.

What is an ALS chain?

It links several ALSs by restricted commons, like an AIC that uses groups of cells instead of single candidates.

Your learning path

Ready to practise?
Try it on today’s free daily Sudoku, or start a practice puzzle at your level.