SiSeSuSo = Simple Serial Sudoku Solver

Programs which generate, solve, and analyze Sudoku puzzles

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby urhegyi » Tue Jan 09, 2024 10:37 pm

Sisesuso versions 11 &12 2023: It seems they can't find this xyz-wing and solve this jigsaw with an AIC while it is not needed.
Image
Image
Code: Select all
#1//B4,JS
..5.2.3...2.....1....315..............86.37..............276....5.....4...6.9.1..
111111233141412223444445233748545223778555233788565263778566666788896969778999999
urhegyi
 
Posts: 744
Joined: 13 April 2020

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Wed Jan 10, 2024 10:38 am

The implementation is according to the document: http://www.sudokuwiki.org/sudoku/Generalizing_Sudoku_Strategies.pdf
SiSeSuSo will check all types of houses (boxes,Asterisk,Girandola,Windoku) against rows and columns where applicable. So not 2 jigsaws...
But in the example of urhegyi above it is a jigsaw and a row. So we examine this (in row box situation).

General: house X and Y intersect. S is subset of cells of X and T is subset of Y. S and T do intersect also in subset C.

Below the cells without a minus are the (W) XYZ cells and in cells with a minus all mentioned candidates can be eliminated.

Type A=(if the selected cells in S and T outside C share no values, then no value in one of these cells is valid in other cells in X or Y, outside the cells of union S and T )
Example type A:
Code: Select all
-1234  1234  1234 | 12 -12 -12 | -12 -12 -12
-34   -34    34   |
-34   -34   -34   |

Type B=(if all pairs of cells in S or T outside C have at most one value v in common, then v is not valid in other cells in the intersection X and Y outside C)
Example type B:
Code: Select all
-1 -1 123 | 12 . . | . . .
.  .  13  |
.  .  .   |

Type C: If candidate 1 is not part of the intersection cells, then also candidate 1 can be eliminated from cells that "see" all candidate 1 cells of the union.
Example type C:
Code: Select all
-1 234 23  | 12 . . | . . .
 .  .  134 |  -1
 .  .  .   |

Note: This type C is added in sisesuso, but is not in the pdf.

Now a new situation (type D) is here
Code: Select all
-1 -1 123 | 12 . . | . . .
.  .  13  | -1?
.  .  .   |
the cell with the ? has the focus.
Why is that valid???? Well it is not.

But with jigsaw that cell will "see" all of the XYZ cells, which can not happen in a standaard sudoku.
And sisesuso does not test on seeing 3 cells. That's why it is not spotted.
Also a 3rd house (column 6) is used to see the 3 cells. Sisesuso only test on 2 houses.
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Mon Jan 22, 2024 2:33 pm

The January 2024 version of SiSeSuSo.exe is now available at
https://sites.google.com/site/sisesuso .

Version 22 Jan 2024, 2024-01
  • XY,H,M2,M3,W,S,L1,L2,L3-Wing method extended for non-standard Sudoku's (eg. jigsaws)
  • AIC method already had a Chopping Axe extended method for subsets, now also for locked sets (pointing/claiming)
  • Lots of HTML help texts renewed.
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby urhegyi » Fri Feb 09, 2024 1:47 pm

I read the description of UR type 5 here:
https://www.sudokuwiki.org/Unique_Rectangles
I have found an example which solves with UR type 5 first and than UR type 1.
Unfortunately Sisesuso needs some AIC to solve. Why doesn't it recognize type 5 as you mention Unique Rectangles (type 1,2,5) are supported?
Image

Edit: Actually sudokuwiki type 5 is Hodoku type 6 or it's accompanied hidden rectangle
urhegyi
 
Posts: 744
Joined: 13 April 2020

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Sat Feb 10, 2024 8:03 am

Ok, Hodoku UR 5 is supported. I did not know SudokuWiki has a different numbering. Currently not at home, so I cannot check the working.
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby eleven » Sat Feb 10, 2024 9:25 pm

urhegyi wrote:I read the description of UR type 5 here:
https://www.sudokuwiki.org/Unique_Rectangles
...
Edit: Actually sudokuwiki type 5 is Hodoku type 6 or it's accompanied hden rectangle

Yes, strange article on SudokuWiki. It says "As of January 2021 we have a new Unique Rectangle elimination!" in the description of a "Type 5" UR.
This type is known as Uniqueness Type 6 - UR meets X-Wing since 2006.
eleven
 
Posts: 3103
Joined: 10 February 2008

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby urhegyi » Mon Mar 11, 2024 10:31 pm

Above on 09-01-2024 I already posted a case where SiSeSuSo can't find an xyz-wing in a jigsaw. You answered this can't happen in 9x9 sudoku so it's normal that Sisesuso can't find it.
Here the same seems to happen.
Image
XYZ-wing 256 in R5C6,R6C56 eliminates 2 from R6C7.
How can be explained that Sisesuso misses again?
Code: Select all
#1//B4,JS
3..6.7..47..143..6....3....9.......3..6...3..8.......9....1....5..371..21..2.9..8
333555111383585151388885551338788711437777712449799722499996662494696262444666222
urhegyi
 
Posts: 744
Joined: 13 April 2020

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Tue Mar 12, 2024 9:43 am

I try to state: it can not happen in a normal sudoku. the one with rows, columns and boxes. (Indeed somewhat clumsy described)
In jigsaw it is totally different.
Let's investigate Type B XYZ method:
S is a subset of cells in a house X, T is a subset of cells in another house Y. X and Y do intersect. S and T do intersect in subset C.
Currently implemented is Type B :
"If all pairs of cells in S or T outside C have at most one value v in common, then v is not valid in other cells in the intersection X and Y outside C"
Code: Select all
-1 -1 123 | 12 . . | . . .
.  .  13  |
.  .  .   |

I am busy to rebuild this to "If all pairs of cells in S or T outside C have at most one value v in common, then v is not valid in any cell that see all cells with v of S or T."
"Any cell" (in the whole puzzle) is much wider defined then a "cell in the intersection outside C".

In your last example R6C7 is not part of an intersection, but does 'see' all of the 3 cells R5C6,R6C56 with 256.

Same case in puzzle of 10jan2024 where r4c6 is not part of the intersection of row4 and jigsaw2 , but it sees all 3 xyz cells.

Edit: see all cells with v
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Mon Apr 22, 2024 2:46 pm

I implemented XYZ-method as above. Source-code needs to be cleaned up.
Problem in Urhegyi's puzzle of Wed Jan 10, 2024 12:37 am is fixed.
But still some other problem with his puzzle of Tue Mar 12, 2024 12:31 am
Working on it ....
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Previous

Return to Software