Solving Sudoku : Swordfish
This is very similar to using X-Wings, in that it will allow you to use knowledge about rows to remove candidates from columns, and vice versa.
Make sure you're happy with why X-Wings work before moving on to Swordfish!
The complexity here is that you're using knowledge from 3 rows at the same time - and that's what makes them harder to spot. Unlike X-Wings, they don't form a simple rectangle.
| This puzzle is mostly solved - but we've reached a point where simpler methods aren't helping. |
78W(124)5W(14)369
3W(24)6W(24)98157
(26)(126)378W(14)59W(24)
7(12)9W(14)(23)5W(48)(38)6
5849(23)671(23)
832549671
9W(46)7(68)13W(48)25
W(46)51(68)729(38)W(34)
) | There's actually a Swordfish in 4s in this puzzle, so we'll explain what it is and how it works.
To begin with, highlighting all of the places where 4 is still a candidate will help to make things easier. |
| What we're looking for are sets of values that we can use to make a chain - just like in an X-Wing being a closed chain of four values, a Swordfish needs a closed chain of 6 (or more) values. |
0W(4)_5
_9
.W(4),W(4),
_9
_9
0W(4)_4W(4),
_9
) | The Swordfish here is in three rows (3, 5 and 8).
We'll remove the other values for now to make it a little clearer. |
0W(4)_5
_9
.W(4),W(4),
_9
_9
0W(4)_4W(4),
_9
) | Just like in the X-Wing example, a value in one position forces the other in the same row to not be that value. Lets put in some arrows to help to show that. |
| See that each of the arrows end in a column that matches one of the other rows? |
0W(4)_5
_9
.W(4),W(4),
_9
_9
0W(4)_4W(4),
_9
) | This makes a fairly neat closed chain - and that means we can be sure that every one of those columns is occupied. To show the links, here are the arrows.
|
There really are only two possibilites for the positions of the 4s within this loop:
|
0W(4)_5
_9
.E(4),W(4),
_9
_9
0W(4)_4E(4),
_9
) | 0E(4)_5
_9
.W(4),E(4),
_9
_9
0E(4)_4W(4),
_9
) |
| Either way the values were arranged, you can see that these three columns are occupied by the contents of those three rows. |
X78K(12s4)5(14)X369
W3X(24)W6X(24)W9W8X1W5W7
(26)X(126)3X78(14)X59(24)
W7X(12)W9X(14)W(23)W5X(48)W(38)W6
5X84X9(23)6X71(23)
8X32X549X671
W9X(46)W7X(68)W1W3X(48)W2W5
(46)X51X(68)72X9(38)(34)
) | Once again highlighting the columns, you know that you can remove candidates for 4 from anywhere in those columns other than the three Swordfish rows. |
That's a great deal of work just to remove one candidate - but any progress helps when you're in the toughest puzzles!
 | Tip: This only works because the loop is closed! This makes it easier to search for - you know that if you follow a chain and find yourself back at the start, there's a closed loop! It might not mean you can remove any candidates every time, though, which means you have to carry on searching. |
| Here's another example - there's a Swordfish in rows for 1s.: |
(47)(12)X98(14)1X84X953X267W(29)X(29)W7X(14)W6W8X(15)W(45)W3(279)Y(12579)(12)X6(19)(25)X438W4X(15)W6X8W3W7X(15)W9W23Y(1259)8X(25)(19)4X67(15)6X4(15)X38(15)X729W8X(17)W9X(17)W2W6X3W(45)W(45)(27)X3(25)X(457)(47)9X816
) |
Hang on... so this works for any closed loops?
Yup - and it doesn't have to be limited to lines - its possible to connect values that share the same box, but it really does get incredibly complicated! Chances are that you can probably find a simpler method to help you.
Isn't an X-Wing just a closed loop?
Again, yup! An X-Wing and Swordfish are really the same thing - an X-Wing with 2 rows and columns, and a Swordfish on 3 rows and columns.
If you can see where this is heading... yes, it means that it is possible to have a Swordfish-4, which means it uses the connections between 4 lines! (These are sometimes called Jellyfish.) These are incredibly rare indeed, and usually another technique will work without you having to rely on them!