## Sudoku Solver
Download Sudoku Dragon for a free 23 day trial on your PC. It has all the features you need to solve puzzles whether you are new to Sudoku or an expert.
## Today's Dragon TipDisplay themesTired of the same look to your Sudoku puzzles? We offer a whole range of puzzle display themes and the ability to devise and add your own ones. All colors, fonts and sizes can be easily customized to suit your taste. Read More |
## Sudoku Advanced StrategyNow that you have mastered the basic strategies you can tackle almost any Sudoku puzzle. With the full range of tactics even puzzles categorized as 'fiendish' and 'challenging' can be solved. And yet one of the delights of Sudoku is that there is another level of advanced strategy to call upon that distinguishes the Sudoku Masters from the rest. Amazing that such an apparently simple puzzle can be so complex. ## Colorful Sudoku PuzzlesWhen describing the X-Wing and Swordfish on our strategy page we introduced a good deal of logic. The tactics involved looking beyond one or two groups of squares in isolation in order to tackle interlocking groups. Both these strategies rely on looking at pairs of squares. They look through the available choices for allocation and finds squares that when all alternatives taken together can rule out other options. The 'pair rule' applies for squares where a number can only go in one of two squares in the same group (which may be a row; column or region). If there are three or more squares the rule can not be used.
Here is an example of a Sudoku X-Wing. There are two rows where there are only two squares which can take a 4 (rows
To download this puzzle and
see it in Sudoku Dragon click here...
So now let's turn to the Sudoku Swordfish to see if coloring helps there too. In this Swordfish there are three rows (
## Alternate Pair ExclusionThe X-Wing and Swordfish are examples of a more general rule. This is always satisfying for a mathematician, by looking at simple examples it is possible to extend the same logic to a general rule (this is the basis of proof by induction ➚). If you identify pairs of squares in the same row; column or region for the same number you can start coloring them. If one of the pair is also a pair in another group (row; column; region) you can continue using the same alternating coloring scheme for that pair too. These are termed 'alternate pairs' as the true allocation must be in one of the two alternative squares in the pair. [You will sometimes see these called 'conjugate pairs' on other sites, but as this term comes from mathematics, it is not very descriptive.] When you have finished coloring the linked pairs you can then make use of the pattern of colored squares. If you find a group (row; column or region) that has both colors then any other square that could take that number can be safely excluded as a possibility. This general rule covers not only the X-Wing and Swordfish types but a whole range of other patterns of possibilities. Let's look at an example.
Here is a grid with the possibilities for 6 colored. There are pairs of possibilities for 6 in row Sudoku Dragon can automatically highlight alternate pairs for you and uses the alternate pair strategy to solve difficult puzzles.
To download this puzzle and
see it in Sudoku Dragon click here... However the hard work of alternate pair coloring is not guaranteed to help solve squares. It is a technique to hold in reserve for very tricky puzzles because it takes so long to work through. Pairs are most frequently found whether you have a dozen or so possible squares left for a number, they are not as common at the beginning or end of Sudoku puzzle solving. ## Alternate Pair DeductionJust when you thought Sudoku solution strategies were becoming too mind blowingly complex, there are yet further twists to be added. It is another excuse to get out your crayons and start coloring Sudoku squares. The approach differs slightly to 'alternate pair exclusion' in the previous section, the pairs are identified and colored in just the same way but the logic used is different. If after coloring you have any group with two squares of the same color then something is distinctly wrong as that implies you could have two squares with the same symbol in the same group. If two or more squares have the same color then this particular color assignment is impossible and the other color must be the correct one and all those squares can all be allocated as the only possible squares for the symbol. Here is an example:
Starting with orange for the square Fd and blue for its alternate row pair Fe, the pairs in column
To download this puzzle and
see it in Sudoku Dragon click here...
For a further in-depth guide click here
## Multicolored Alternate PairsOnce you have mastered Alternate Pairs it is also worth looking out for another extension to the basic technique. When you color a grid you will quite often find there are two independent chains of interlinked pairs. You will need two more colors to mark up the other set of pairs and you end up with a very colorful grid! The network of linked colored squares can restrict and force square allocations rather like in the case of a single network of colored pairs.
Here's a Sudoku puzzle with all the squares that can take a 6 have been marked using the Sudoku Dragon program. There are some useful looking pairs. In region
To download this puzzle and
see it in Sudoku Dragon click here...
## Further twistsWhat was achieved with pairs could equally be achieved with triplets or quadruplets of possibilities. All that is needed is to work through the logic and see if all the three or four alternatives all combine to have a common implication. However these are too rare and too hard to identify to be of practical use. ## Hook or X-Y WingWhen I first saw the term X-Y Wing I thought someone had just mistyped X-Wing or that it was yet another variant of it. It turned out that the Sudoku X-Y Wing is another tricky advanced Sudoku strategy separate from pairs but once again using the 'either-or' logic that flows from using connected groups. To avoid confusion we'll use the term Correct identification of where a Hook is located is all too easy to slip up on. But how is this obscure relationship useful? Well the way these squares is arranged restricts possibilities elsewhere in the puzzle. If in our example the stem contains [2,5] and [5,7] then 5 is the stem number and the [2,7] the branch or hook. If 5 is the correct choice for the [2,5] square then that means the [5,7] square must be 7. The only alternative for the [2,5] square is 2, now if this is '2' then this forces the [2,7] square to be 7 and therefore the [5,7] square must be 5. These are the only two choices and if there are any squares where a 7 is not possible for both these two alternatives then we can safely exclude 7 as a possibility for them. Here are some pictures of a real puzzle that may help. It is a Sudoku at a stage where all the easy squares have been allocated. The light green squares are of interest, they are Bd that can be only [2,7];
Ce that can take [2,5] (the 9 is not possible because of the naked twin [4,9] in row
To download this puzzle and
see it in Sudoku Dragon click here... The green squares are the ones we have tentatively allocated and the blue squares indicate where a 7 can not be allocated.
The only other option for Ce was for it to be a 5 rather than a 2, and this forces us to put a 7 in Well, we are in luck as there are two squares which are blue in both the alternatives, that is square Bh and Cf - which we have highlighted in dark blue. Square Cf is not particularly helpful because we already knew a 7 could not go there - there is a 7 in column f (Square Gf). Square Bh can not be a 7 for either of the only two possibilities available for Ce (5 or 2) and so 7 can be safely excluded from the possibilities for this square. In the case of this particular puzzle, this is crucial, as that leaves only one choice for Bh as it can not be a 7 it must be the remaining possibility of '9', the hook strategy enables us to immediately solve a square and it turns out to be the last tricky one to solve. The Sudoku Hook is a general technique, the term X-Y Wing name comes from its mathematical formulation as three squares containing [x, y]; [y, z] and [x, z]. (In our case x=5; y=2; z=7). It tells us that the shared squares where the two alternative allocations for z intersect can not possibly contain a z.
For a further in-depth guide click here
Any comments on this page? Click here to contribute Ever wondered about the origins of Sudoku? Discover the long history of Sudoku on our History page. Read more... Copyright © 2005-2014 Sudoku Dragon |