Sudoku RoyaleDownload

Alternating Inference Chains (AIC) in Sudoku, Step by Step

English

An alternating inference chain (AIC) is a chain of candidates joined by links that alternate strong, weak, strong, and that starts and ends with a strong link. Unlike an X-Chain or an XY-Chain, it can mix both kinds of strong link, two-candidate cells and digits with two places in a house, and pass through cells with more candidates. Either the first candidate or the last one must be true, so any candidate that clashes with both ends can be removed.

Below is a short AIC with three strong links from a real puzzle, checked both ways: once assuming the first end is true and once assuming the last end is true. The same elimination falls out of each case.

The two links, on any digit

Cells are named by row and column, so R4C7 is row 4, column 7. A candidate is one digit in one cell, written here as "1 in R4C5".

  • Strong link: at least one is true. There are two kinds. A cell with exactly two candidates (one of the two digits must go there). Or a row, column or box where a digit has exactly two places (one of them must hold it).
  • Weak link: at most one is true. Two different digits in the same cell. Or the same digit in two cells that share a row, column or box.

Read a chain from one end and assume that end is false. A strong link makes the next candidate true. A weak link makes the one after it false. Because the chain ends on a strong link, the far end comes out true. So if the first end is false, the last end is true: at least one of the two ends holds.

A strong link can always stand in for a weak one, since two candidates that are the only two options can never both be true. The reverse never works.

What an AIC lets you remove

  • Both ends are the same digit. Remove that digit from every cell that sees both end cells.
  • The ends are different digits, in two cells that see each other. Each end cell loses the other end's digit.

A worked example: three strong links, two kinds

This position is from a master-level puzzle in the Sudoku Royale library, after the basic techniques are used up. The chain mixes a two-candidate cell with two row and column links, and passes through R5C3, which has three candidates. Neither an X-Chain nor an XY-Chain can do that.

AIC: 1 in R4C5 strong to 4 in R4C5, weak to 4 in R4C3, strong to 4 in R5C3, weak to 1 in R5C3, strong to 1 in R5C9. One end is a 1, so 1 is removed from R4C7.C1R1C2R2C3R3C4R4C5R5C6R6C7R7C8R8C9R924796895348947848923791236791279168936793891781589425679235679147919379261459857935795246971414691938871494932659159316969518168927427794215378379678936796317848947852781247179578962347813797893479
  • Assumed false when reading from R4C5
  • Then true
  • Strong link
  • Weak link
  • 1 removed
(1=4)R4C5 - (4)R4C3 = (4)R5C3 - (1)R5C3 = (1)R5C9. Either R4C5 or R5C9 is a 1, and R4C7 sees both.

The links, in order:

  1. 1 in R4C5 to 4 in R4C5, strong. R4C5 has only 1 and 4 left.
  2. 4 in R4C5 to 4 in R4C3, weak. Both are in row 4, so they cannot both be 4.
  3. 4 in R4C3 to 4 in R5C3, strong. Column 3 has a 4 candidate only in these two cells.
  4. 4 in R5C3 to 1 in R5C3, weak. R5C3 has 1, 4 and 9 left. If it is 4 it is not 1, but if it is not 4 it could still be 9. That is why this link is only weak.
  5. 1 in R5C3 to 1 in R5C9, strong. Row 5 has a 1 candidate only in these two cells.

In short notation: (1=4)R4C5 - (4)R4C3 = (4)R5C3 - (1)R5C3 = (1)R5C9. "=" is a strong link and "-" a weak one.

Case A: R4C5 is 1

R4C7 shares row 4 with R4C5, so R4C7 is not 1.

Case B: R4C5 is not 1

Then R4C5 is 4. R4C3 is not 4 (row 4), so R5C3 is the 4 of column 3. R5C3 is then not 1, so R5C9 is the 1 of row 5. R4C7 shares box 6 with R5C9, so again R4C7 is not 1.

Every possible solution falls under case A or case B, and both remove the 1 from R4C7. R4C7 had only 1 and 9, so it becomes a 9. From there, singles and the other basic techniques finish the puzzle.

In the actual solution, case B is the one that happens: R4C5 is 4 and R5C9 is 1. You do not need to know that to use the chain.

Puzzle 201087 from the Sudoku Royale library. Givens (row by row, dots are blanks): ..5....1.......4.....26.8...2.7...3.87..326..3..5...4..4215....63..9.............. The candidates shown are what is left after singles, pointing and claiming, naked and hidden pairs, triples and quads, X-Wing and Swordfish, with nothing else applied.

Same links, different digits at the ends

Read most of the same links from the other side and start at R4C7, which has only 1 and 9. The chain now ends on a 4 instead of a 1.

AIC: 9 in R4C7 strong to 1 in R4C7, weak to 1 in R5C9, strong to 1 in R5C3, weak to 4 in R5C3, strong to 4 in R4C3. R4C7 is 9 or R4C3 is 4, so R4C3 cannot be 9.C1R1C2R2C3R3C4R4C5R5C6R6C7R7C8R8C9R924796895348947848923791236791279168936793891781589425679235679147919379261459857935795246971414691938871494932659159316969518168927427794215378379678936796317848947852781247179578962347813797893479
  • Assumed false when reading from R4C7
  • Then true
  • Strong link
  • Weak link
  • 9 removed
(9=1)R4C7 - (1)R5C9 = (1)R5C3 - (4)R5C3 = (4)R4C3. Either R4C7 is 9 or R4C3 is 4. Both rule out a 9 in R4C3.
  1. R4C7 has only 9 and 1: if it is not 9, it is 1.
  2. R4C7 and R5C9 share box 6: if R4C7 is 1, R5C9 is not.
  3. Row 5 has 1 only in R5C9 and R5C3: so R5C3 is 1.
  4. Then R5C3 is not 4.
  5. Column 3 has 4 only in R5C3 and R4C3: so R4C3 is 4.

So R4C7 is 9 or R4C3 is 4. If R4C7 is 9, R4C3 cannot be 9 because they share row 4. If R4C3 is 4, it is not 9 either. R4C3 loses its 9 in both cases. (The rule would also take 4 out of R4C7, but R4C7 has no 4.)

This is the case X-Chains and XY-Chains never cover: the two ends are different digits, and the elimination is in one of the end cells, not in a cell outside the chain.

How to look for an AIC

  1. Do the easy steps first. AICs need full, correct candidates. One candidate erased by mistake can make a fake strong link.
  2. Start from a target. Pick a candidate you suspect is false, such as the 1 in a two-candidate cell like R4C7. Find strong links that start from candidates it sees, then try to join their far ends.
  3. Grow from strong links you can see. Two-candidate cells, and digits with only two places in a row, column or box. Join them with weak links: same cell, or same digit in a shared house.
  4. Check after every strong link. Each time the chain ends on a strong link, ask what clashes with both ends. You can stop at the first useful elimination.
  5. Prove it both ways. Assume the first end is true and write the elimination. Then assume it is false, walk the chain, and check the last end gives the same elimination. If either case fails, the chain is wrong.
  6. Keep it short. Every extra link is one more place to misread a candidate. A chain with three strong links is quick to check twice.

AIC vs the chains you already know

  • An X-Chain is an AIC that uses only row, column and box links on one digit.
  • An XY-Chain is an AIC whose strong links are all inside two-candidate cells.
  • A W-Wing is a short AIC: two-candidate cell, one strong link on a digit, two-candidate cell.
  • 3D Medusa colours candidates along the same two kinds of strong links on many digits at once. It cannot carry a colour through a weak link like the one inside R5C3 in the example above.

The same position also has an XY-Wing on R4C5, R4C7 and R5C4, which removes 9 from other cells. Look for the simpler pattern first. For the order to learn things in, see our list of sudoku techniques in learning order.

Train both kinds of strong link

The Dojo in Sudoku Royale has no AIC drill. Its Simple Colouring drill trains strong links on one digit across rows, columns and boxes, and its XY-Wing drill trains links through two-candidate cells. An AIC is those two joined together. Open the Simple Colouring drill or the XY-Wing drill on your iPhone.

Get Sudoku Royale: Free on iOS

Frequently Asked Questions

What is an alternating inference chain in sudoku?

An alternating inference chain (AIC) is a chain of candidates where the links alternate strong and weak, starting and ending with a strong link. At least one of its two end candidates must be true, so any candidate that conflicts with both ends can be removed.

What is the difference between a strong link and a weak link?

A strong link means at least one of two candidates is true: a cell with only two candidates, or a digit with only two places in a row, column or box. A weak link means at most one is true: two digits in the same cell, or the same digit in two cells that see each other.

Is an AIC the same as an X-Chain or XY-Chain?

Both are special cases of an AIC. An X-Chain stays on one digit and uses only house links. An XY-Chain uses only two-candidate cells. A general AIC can mix both kinds of strong links and pass through cells with more than two candidates.

What can I eliminate when the two ends are different digits?

If the end cells see each other, each end cell loses the other end's digit. In the example on this page, the chain ends on 9 in R4C7 and 4 in R4C3, so R4C3 cannot be 9.

Is an AIC the same as guessing?

No. You never place a digit to see what happens. The chain shows that one of two candidates is true in every solution, and the elimination holds in both cases.

Sudoku Royale: classic sudoku, no ads, live matches when you want themDownload Free