marek stefanik wrote:denis_berthier wrote:What's different in the whip example is, the NP is not part of the whip structure (they are different as patterns) and it has an elimination that the whip[4] doesn't have.
Can you specify what part of the NP is not part of the whip structure (both r5c9 and r9c9 are)?
By definition, a whip is a continuous sequence of candidates, with additional conditions, of course, but that's enough here. There's no place in the structure of a whip for any embedded NP.
marek stefanik wrote:In a NQ 12 123 34 34, the 34 NP also has an elimination the NQ doesn't have – 3 in the 123 cell.
ah, sorry for this example; I had overlooked the extra elimination.
So, what would happen in SudoRules in this case? With the standard simplest-first strategy, first the 34 NP, then the resulting 12 NP will be applied (2 steps).
marek stefanik wrote:When I asked you about a possible S-whip[4] in this sub-puzzle, you said you didn't allow degenerated patterns.
- Code: Select all
+---------+----–
| 12 . -1| 1234
| . . . | 34
| . . . | 34
I don't know how to notate S-whips, but hopefully you'll get the intention.
r1c1{n1 n2} – r12c4{n2 n34} – r3c4{n4 .} ==> r1c3≠1
It confuses me, because it's almost the same structure as in the whip[4] that you say isn't degenerated.
S2-whip[4]: r1c1{n1 n2} – c4{r1n2 r12n34} – r3c4{n4 .} ==> r1c3≠1
It can't be the same structure as a whip, because it isn't a sequence of candidates. In formal definition, there's no place for any "almost".
About degenerated, I can't see how this S2-whip[4] woud be degenerated.
[Edit]:
Why the notation can only be: S2-whip[4]: r1c1{n1 n2} – c4{r1n2 r12n34} – r3c4{n4 .} ==> r1c3≠1
- a left-linking elements are always a mere candidate => llc2 has to be n1r2c4
- the second rlc is a NP in c4; the only thing common to llc2 and rlc2 is c4 => c4{r1n2 xxx}, where xxx must be the NP
- the support of the NP are c4r1 and c4r2, so the r12 comes before the n34 in the notation
Note: this is using the short notation for NPs. The full notation for this NP would be c4{r1 r2}{n3 n4}