Sudoku

Georg Gollmann gollmann at zid.tuwien.ac.at
Wed Oct 12 07:19:00 UTC 2005


Am 11.10.2005 um 17:40 schrieb Tom Phoenix:
> Be sure to print this in a mono-spaced typeface. Enjoy! --Tom Phoenix
>
>     |     5           9       7 | 6
>     +-----------+   +-----------+
>           2     |   | 7
>  -------+       |   |       +-------
>         |       |   | 5     |
>         |       +---+       |
>   8     |     4 |   |       |
>     +---+-------+   +-------+---+
>   9 |                           | 3
>     +---+-------+   +-------+---+
>         |       |   |       | 9
>         |       +---+       |
>         |       |   | 8   1 |
>  -------+       |   |       +-------
>       2         |   |     9
>     +-----------+   +-----------+
>     |     8   7                 |
>

I am puzzled by the line art. Is this a variant where the subspaces  
are not quadratic ?

If I interpret this in the regular way (dashes denote empty cells):
-    -    5    -    -    9    -    7    6
-    -    2    -    -    7    -    -    -
-    -    -    -    -    5    -    -    -
8    -    -    -    4    -    -    -    -
9    -    -    -    -    -    -    -    3
-    -    -    -    -    -    -    9    -
-    -    -    -    -    8    1    -    -
-    2    -    -    -    -    9    -    -
-    -    8    7    -    -    -    -    -

I get the result:
1    3    5    2    8    9    4    7    6
4    6    2    1    3    7    5    8    9
7    8    9    4    6    5    2    3    1
8    5    3    9    4    6    7    1    2
9    4    1    8    7    2    6    5    3
2    7    6    3    5    1    8    9    4
3    9    4    5    2    8    1    6    7
5    2    7    6    1    3    9    4    8
6    1    8    7    9    4    3    2    5

This is really harder than my earlier examples, about 250 ms instead  
of 50 :-)

Georg






More information about the Squeak-dev mailing list