Hidato

For fans of Killer Sudoku, Samurai Sudoku and other variants

Hidato

Postby djape » Fri Oct 24, 2008 1:13 am

I've published my first Hidoku (aka Hidato) puzzle and there are more to come.

What do you think of these puzzles? Can they be a Sudoku successor?
djape
 
Posts: 34
Joined: 27 September 2005

Postby evert » Sat Oct 25, 2008 10:07 am

I tried one and its fun
evert
 
Posts: 187
Joined: 26 August 2005

Postby jeffloeb » Tue Dec 02, 2008 5:13 pm

Why have 2 books, one w/ 50 more puzzles than the other, comparable price, different names?

Do you want to make things interesting?:)
jeffloeb
 
Posts: 9
Joined: 07 October 2005

Postby evert » Thu Dec 11, 2008 1:12 pm

I tried some programming on this.

The source code so far can be found here.

My solver could solve djape's 9x9 sample puzzle on his own site.

Here's another puzzle:
Code: Select all
00;22;20;00;00;00;00;80;00
00;00;00;00;00;00;73;00;00
00;00;00;69;00;00;00;00;77
35;00;66;00;64;05;00;00;00
00;00;27;00;00;00;00;00;00
00;39;00;03;00;00;00;00;58
00;40;00;02;30;00;00;00;12
00;43;00;00;00;00;00;00;00
00;00;00;00;47;00;10;00;52
Would anybody like to try if the puzzle is OK?
:)
evert
 
Posts: 187
Joined: 26 August 2005

Postby udosuk » Sat Dec 13, 2008 1:11 am

evert wrote:Here's another puzzle:
Code: Select all
.. 22 20 .. .. .. .. 80 ..
.. .. .. .. .. .. 73 .. ..
.. .. .. 69 .. .. .. .. 77
35 .. 66 .. 64 05 .. .. ..
.. .. 27 .. .. .. .. .. ..
.. 39 .. 03 .. .. .. .. 58
.. 40 .. 02 30 .. .. .. 12
.. 43 .. .. .. .. .. .. ..
.. .. .. .. 47 .. 10 .. 52
Would anybody like to try if the puzzle is OK?
:)

Yep, that's a very nice Hidato/Hidoku puzzle. I'm quite certain it has a unique solution as the following:

Highlight below to see what I wrote:23 22 20 18 71 72 81 80 79
24 21 19 70 17 62 73 74 78
25 67 68 69 63 16 61 75 77
35 26 66 65 64 05 15 60 76
36 34 27 28 04 06 14 57 59
37 39 33 03 29 07 56 13 58
38 40 32 02 30 08 55 54 12
41 43 01 31 48 09 50 11 53
42 44 45 46 47 49 10 51 52

I thought the 11x11 puzzle from djape (here) was quite challenging, and yours doesn't fade at all in comparison, so congrats.:)

I wish I had the time to write a walkthrough for my logical steps, but unfortunately no. Good luck about your solver!

(PS: I remember a couple years back people have posted similar puzzles, but based on knights' move instead of kings'. Perhaps you would like to incorporate your solver for other chess pieces too.:) )
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby evert » Sat Dec 13, 2008 5:43 am

That's indeed the solution that my solver produces.
evert
 
Posts: 187
Joined: 26 August 2005

Postby evert » Sat Dec 13, 2008 6:27 am

Djape's 11x11:
Code: Select all
...   ...   ...   046   ...   ...   ...   ...   ...   ...   093
042   041   ...   048   052   ...   ...   ...   ...   095   ...
...   ...   039   ...   ...   056   088   ...   085   096   ...
...   ...   ...   ...   ...   ...   ...   078   077   ...   097
023   ...   ...   037   ...   ...   081   ...   ...   ...   ...
...   024   ...   ...   017   ...   059   060   ...   ...   101
021   ...   035   ...   ...   ...   ...   104   ...   102   ...
121   002   ...   ...   013   ...   ...   105   ...   065   ...
001   ...   ...   ...   ...   ...   ...   ...   ...   066   ...
005   ...   010   ...   ...   112   ...   ...   ...   ...   070
...   ...   ...   ...   ...   ...   114   ...   109   ...   068
I could solve it until here:
Code: Select all
043   044   ...   046   ...   ...   054   090   091   092   093
042   041   ...   048   052   ...   ...   ...   ...   095   094
027   040   039   ...   ...   056   088   ...   085   096   098
026   028   038   030   ...   ...   ...   078   077   099   097
023   025   029   037   031   058   081   080   079   076   100
022   024   019   036   017   032   059   060   075   074   101
021   020   035   018   033   016   061   104   103   102   073
121   002   119   034   013   015   062   105   064   065   072
001   120   003   118   012   014   111   063   106   066   071
005   004   010   011   117   112   113   110   107   067   070
006   007   008   009   116   115   114   108   109   069   068
What's the next logical step?
evert
 
Posts: 187
Joined: 26 August 2005

Postby udosuk » Sat Dec 13, 2008 2:50 pm

evert wrote:I could solve it until here:
Code: Select all
043  044  ...  046  ...  ...  054  090  091  092  093
042  041  ...  048  052  ...  ...  ...  ...  095  094
027  040  039  ...  ...  056  088  ...  085  096  098
026  028  038  030  ...  ...  ...  078  077  099  097
023  025  029  037  031  058  081  080  079  076  100
022  024  019  036  017  032  059  060  075  074  101
021  020  035  018  033  016  061  104  103  102  073
121  002  119  034  013  015  062  105  064  065  072
001  120  003  118  012  014  111  063  106  066  071
005  004  010  011  117  112  113  110  107  067  070
006  007  008  009  116  115  114  108  109  069  068
What's the next logical step?

Highlight below to read what I wrote:089 is locked @ r2c78
Also, r4c7+r3c8 must be reserved for [082,083,084]
=> [086,087] must be @ r2c98

:idea:
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby evert » Sun Dec 14, 2008 11:08 am

BTW
Random creation of a complete grid:
This was a major problem in my program.
How it worked was: choose a random empty cell and fill it with a random number that can be placed in that cell then go on to the next random empty cell. (works fine with sudoku)
How it works now:
It tries to place the numbers in ascending order, first 1 then 2 etc, and just chooses random the cells wher to place them.
Before this it took literally hours to create a random grid.
Now it's a matter of few seconds.
I don't understand why, I'm just happy it improved.
evert
 
Posts: 187
Joined: 26 August 2005

Postby evert » Mon Dec 15, 2008 12:51 pm

udosuk wrote:Also, r4c7+r3c8 must be reserved for [082,083,084]

I missed this idea in my solver. Not anymore. Following puzzle should require a similar step:
Code: Select all
03;..;..;..;..;..;..;27;..
..;02;..;..;..;..;..;..;26
..;61;..;06;08;..;11;..;22
60;..;..;..;..;14;13;..;81
..;59;..;36;..;..;..;..;..
..;56;..;..;16;..;..;..;..
66;..;55;..;..;18;..;45;..
..;..;53;50;49;..;47;..;..
..;..;..;..;..;73;..;..;..
evert
 
Posts: 187
Joined: 26 August 2005

Postby udosuk » Mon Dec 15, 2008 4:55 pm

Thanks for a very nice puzzle!:)

You're right, that particular technique is very useful for this puzzle:

Highlight below to read what I wrote:03 04 __ __ __ __ __ 27 25
__ 02 05 __ __ __ __ 24 26
__ 61 __ 06 08 12 11 23 22
60 __ __ __ __ 14 13 21 81
__ 59 __ 36 __ __ __ __ __
__ 56 __ __ 16 17 19 __ __
66 __ 55 52 51 18 __ 45 __
67 54 53 50 49 48 47 __ __
68 69 70 71 72 73 74 __ __

r5c67 must be reserved for [37..44]
=> [15,20] must be @ r5c58

r2c4+r3c3 must be reserved for [28..35]
=> 7 must be @ r2c5

Afterwards, this same technique (I like to call it "bottleneck":) ) can be applied a few more times near the end of the solution path.

This should be the unique solution:

Highlight below to read what I wrote:03 04 32 31 30 29 28 27 25
01 02 05 33 07 09 10 24 26
62 61 34 06 08 12 11 23 22
60 63 35 39 40 14 13 21 81
64 59 38 36 15 41 42 20 80
65 56 58 37 16 17 19 43 79
66 57 55 52 51 18 44 45 78
67 54 53 50 49 48 47 46 77
68 69 70 71 72 73 74 75 76

:idea:
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby HATMAN » Tue Dec 16, 2008 8:10 am

Evert, Matt

A couple of points:

These are succeptable to uniqueness, in short link choice and then in empty shape i.e. a four box open on one side is not possible. My temptation to shortcut significantly reduced the difficulty of DJ's 11*11.

I notice other places use odd shapes with stickyout bits - this simplyfies solution. We need to look at octagons for really difficult ones.
HATMAN
 
Posts: 315
Joined: 25 February 2006
Location: Saudi Arabia

Postby udosuk » Tue Dec 16, 2008 3:12 pm

HATMAN wrote:These are succeptable to uniqueness, in short link choice and then in empty shape i.e. a four box open on one side is not possible. My temptation to shortcut significantly reduced the difficulty of DJ's 11*11.

I do realise it, but always try my best to not use uniqueness. I suppose a puzzle can get very difficult that forces one to make use of this info (that the solution is unique).

Another interesting issue is the usage of 180 rotational symmetry (or perhaps diagonal reflection symmetry). It is possible, but the solution space must be very narrow.:idea:

HATMAN wrote:I notice other places use odd shapes with stickyout bits - this simplyfies solution. We need to look at octagons for really difficult ones.

Speaking of which, I'm still working on a Knight Link 2 puzzle from this blog:
h-syouyuyaki.blog.drecom.jp/archive/256 { broken link }
blog.drecom.jp/h-syouyuyaki/img/256/keima.gif { broken link }

Rule (not 100% sure though due to my deficient level of Japanese):

Draw a knight's circuit through all the blue dots. Draw another knight's circuit through all the intersections without blue dots. These 2 circuits must not cross each other.

(Edited: This is obviously wrong, because you can't draw any knight's circuit through the intersections without blue dots. But you can definitely draw one through the blue dots which does not cross itself and I think the answer is unique.)
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby djape » Wed Jan 14, 2009 8:44 pm

As of today, January 15, 2009, I'm posting Hidoku puzzles on my site on a daily basis.
djape
 
Posts: 34
Joined: 27 September 2005

Postby evert » Sat Jan 17, 2009 12:47 am

I put my solver on Djapes 9x9 20090115.
Code: Select all
58;00;00;00;00;00;09;11;00;
00;57;56;55;00;00;00;00;12;
00;00;00;00;00;51;00;00;00;
45;00;47;00;01;04;17;00;00;
63;00;38;00;00;35;00;00;20;
00;64;00;40;00;00;00;32;00;
00;00;00;76;74;00;31;00;00;
00;66;00;00;00;72;00;00;00;
81;00;78;00;00;00;26;00;28;

For two moves it needed my manual help:
...
Code: Select all
58;59;54;53;07;08;09;11;13
60;57;56;55;52;06;10;14;12
61;46;48;49;50;51;05;00;15
45;62;47;02;01;04;17;00;00
63;44;38;37;03;35;00;00;20
43;64;39;40;36;00;00;32;00
65;42;41;76;74;00;31;00;00
00;66;00;00;00;72;00;00;00
81;00;78;00;00;00;26;00;28

Now in cell (8,1) only 80 and 67 are allowed due to cornering.
But the consequence of putting 67 there is that 68 will go into (9,2) which would isolate
81 from 79. Therefore 80 goes into (8,1).
...
Code: Select all
58;59;54;53;07;08;09;11;13
60;57;56;55;52;06;10;14;12
61;46;48;49;50;51;05;00;15
45;62;47;02;01;04;17;00;00
63;44;38;37;03;35;00;00;20
43;64;39;40;36;34;00;32;00
65;42;41;76;74;73;31;00;00
80;66;67;77;75;72;71;00;00
81;79;78;68;69;70;26;00;28

Now 27 can be placed in either (9,8) or (8,8).

But after placing 27 in (8,8), cornering in (9,8) would lead to
a contradiction. So 27 must go into (9,8).

I need some more work on it.
evert
 
Posts: 187
Joined: 26 August 2005

Next

Return to Sudoku variants