Hi,
I found another
link showing naked triplet within a mini-line (i.e., either mini-row or mini-column) claiming as Y-Wing. This is not normally thought of as a Y-Wing, but rather as a naked triplet.
My question is that, for Y-Wings, there are two types of elimination, either only one cell OR five cells from where elimination will occur. Am I right?
Is it possible to enumerate both types of Y-Wing separately so that three cells containing Y-Wing satisfied candidates with (a) one cell for elimination; and (b) five cells for eliminations?
Let for example, consider a 9x9 Sudoku matrix whose top left cell labeled 0, top right cell labeled 8, bottom left cell labeled 72 and bottom right cell labeled 80.
- Code: Select all
00 01 02 03 04 05 06 07 08
09 10 11 12 13 14 15 16 17
18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35
36 37 38 39 40 41 42 43 44
45 46 47 48 49 50 51 52 53
54 55 56 57 58 59 60 61 62
63 64 65 66 67 68 69 70 71
72 73 74 75 76 77 78 79 80
For first type of Y-Wing, create two dimensions array of n and 4 values, where n represent number of possible combinations and 4 represent three Y-Wing cells and one elimination cell. (int yw1[n][4];)
yw1[0] = {0,3,9,12}; Is this the first combination? or {0,3,27,30}, i.e., all four cells lying in different boxes?
yw1[1] = {0,4,9,13};
...
yw1[5] = {0,8,9,17};
yw1[6] = {0,3,18,21};
...
...
yw1[n] = {68,71,77,80};
For second type of Y-Wing, int yw2[m][8];
yw2[0] = {1,3,9,0,2,12,13,14}; is this the first one? i.e., only two boxes used?
...
...
yw2[m] = {68,71,76,66,67,78,79,80};
R. Jamil