mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Puzzles (https://www.mersenneforum.org/forumdisplay.php?f=18)
-   -   Sodyoutoo (a.k.a. Sudoku) (https://www.mersenneforum.org/showthread.php?t=11346)

mwxdbcr 2009-01-15 16:25

Sodyoutoo (a.k.a. Sudoku)
 
╮(╯▽╰)╭

哎,数独啊。玩过米啊~~~~

★★★★0001--0010

3 2 0 0 0 0 0 4 6
0 0 5 0 0 0 9 0 0
0 8 9 2 0 4 3 1 0
0 0 7 0 9 0 0 0 0
8 3 0 0 0 0 0 2 9
0 0 2 0 4 0 0 0 0
0 9 3 4 0 6 2 7 0
0 0 8 0 0 0 4 0 0
7 4 0 0 0 0 0 9 8

0 4 0 9 0 0 0 0 0
9 0 5 0 7 0 0 0 3
0 3 0 0 0 4 6 0 9
0 2 0 3 0 0 0 5 0
0 0 9 1 0 5 7 0 0
0 5 0 0 0 2 0 9 0
4 0 8 5 0 0 0 3 0
5 0 0 0 6 0 9 0 4
0 0 0 0 0 9 0 8 0

0 1 0 6 0 9 0 3 0
0 0 6 0 3 0 9 0 0
0 3 0 0 8 0 0 5 0
3 2 0 0 4 0 0 8 5
0 0 0 5 0 7 0 0 0
9 0 0 0 0 0 0 0 7
0 8 0 0 5 0 0 9 0
0 0 1 0 9 0 8 0 0
0 9 0 8 0 2 0 6 0

2 0 0 0 0 0 0 0 5
0 9 6 0 0 0 1 2 0
0 0 0 8 0 2 0 0 0
0 3 0 9 0 8 0 4 0
0 0 9 0 7 0 2 0 0
0 8 0 5 0 6 0 7 0
0 0 8 3 0 7 9 0 0
0 0 4 0 0 0 5 0 0
9 2 0 0 0 0 0 8 7

0 0 0 3 1 6 0 0 0
1 6 0 0 0 0 0 2 9
0 0 0 9 8 2 0 0 0
0 1 5 0 0 0 8 9 0
0 0 0 0 9 0 0 0 0
0 9 7 0 0 0 2 6 0
0 0 0 1 4 9 0 0 0
9 2 0 0 0 0 0 7 4
0 0 0 2 7 5 0 0 0

2 0 0 9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0 0 0 0 0 1 2 0
0 1 0 2 0 9 0 0 0
0 0 0 0 4 0 0 0 3
0 5 0 8 0 7 0 0 0
2 0 0 0 0 0 5 8 0
0 0 4 0 8 0 0 0 0
8 7 0 0 2 0 0 1 6

2 7 0 0 0 0 0 0 0
3 0 8 0 7 0 9 0 0
0 0 0 0 3 1 0 0 2
0 4 0 7 0 6 2 0 0
0 0 0 0 0 0 7 8 0
0 1 0 2 0 5 4 0 0
0 0 0 0 2 7 0 0 9
7 0 6 0 5 0 3 0 0
9 5 0 0 0 0 0 0 0

0 0 4 2 0 0 0 0 0
0 0 6 8 0 0 4 1 0
0 0 0 0 0 0 8 2 0
0 2 0 0 1 0 0 0 5
8 3 0 0 2 9 0 7 6
0 9 0 0 3 0 0 0 8
0 0 0 0 0 0 7 8 0
0 0 8 7 0 0 5 9 0
0 0 2 9 0 0 0 0 0[/quote]

This forum is not a place for sudoku puzzles. There are generators on the Internet and solvers as well.

Solution to the first puzzle:

[code]321978546
475631982
689254317
517892634
834165729
962347851
193486275
258719463
746523198[/code]

petrw1 2009-01-15 17:06

[QUOTE=10metreh;158822]There are generators on the Internet and solvers as well.

[/QUOTE]

This is the best one I have come across:
[url]www.scanraid.com/sudoku.htm[/url]

It not only solves but it also shows you each step and explains the techniques it is using.

10metreh 2009-01-15 17:41

[quote=petrw1;158830]This is the best one I have come across:
[URL="http://www.scanraid.com/sudoku.htm"]www.scanraid.com/sudoku.htm[/URL]

It not only solves but it also shows you each step and explains the techniques it is using.[/quote]

Yeah, that's the one I used to solve the first one.

The second:

[code]246913875
915678243
837254619
721396458
389145762
654782391
498527136
573861924
162439587[/code]

The first two only needed singles. The third needed a naked triple:

[code]514679238
876235941
239184756
327941685
148567329
965328417
482756193
651493872
793812564[/code]

As did No. 4:

[code]247631895
896754123
351892764
735928641
619473258
482516379
568347912
174289536
923165487[/code]

No. 5 needed pointing pairs:

[code]259316748
168457329
734982156
315624897
682791435
497538261
573149682
921863574
846275913[/code]

And no. 6 (naked pairs):

[code]235941786
948763521
167825934
726519843
314678295
859432167
682154379
573296418
491387652[/code]

biwema 2009-01-24 01:31

Some Sudoku can be quite tricky. The following example has exactly one solution, but i am not sure if there is a solving strategy (except brute force).
Even the sudoku solver (mentioned above) failed.
[code]
12.34.5..
3....6...
.54....3.
24....3.7
..5.....2
...428...
4..6..72.
.1......6
...9.....
[/code]
Does someone know a strategy, that can solve this one?

petrw1 2009-01-24 05:07

[QUOTE=biwema;160113]Some Sudoku can be quite tricky. The following example has exactly one solution, but i am not sure if there is a solving strategy (except brute force).
Even the sudoku solver (mentioned above) failed.
[code]
12.34.5..
3....6...
.54....3.
24....3.7
..5.....2
...428...
4..6..72.
.1......6
...9.....
[/code]
Does someone know a strategy, that can solve this one?[/QUOTE]

Hmmm I've never had that site fail before....

jrk 2009-01-24 06:02

[quote=biwema;160113]Some Sudoku can be quite tricky. The following example has exactly one solution, but i am not sure if there is a solving strategy (except brute force).
Even the sudoku solver (mentioned above) failed.
[code]
12.34.5..
3....6...
.54....3.
24....3.7
..5.....2
...428...
4..6..72.
.1......6
...9.....
[/code]Does someone know a strategy, that can solve this one?[/quote]

[code][spoiler]126347598
398156274
754892631
241569387
985713462
673428159
439681725
817235946
562974813[/spoiler][/code]I used KSudoku's solver.

jrk 2009-01-24 06:29

KSudoku's solver is basically an optimized bruteforce. Here's the description of it on [URL]http://ksudoku.sourceforge.net/2.htm[/URL]

[quote][FONT=verdana][LIST][*]SudokuSolve()[/LIST] [LIST][*][LIST][*]Check puzzle validity[/LIST] [/LIST] [LIST][*][LIST][*]For every cell see what's linked and place a flag if it can contain each number or not[/LIST] [/LIST] [LIST][*][LIST][*]Find the cell with the lowest acceptable numbers nn[/LIST] [/LIST] [LIST][*][LIST][*]Find the strongly connected subgraph that has the least candidates (lc) for a value (deprecated, not worth)[/LIST] [/LIST] [LIST][*][LIST][*]Select n as the lowest between lc and nn[/LIST] [/LIST] [LIST][*][LIST][*][LIST][*]if (n lower than 0) error[/LIST] [/LIST] [/LIST] [LIST][*][LIST][*][LIST][*]if (n==1) write down and new SudokuSolve() call[/LIST] [/LIST] [/LIST] [LIST][*][LIST][*][LIST][*]if (n greater than 1) recursive fork with all possibilities[/LIST] [/LIST] [/LIST][/FONT][/quote]

10metreh 2009-01-24 07:44

Yes - I think an improvement to the scanraid solver would be to add guessing after all its logical strategies.

henryzz 2009-01-24 08:58

i would suggest biwema that you send some [URL=http://www.scanraid.com/sudokufeedback.asp]feedback[/URL] about this puzzle
i suspect he would want examples that it cant solve so he can make it better

biwema 2009-01-24 23:55

I think i will not send in that example. I also found it some time ago somewhere else (cannot remember exactly), so i do not have the copyrights. I think i am not the right person as i have not much experience with sudokus.

I am sure there are also sudoku forums and communities that have many members who are experts and know problems like this.
It seems as id there are examples that are not solvable using logic strategies and need recursion or brute force.

If someone would like to send in the example, feel free to do so.


All times are UTC. The time now is 05:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.