Firstly let me say I found the APE code I added last night picked up some XY-Wings missed within that code. I've re-run the test on top1465 and found that with XY(Z)-Wing first, APE still finds more exlcusions in 6 puzzles.
I think APE finds exclusions where the number of cell candidates exceeds the current definitions of XY-Wing (3 bi-values) and XYZ-Wing (bi-value <-> tri-value <-> bi-value).
Ron wrote:Did APE advance any puzzles to solution? I mean over and above those already solved without APE. To be meaningful, T&E methods should be disabled for both cases IMO.
T&E was still enabled, but no, APE didn't use other techniques, including T&E, any less. But given it appears to be rare after XY(Z)-Wing, with a small number of candidate removals, I'm not surprised.
Keith wrote:1. Do you scan for all XY(Z)-wings, then make all the eliminations? Or, do you make eliminations as you find each wing?
2. Can you please post two puzzles, if you have them:
a. A puzzle that is solved with no XY(Z)-wings when the wings are turned on, and that includes APE eliminations. How is this puzzle solved if you turn off APE?
b. A puzzle where XY(Z)-wings are used before APE, and where the number of APE exclusions is a minimum. Is there a case with no wings present, where APE excludes only one or two possibilities?
1. Interesting question thanks, Keith - My code removes candidates when found, but I'd like to find out if a full scan reduces the need for more complicated or T&E techniques. Which leads to the question: should every puzzle state be fullly examined by every technique before making changes? Any opinions, anyone?
2 See below (1 example for now ;-). With APE disabled, the same following Forcing Chain Error step still occurred, leading to the solution.
Myth wrote:... If you move ALS ahead of APE, I don't think you would get any APE hits. The logic behind the eliminations is very similar...
I should have listed all my current solve techniques, which don't yet include ALS.
Here's an example that uses APE only, with XY(Z)-Wing before APE and enabled.
top1465 #1182
8·1·······7··1···45··6·89······63·2····1········7··61··8········1·32··7·3··5·····
- Code: Select all
8 . 1 | . . . | . . .
. 7 . | . 1 . | . . 4
5 . . | 6 . 8 | 9 . .
------+-------+------
. . . | . 6 3 | . 2 .
. . . | 1 . . | . . .
. . . | 7 . . | 6 1 .
------+-------+------
. 8 . | . . . | . . .
. 1 . | 3 2 . | . 7 .
3 . . | 5 . . | . . .
after basic techniques, and a little Nishio ...
8 9 1 | 2 3 4 | 7 5 6
6 7 3 | 9 1 5 | 2 8 4
5 24 24 | 6 7 8 | 9 3 1
--------------------+-----------+----------------
1 45 79 | 8 6 3 | 45 2 79
2479 23456 246789 | 1 45 29 | 3458 49 35789
249 2345 2489 | 7 45 29 | 6 1 3589
--------------------+-----------+----------------
27 8 5 | 4 9 17 | 13 6 23
49 1 49 | 3 2 6 | 58 7 58
3 26 267 | 5 8 17 | 14 49 29
then APE (with cell r5c1) removed candidate {9} from cell r5c3
All pair combinations with a 9 in r5c3 (2-9, 4-9, 7-9, 9-9) are invalid within block 4 and row 5, using the APE definition.