SudokuHint

Squirmbag Sudoku: The Five-Row Fish Explained

A squirmbag is the largest standard fish pattern in Sudoku, using five base rows to eliminate a candidate digit from columns. It sits at the top of the 'fish ladder', a family of patterns including the X-Wing, swordfish, and jellyfish. Understanding this pattern demonstrates a complete grasp of how Sudoku's logical constraints can interact across large sections of the grid.

These advanced fish patterns are powerful solving techniques that reveal eliminations when simpler methods like [Sudoku Fish Patterns](/blog/sudoku-fish-patterns) are exhausted. While a squirmbag is rare in human-solving, recognizing the conditions that make it possible is a key skill for tackling the hardest puzzles.

By SudokuHint TeamLast updated

The Sudoku Fish Ladder

The fish ladder is a series of increasingly large elimination patterns based on a core principle. Each pattern is named for its size, measured by the number of base sets involved. An X-Wing uses two base rows (or columns). A swordfish uses three. A jellyfish uses four. The squirmbag, completing the standard set, uses five base rows or columns.

The logic is consistent across all sizes. If a candidate digit appears in exactly two, three, four, or five rows, and those appearances are confined to an equal number of columns, then the digit must occupy those rows and columns. Consequently, you can remove that candidate from all other cells in the covering columns (or rows). This creates a scalable solving rule, though the complexity of spotting larger patterns increases dramatically.

  • Size 2: X-Wing
  • Size 3: Swordfish
  • Size 4: Jellyfish
  • Size 5: Squirmbag

How a Squirmbag Works

A squirmbag pattern occurs for a specific candidate digit. You identify five rows where the digit can only appear. In each of these five base rows, the candidate is confined to two or three possible columns. Critically, these possible positions span exactly five columns total. These five columns become the cover sets.

Because the digit must appear once in each of the five base rows, and those appearances are limited to the five cover columns, the digit will fill one cell in each row-column intersection. This means the candidate cannot exist elsewhere in those five columns. You can safely eliminate it from any cell in the cover columns that lies outside the five base rows. The same logic applies in reverse, using five base columns to eliminate candidates from rows.

Key insight: The core rule: If a digit is possible in exactly N rows and those possibilities are confined to exactly N columns, then the digit is locked into those intersections. All other instances in the N columns can be removed.

Why Large Fish Are Rare in Human Solving

While solvers can programmatically check for fish of any size, human solvers rarely encounter patterns larger than a swordfish. There are practical reasons for this. First, the candidate density required for a clean five-row, five-column interaction is low. As puzzles are solved, candidates are eliminated, which often breaks potential large fish into smaller, more manageable patterns like an X-Wing or Swordfish Strategy.

Second, the cognitive load is high. Tracking candidate positions across five rows and five columns simultaneously is challenging without software aid. The visual pattern is not as distinct as a simple 2x2 X-Wing. Also, alternative techniques like Jellyfish Strategy or chains often provide the same eliminations with less mental effort, making them a more efficient path for human solvers.

  • Low candidate density in very hard puzzles breaks large patterns.
  • Visual identification across 5 rows/columns is complex.
  • Alternative techniques like forcing chains are often faster.

When to Look for a Squirmbag

You should consider checking for a squirmbag only after exhausting all smaller fish and other common advanced techniques. A key indicator is a digit that seems persistently problematic, with many candidates scattered across the grid but showing some row or column confinement. Our hint engine finds that systematic candidate notation is non-negotiable for this search.

Focus on digits that appear as candidates in many cells but are not yet placed. Scan the grid, row by row, and note which rows contain that digit as a candidate. If you count exactly five such rows, note the columns where it appears in each. If the total number of distinct columns involved is also five, you have a potential squirmbag. This process is methodical and suited for puzzles where simpler methods have stalled completely.

Fish Patterns in Practice

The provided puzzle is solved entirely with Naked Singles, demonstrating that not every hard-looking grid requires advanced fish. For instance, early in the verified solve path, the digit 8 is placed in row 2, column 8 (r2c8). This is a Naked Single. Row 2 had four empty cells in columns 1, 7, 8, and 9, needing digits 4, 5, 8, and 9. By checking the column (c8) and box (box 3), only the candidate 8 remained valid for that specific cell.

This highlights a key point: advanced techniques like fish are needed only when no single cell is forced. In this puzzle, basic constraints repeatedly created Naked Singles, so larger patterns never formed. To see a squirmbag, you would need a puzzle where a candidate is perfectly balanced across five rows and columns with no immediate singles, a specific and uncommon arrangement.

Key Facts

  • ▪A squirmbag is a Sudoku solving technique that uses five base rows (or columns) and five cover columns (or rows) to eliminate a candidate digit.
  • ▪It is the largest named standard fish pattern, following the X-Wing (size 2), swordfish (size 3), and jellyfish (size 4).
  • ▪The pattern eliminates candidates from the cover sets (columns or rows) that lie outside the base sets.
  • ▪For a squirmbag to exist, a candidate must appear in exactly five rows, and within those rows, it must be confined to exactly five columns.
  • ▪Squirmbags are exceptionally rare in human-solving because the required candidate configuration is unstable and often disrupted by simpler moves.
  • ▪Human solvers typically use software aid or highly systematic pencil marking to identify a potential squirmbag pattern.
  • ▪Searching for a squirmbag is only efficient after all smaller fish and other advanced strategies have been exhausted.
  • ▪The logic behind all fish patterns, including the squirmbag, is based on set theory and the constraint that each digit must appear once per row and column.

Frequently Asked Questions

What is the difference between a squirmbag and a jellyfish?

Size. A jellyfish uses four base sets (rows/columns), while a squirmbag uses five. Both follow the same logical rule but operate on a larger, more complex scale.

Can a squirmbag use columns as the base sets?

Yes. The pattern is symmetrical. You can have five base columns covering five rows, eliminating candidates from those rows outside the base columns.

Why are squirmbags so rare?

The precise candidate distribution across five rows and columns is fragile. Earlier moves like placing singles often break the pattern, reducing it to a smaller fish or solving the digit outright.

Do I need to know the squirmbag to solve hard Sudoku?

No. Most extreme puzzles can be solved with smaller fish, wings, and chains. Knowing it exists completes your understanding of the fish ladder.

How does a solver decide to look for one?

Look at a candidate's positions. If it appears in exactly five rows and those positions span only five columns, investigate. Full candidate notation is essential.

Are there fish patterns larger than a squirmbag?

Theoretically, yes (size 6, 7, etc.), but they are not formally named. In standard 9x9 Sudoku, patterns larger than size 5 are virtually non-existent in practice.