ronk wrote:Hi tarek, I've noticed you've been recently posting solving steps using bennys' xz-rule.
True
ronk wrote:There are three different patterns I'm aware of:
- x constrained to rows and z constrained to boxes,
- x constrained to boxes and z constrained to rows, and
- x constrained to rows and z constrained to columns.
Have you implemented all of these?
I wasn't aware that x & z must be in different sectors, basically the patterns encountered are described by:
x constrained to sector and z constrained to sector
Possibilities are then 3+2+1=6 & swapping x & z +3=9; I haven't checked if these do actually occur.... but my solver does search for these
ronk wrote:For each of the above, there are different size pairings for ALS1 and ALS2. Counting cells (rather than candidates) and including degenerative sets (naked pairs, xy-wing, etc.), I mean pairings like
- 1-1, 1-2, 1-3, 1-4, ... etc.
- 2-1, 2-2, 2-3, 2.4, ... etc.
- 3-1, 3-2, 3-3, ... etc.
- etc.
Where did you "draw the line" on these combinations?
Yes, at 6-6.... as there are many 6s, including 7s should provide some help in some puzzles.
ronk wrote:Did you found an efficient algorithm for the above combinations that you would care to share? (I guess that should occur in a different thread, or even different topic or forum.)
I didn't find an efficient way yet to do it, however this is the best of trying to do it:
I look for Set A=3 to 6
I look for Set B=2 to A
skip Bs that don't have 2 common candidates with A
Skip Bs that don't follow the XZ rule
I think the topic of efficiency merits a new thread, I'm not sure where though !!??
Tarek