I am a rookie programmer and I need your help to define the technique's priority in my program.
My dilemma is:
do I have to give priority to the "quality" of the technique or to the length of the chain?
In the following puzzle:
- Code: Select all
*--------------------------------------------------------------------*
| 278 69 369 | 68 12 123 | 4 5 789 |
| 4 5 369 | 68 7 23 | 289 289 1 |
| 278 17 178 | 9 5 4 | 278 3 6 |
|----------------------+----------------------+----------------------|
| 1 67 2 | 3 68 9 | 678 4 5 |
| 79 4 679 | 2 168 5 | 13678 1678 378 |
| 3 8 5 | 7 4 16 | 169 169 2 |
|----------------------+----------------------+----------------------|
| 5 2 4 | 1 69 8 | 3679 679 379 |
| 6 179 1789 | 5 3 27 | 1289 1289 4 |
| 789 3 1789 | 4 269 267 | 5 12689 89 |
*--------------------------------------------------------------------*
there is a forcing chain of 5 nodes bringing to a contradiction : if r1c9=8 then r1c9<>8
a forcing chain of 31 nodes: if r3c1=7 then r3c1<>7
and two nishio chains of 2 & 4 nodes: if r8c7 = 9 then r1c2=9 & r1c2<>9 (or if r8c7 = 9 then r1c2=9 & r1c9=9)
In other words: between a forcing chain of 31 nodes and a nishio of 6 nodes, which I should consider first.
Another question: may I post the url of my site where you can play online sudoku, killer sudoku and sudokuX and downoload the free programs for solving and generating?
Thank you for your help,
Gabriele