Jellyfish Sudoku Technique

Updated

A Jellyfish is the four-line version of the fish pattern behind the X-Wing and the Swordfish: a digit confined to the same four columns across four rows can be erased from every other cell in those four columns.

When a Jellyfish applies

A Jellyfish extends the Swordfish’s relaxed coverage rule one size further. Four rows are chosen, and the digit’s candidate cells across those four rows, taken together, must span exactly four columns. No single row needs candidates in all four columns — two or three is enough per row — as long as the combined span across the four rows lands on exactly four, and no row adds a fifth.

The scanning cost grows quickly with size. An X-Wing compares two rows, a Swordfish compares three, and a Jellyfish compares four, so the number of row combinations to check climbs fast even on a nine-row grid. That is why Jellyfish patterns are rare in practice and are usually left to a solving engine rather than searched for by hand, even though the underlying logic is no different from the smaller fish.

The same pattern also runs on the column axis: four columns whose candidate cells for a digit span exactly four rows trap the digit just as tightly, eliminating it from those four rows elsewhere.

Worked example

The digit 8 is confined to columns 1, 3, 5 and 6 across rows 1, 5, 6 and 9. That traps 8 out of every other cell in those four columns, which the solver reports as an elimination at r2c1.
c1c2c3c4c5c6c7c8c9
r19456871685632
r23678378367825686941
r356129345687
r41577915794679382569
r5427895678967893169
r63586358918924759
r713737913796415792598
r816889482158975693
r925678937897891694
Pattern cells
r1c3, r1c6, r5c3, r5c5, r5c6, r6c1, r6c3, r6c5, r9c3, r9c5, r9c6
Eliminations
8 from r2c1, 8 from r8c1, 8 from r2c3, 8 from r2c6, 8 from r8c6

Across rows 1, 5, 6 and 9, the only cells that can still hold 8 are r1c3, r1c6, r5c3, r5c5, r5c6, r6c1, r6c3, r6c5, r9c3, r9c5 and r9c6. Collect the columns those eleven cells use: 1, 3, 5 and 6 — exactly four distinct columns spread across exactly four rows. That is a Jellyfish on 8, even though not every row reaches all four columns; row 1 only reaches columns 3 and 6, for example, while row 6 reaches all four.

Because rows 1, 5, 6 and 9 between them must place 8 in columns 1, 3, 5 and 6, no other row can hold an 8 in any of those four columns. r2c1 was carrying 3, 6, 7 and 8 before the deduction and loses the 8, leaving 3, 6 and 7. The same reasoning also clears 8 from r8c1, r2c3, r2c6 and r8c6 on this board, so the Jellyfish removes five stray candidates in one pass even though it needed eleven cells to prove it.

How to spot a Jellyfish

  1. Pick a digit and list its candidate cells per rowFor one digit, write down which columns still hold it in each row. Rows where the digit has five or more candidate cells are not useful.
  2. Look for four rows spanning four columnsFind four rows whose candidate columns for the digit, combined, total exactly four distinct columns. Each row can use two, three or four of them.
  3. Reject a fifth columnIf any of the four rows has a candidate in a column outside the shared set of four, the pattern does not hold. Every candidate cell in the four rows must sit in one of the four columns.
  4. Erase the digit from the rest of the four columnsRemove the digit from every other cell in the four columns, outside the four base rows, then repeat the search on the column axis.

Common mistakes

Jellyfish FAQ

Is a Jellyfish just a bigger Swordfish?

Yes. The reasoning is identical — a digit confined to the same number of columns as rows — the Jellyfish simply runs the pattern at size four instead of size three.

Why does the worked example need eleven cells instead of sixteen?

A four-by-four fish only needs each of the four rows to keep the digit inside the four shared columns, not to use every one of them. Rows that have already had some of those cells filled in naturally show fewer candidate cells while the pattern still holds.

Does a fish pattern have to be a perfect square of cells?

No. Only the count of base lines and cover lines has to match — four rows and four columns for a Jellyfish. The actual number of candidate cells inside that four-by-four frame can be anywhere from four up to sixteen.

What if a fish pattern has an extra candidate cell outside the frame?

That extra cell is called a fin, and it turns the pattern into a finned fish rather than invalidating it outright. The Finned X-Wing page picks up exactly that case.