SudokuWiki
SudokuWiki.org
Strategies for Popular Number Puzzles

Swordfish Strategy

With X-Wings we looked at a rectangle formed by four numbers at the corners. This allowed us to exclude other occurrences of that number in either the row or column. We can extend this pattern to nine cells and achieve even more eliminations.


A Swordfish is a 3 by 3 nine-cell pattern where a candidate is found on three different rows (or three columns) and they line up in the opposite direction. Eventually we will fix three candidates somewhere in those cells which excludes all other candidates in those units.

The shaded cells show the Swordfish where X is unique to three cells in columns 2, 4 and 6. They are aligned on rows A, C and F. This means we can remove all candidate X in the other positions on those rows.

X-Wing inside a Swordfish
X-Wing inside a Swordfish

If you are not convinced that the shaded cells really must contain the solutions we can argue this way. All Swordfishes will break down into X-Wings and because we know X-Wings work, so will the Swordfish.

Take this arrangement of candidate A and let’s pretend that E6 is the solution. We ‘remove’ the rest of A in column 6 and row E. That leaves a X-Wing in AC24.
Another way to cut it
Another way to cut it
If that works for E6, let’s try another cell. Pretending C2 is a solution we remove the rest of A in row C and column 2. Again we get an X-Wing.
So all cells in the 3 by 3 grid are ‘locked’ together.
Perfect 3-3-3 Swordfish
Perfect 3-3-3 Swordfish : Load Example or : From the Start

To match theory with practise the first example is a perfect 3-3-3 Swordfish, so called because all three candidates in each column are present (that is, no solved 8s in the pattern). The yellow cells are the Swordfish cells. The green cells are those cells where 8 can be removed.

A perfect Swordfish is extremely rare. This one is provided by Klaus Brenner who found it in the newspaper La Libre Belgique.
If you remember how Naked and Hidden Triples work you'll remember that they require three numbers in three cells - in total. It's not necessary for every number to be in all three cells. So it is with the Swordfish.

Swordfishes come in a number of variations depending on the number of X present in the nine cells that make up a Swordfish. With an X-Wing you need candidate X in all four cells of the 2 by 2 formation, but with the 3 by 3 Swordfish formation you don't need X in every cell - just as long as it is spread out over 3 by 3 cells. The next example has 9 twice in each column and is called a 2-2-2 Swordfish.



Swordfish Example 1
Swordfish Example 1 : Load Example or : From the Start

This is a 2-2-2 formation Swordfish in the columns and eliminates in the rows. I have labelled the three pairs AA, BB and CC which form each "2" in the name. Notice how they are staggered so that they still cover three columns. This is a minimal Swordfish but it does the job. We have six 9s that can go in one swoop.
Swordfish example 2
Swordfish example 2 : Load Example or : From the Start
This second Swordfish is orientated in the opposite direction and we eliminate in the columns.

A Swordfish can be referred to by combining the row and columns numbers, which makes this example CDJ379. In formation terms it is 3-2-3.

Swordfish Exemplars

These puzzles require the Swordfish strategy at some point but are otherwise trivial.
They make good practice puzzles.
3, 4 and 5 are made by Klaus Brenner



Comments

Talk Subject Comments
Comments here pertain to corrections to the text, not the subject itself

... by: Rob

Sunday 1-Mar-2015
The numerical coding for Exemplar 2 (starting with 98001) contains too many numbers: 96. The first 81 numbers produce the correct Sword-fish sudoku.
Andrew Stuart writes:
Fixed! Thanks for spotting that - [Del]
Add to this Thread
Article created on 11-April-2008. Views: 707049
This page was last modified on 27-December-2014.
All text is copyright and for personal use only but may be reproduced with the permission of the author.
Copyright Andrew Stuart @ Syndicated Puzzles, Privacy, 2007-2024
Playwire