View previous topic :: View next topic |
Author |
Message |
| kranser
| Joined: 18 Aug 2005 | Posts: 35 | : | | Items |
|
Posted: Tue Nov 22, 2005 3:04 pm Post subject: Samurai and Dancing links |
|
|
If a Samurai puzzle is valid (i.e. one solution), does that mean that each of the 5 9X9-Grids would produce one solution via Dancing links, or does dancing links need to work with the whole puzzle to determine if it can be solved of not?
Kranser. |
|
Back to top |
|
|
| dukuso
| Joined: 14 Jul 2005 | Posts: 424 | : | Location: germany | Items |
|
Posted: Wed Nov 23, 2005 5:50 am Post subject: |
|
|
there can be more than one solution for some of the 9*9s.
You could generate them all and then try to find the compatible ones
but I guess, it's easier and not much slower to solve the puzzle as a whole. You'll get 3321 rows and 1620 columns if I made no mistake.
I would order columns by subpuzzle and
on ties just choose the column with smallest index.
Or even better prefer subpuzzles with fewest rows. |
|
Back to top |
|
|
| Ruud Site Admin
| Joined: 17 Sep 2005 | Posts: 708 | : | Location: Netherlands | Items |
|
Posted: Sat Nov 26, 2005 3:03 pm Post subject: |
|
|
I wonder whether you could do it like this:
1. Find all possible solutions for the 4 corner puzzles.
2. Configure DLX for the center puzzle with the rows in the 4 corner boxes limited to the remaining candidates found in step 1.
3. Solve the center puzzle. Should now have only 1 solution.
Ruud. |
|
Back to top |
|
|
| frisch
| Joined: 16 Nov 2005 | Posts: 55 | : | Location: Paris, France | Items |
|
|
Back to top |
|
|
|