Sudoku, level 5
A level 5 Sudoku is one where, at some point, pairs and X-wings have run dry, and what gets you moving again is one of three patterns: the XY-wing, its cousin the XYZ-wing, or the swordfish. Each one asks you to follow two possibilities at once and notice that they end in the same place.
XY-wings
You need three cells that each have exactly two candidates. One of them, the pivot, can be X or Y, and it sees two other cells, the wings, one of which can be X or Z and the other Y or Z.
A level 5 puzzle, late in the solve:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 9 | 3 | 4 | 6 | 7 | 8 | 2 | 5 |
| 2 | 6 | 7 | 5 | 3 | 9 | 4 | |||
| 3 | 5 | 4 | 3 | 6 | 1 | 7 | |||
| 4 | 7 | 2 | 5 | ||||||
| 5 | 9 | 3 | 7 | 8 | 2 | 6 | 1 | ||
| 6 | 2 | 7 | |||||||
| 7 | 5 | 9 | 2 | 7 | 6 | ||||
| 8 | A | 2 | 7 | 6 | 1 | 3 | P | ||
| 9 | * | 1 | 6 | 7 | B | 5 | 2 |
- P, row 8, column 9, can be 8 or 9.
- A, row 8, column 1, can be 4 or 8, and shares a row with P.
- B, row 9, column 7, can be 4 or 9, and shares a box with P.
Follow both options for P. If P is 8 then A can't be 8, so A is 4, and if P is 9 then B can't be 9, so B is 4, which means one of A and B is a 4 whichever way P goes.
Now look for a cell that sees both A and B. The cell marked *, row 9, column 1, shares a box with A and a row with B, so whichever of them turns out to be 4, it can't be 4 as well, and its candidates drop from 3, 4 and 8 to 3 or 8.
An XYZ-wing has the same shape, but the pivot has three candidates, X, Y and Z, with wings of X or Z and Y or Z, and the cells that can lose Z are the ones that see all three.
Swordfish
A swordfish is an X-wing stretched to three rows. Here is a map of where one number can still go in a grid, drawn up to show the pattern clearly:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | S | S | |||||||
| 2 | o | o | o | o | * | ||||
| 3 | o | * | o | ||||||
| 4 | * | o | o | * | |||||
| 5 | S | S | |||||||
| 6 | o | o | o | o | |||||
| 7 | * | o | o | * | |||||
| 8 | S | S | |||||||
| 9 | o | o | o | * |
In rows 1, 5 and 8 the number only fits in columns 2, 6 and 9 (marked S), and since each of those rows needs it once, in a different column, between them they fill columns 2, 6 and 9, so every other spot in those three columns, marked *, can be cleared.
Why it works
The XY-wing shows that every possible value of the pivot leads to the same conclusion, and the swordfish is simple counting: three rows need three of a number and only have three columns to put them in, so those columns are full.
Tips
These patterns only show themselves when your pencil marks are complete and up to date, so when a level 5 grid stalls it's worth going over every empty cell once more before you start hunting for wings.