Strategies for Number Puzzles of all kinds
  Print Version
Solvers
Puzzles
Basic Strategies
Tough Strategies
Diabolical Strategies
Extreme Strategies
Depreciated Strategies
Str8ts
Other
The Logic of Sudoku
  X-Cycles

The strategy documentation pages are under going an overhaul. I hope to include detailed documentation on all the strategies used in the solvers. This will appear durinng the rest of April. Currently I have transfered the existing strategy documents to this new system.


In the X-Wing structure in Figure 1, we have two links with strong inference in rows B and H, which are marked with the solid line. Because there are just two 9s in each row, we know that if one is not a 9, the other must be. A strong link is where:

!A => B (if not A, then B)

Weak links are the opposite:

A => !B (if A, then not B)
Figure 1: Nice Loop on 9
Figure 1: Nice Loop on 9
Our weak links in the X-Wing are in the columns where more than two 9s reside. Pretending one of them is not the solution does not mean that all the others are solutions. Only a pair has this characteristic. I have drawn a weak link with a double thin line and put a -X on that line (in this case, -9) to mark it as a weak link. Strong links are marked with +9.

A "Cycle", as the name implies, is a loop or joined-up chain of single digits with alternating strong and weak links, as the X-Wing in Figure 1 shows.

In Figure 2, we have a 2-2-2-formation Sword-Fish re-drawn to show the strong and weak links. The loop characterises the X-Cycle, and the strong/weak links alternate.
Figure 2: Nice Loop on 4
Figure 2: Nice Loop on 4
Nice Loops have evolved a notation which is useful when accompanying a diagram or as part of an explanation. X is, of course, the digit, and we use the row letter and column number notation to identify cells (e.g., B2, F8). The cells in the loop are linked with a dash (hyphen) to indicate a weak link and with an equal sign to indicate a strong link, as in this example:

x[cell 1]–x[cell 2]=x[cell 3]–x[cell 4]=

The 2-2-2 Sword-Fish above can be expressed as:

4[B2]–4[B4]=4[H4]–4[H8]=4[F8]–4[F2]=

The only thing not explicit in this notation is that the last cell joins back onto the first cell. Thus, 4[F2]=[B2]. The beginning of the loop is arbitrary, but it’s convenient to use the cell closest to the top left. Note that the loops can be of any length.


Here is the notation for the 8-Cycle in Figure 3:

8[B3]=8[B4]–8[C6]=8[D6]–8[F5]=8[F3]–8[B3]=

The yellow cells are units where other 8s can be eliminated, which in this case correspond to the third column and boxes 2 and 5 – because that’s where the weak links are located.
Figure 3: Nice Loop on 8
Figure 3: Nice Loop on 8
Nice Loops Rule 1

Nice Loops that alternate all the way round are said to be 'continuous', and they must have an even number of nodes. With a continuous X-Cycle, candidates are not removed from the loop since the loop does not have any flaws. Instead we are looking to eliminate on the units that can be seen by two or move cells that belong to the loop.
Figure 4 is a real-life example of an X-Cycle based on 8. The cells with links are in yellow. We can immediately see that C2/C7 is a weak link across the row because of the 8 in C3. G2/H3 is also a weak across the box because of the third 8 in G3. The last weak link is in box 9, J7/H9. Any other 8s in these units can be removed, which makes it a powerful technique. We end up with a loop containing only strong links – a result identical to a Colouring (Singles Chains) solution.

The output from the solver will contain the following information:

X-CYCLE: 8 taken off G3 (link: G2 / H3)
X-CYCLE: 8 taken off G9 (link: H9 / J7)
X-CYCLE: 8 taken off C3 (link: C7 / C2)
X-CYCLE: 8 taken off C9 (link: C7 / C2)
X-CYCLE on 8 (Continuous Alternating Nice Loop, length 6):
8[C2]=8[G2]-8[H3]=8[H9]-8[J7]=8[C7]-8[C2]=
Figure 4: Nice Loop on 8
Figure 4: Nice Loop on 8: Load Example or : From the Start
In summary we can see that

  • X-Wing is a Continuous X-Cycle with the length of four.
  • Sword-Fish of the 2-2-2 formation is a Continuous X-Cycle with the length of six.

Although there are many other parallels as well.

This strategy is continued in X_Cycles Part 2 and the theme is continued in Grouped X-Cycles.

breakline

Comments...

Friday 12-Feb-2010

... by: Laura

I thought only strong links could have weak interference - not the other way around. I have come across several puzzles in which your solver showed a weak link and it should have been strong- there were only 2 of that number in the square. Is there a special circumstance where this could happen? Please advise thanks

Saturday 11-Apr-2009

... by: ECC

The missing detail in the explanation is that any odd length sequence of strong links counts as a single strong link, except that it cannot close the loop. That is, two consecutive strong links in a loop gives you an answer as described under discontinuous loops, but four does not.

Sunday 5-Apr-2009

... by: Elleda Katan

I'm finding again a problem I have encountered before : what seems like a contradiction between your explanation here and how x-cycles are 'used' in some of the daily puzzles. I'll use 4/5 [todays] as my example but I hit the same problem in 2/28 & elsewhere.
[1] In none of the x-cycle demos is the digit removed from the cells forming the loop. Instead it is eliminated " from cells that can be seen by two or more [loop] cells." In the 4/5 puzzle 7 is eliminated from E1, the beginning and end of the loop.
[2] The end result says your explanation is a loop containing strong links. However, in 4/5, eliminating 7 from E1 destroys the loop.
[3] In the documentation under the 4/5 puzzle, the loop is described as : 7[E1]-7[E4]=7[J4]-7[J3]=7[G1]-7[E1] "Discontinuity is two weak links joined……" However, 7[G1] to 7[E1] is a strong link, not a weak one, no? Shouldn't it read : 7[G1]=7[E1]?
Please I love love love your puzzles and am trying to get smarter at understanding the more advanced strategies, but this confusion has me X-ing out x-cycles from solutions because I am so baffled by them. Thank you for your time.

Add your comments

A confirmation email will be sent to you after submitting.

Your Name

Email Address - required for confirmation (it will not be displayed here)

Your comment or question

Remember me


Please keep your comments relevant to this article. Email addresses are never displayed, but they are required to confirm your comments.

When you enter your name and email address, you'll be sent a link to confirm your comment. If you want to be remembered, the check box above will store a cookie with your name and email address on your computer.

Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.



Article created on 12-April-2008. Views: 25695
This page was last modified on 5-May-2008, at 11:11.
All text is copyright and for personal use only but may be reproduced with the permission of the author.
Copyright Andrew Stuart @ Scanraid Ltd, 2008