SudokuSolver Forum

A forum for Sudoku enthusiasts to share puzzles, techniques and software
It is currently Sat Apr 20, 2024 2:04 pm

All times are UTC




Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 4:47 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27 wrote:
I don't know what is meant by "recursively solve". From the description in the help file, it sounds like a guessing technique.
Recursion is when in a computer program a subroutine (procedure or function) directly or indirectly calls itself. Most brute force solvers for solving a sudoku uses recursion. It is guessing, i.e. in some sequence trying all "meaningful" possibilities. Varies cut-off techniques can be used to avoid trying possibilities, which will not yield a solution.
JSudoku uses DLX (Dancing Links) for "recursively solve". It is a "complicated", but fast and brilliant algorithm with very good cut-off.

enxio27 wrote:
Is there a way to disable it?
AFAIK it is never executed automatically. You have to execute it manually (Ctrl+R)

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 4:54 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27 wrote:
Børge wrote:
To me Full House is a completely uninteresting sub-technique of Naked Single, see JSudoku user guide.
Same goes for Last Digit, which is a sub-technique of Hidden Single.

So Naked Single and Hidden Single actually catch Full House and Last Digit in JSudoku? If that's the case, I wonder why Jean-Christophe included them as separate solvers.
From my understanding of what is written about Full House and Last Digit in the JSudoku user guide, Naked Single catches Full House and Hidden Single catches both Full House and Last Digit.
Why Jean-Christophe decided to include them, probably only he can answer.

JSudoku 1.5 User Guide wrote:
Full House
A house (row, column, nonet...) is almost full when it only has one unsolved cell left. It is very easy to spot, but occurs mainly when the grid is almost solved.
This technique is used mostly to generate or rate easy grids and is not really useful otherwize. Indeed, the cell is both a hidden and naked single.

JSudoku 1.5 User Guide wrote:
Last Digit
All cells for some digit are placed in the grid except for one cell. It is very easy to spot even without pencil marks.
This technique is used mostly to generate or rate easy grids and is not really useful otherwize. Indeed, the cell is a hidden single for all its houses.

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 5:14 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Apr 24, 2008 4:27 pm
Posts: 791
Børge wrote:
enxio27 wrote:
I don't know what is meant by "recursively solve". Is there a way to disable it?
AFAIK it is never executed automatically. You have to execute it manually (Ctrl+R)

When I selected "Deduce all moves" (my key bindings must be different from yours), here is what the solver gave me:

Quote:
The grid is solved!
Techniques used:
388 Naked Single
161 Hidden Single
49 Intersection
3 Naked Triplet
2 Naked Quad
1 Recursively Solve


This is using your solver sequence on Ruud's Clueless Special #4a:

Code:
000030000007000400010907050001000200700000009004000600060108030003000100000040000
000090000003000400050208070006000300400000008005000100080603090004000600000050000
000050000001000700060709040002000900900000002003000400080201090005000800000040000
000060000004000200080301070002000500900000007001000600030105080008000300000080000
000080000002000300010706050005000900900000007007000200040901060003000700000060000
000080000004000200030502010001000400800000001006000900070903020009000500000020000
000070000005000100010804030001000600700000005008000200030908010007000500000040000
000080000004000500010604070008000300400000008005000100090108060006000900000050000
000080000004000100060104030002000900100000007005000200070306080008000500000040000


Last edited by enxio27 on Tue Apr 07, 2009 5:39 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 5:17 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27 wrote:
Børge wrote:
I have done the following changes to my rating table:
  • Moved Finned Fish from Extra Hard to Super Hard.
  • Moved Uniqueness Test 1 from Super Hard to Extra Hard.

Does this change their positions in the JSudoku Solver Sequence?
The jury is still out on that one!

The decision will likely be not to change the position of "Uniqueness Test 1", i.e. move it up to after "Fishy Cycle". This is the only position change needed to reflect the above quoted change to my rating table.
The main reason is that if "Uniqueness Test 1" is moved upwards it will be deployed earlier, and bring up the following window:
Image

Mostly the check is fast, but with clueless puzzles it sometimes takes minutes, hours or even days and weeks, considerably slowing down puzzle generation.
And the less the puzzle is solved, the longer the check takes. The check is done by "recursively solve" using DLX.

Unless I am in the mood or feel for it, or it is time for a puzzle with Uniqueness Test(s), I disable all Uniqueness Test solvers. There are several upcoming (and hopefully interesting puzzles) with Uniqueness Test(s).

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 5:39 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27 wrote:
Børge wrote:
enxio27 wrote:
I don't know what is meant by "recursively solve". Is there a way to disable it?
AFAIK it is never executed automatically. You have to execute it manually (Ctrl+R)

When I selected "Deduce all moves" (my key bindings must be diferent from yours), here is what the solver gave me:

Quote:
The grid is solved!
Techniques used:
388 Naked Single
161 Hidden Single
49 Intersection
3 Naked Triplet
2 Naked Quad
1 Recursively Solve


This is using your solver sequence on Ruud's Clueless Special #4a:




AFIAK I use the default key bindings.

And with "Deduce all moves", either activated with Ctrl+Shift+D or through the Solve pulldown menu I get:
Quote:
The grid is solved!
Techniques used:
388 Naked Single
161 Hidden Single
49 Intersection
3 Naked Triplet
2 Naked Quad

I have never seen a Recursive Solve unless I have explicitly activated it (Ctrl+R or Solve > Recursive Solve).
I do not have the faintest idea how this is activated or deactivated :scratch:
I currently use Windows XP Professional, German localized.

Here are my General Preferences:
Image

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 7:02 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Apr 24, 2008 4:27 pm
Posts: 791
Børge wrote:
AFIAK I use the default key bindings.

Hmmm. . . it appears that accessing the Generator tab of the options (even without making any changes) wipes out most of the key bindings, at least on my system. Rather annoying, as I prefer to have "Generate grid at start" turned OFF.

Quote:
I do not have the faintest idea how this is activated or deactivated :scratch:

I'm just as confused as you are. In any case, I STILL get the recursive solve whether I want it or not, just from "Deduce all moves". I do find it interesting that otherwise our technique lists are identical.

Quote:
I currently use Windows XP Professional, German localized.

I'm using Windows XP Professional SP2, U.S. version.

Quote:
Here are my General Preferences:

And mine are identical.

:scratch: :?: :scratch: :?: :scratch: :?: :scratch: :?: :scratch:

I wish we could get hold of Jean-Christophe for some answers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Tue Apr 07, 2009 7:26 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27 wrote:
Børge wrote:
AFIAK I use the default key bindings.

Hmmm. . . it appears that accessing the Generator tab of the options (even without making any changes) wipes out most of the key bindings, at least on my system. Rather annoying, as I prefer to have "Generate grid at start" turned OFF.
Have never experienced this. I also prefer to have "Generate grid at start" turned OFF.

enxio27 wrote:
Børge wrote:
I currently use Windows XP Professional, German localized.

I'm using Windows XP Professional SP2, U.S. version.
I also have SP2, but I do not execute JSudoku from the local C drive, but from a network drive.
I work on the PC as an unprivileged user without any admin rights! Also installed JSudoku without admin rights. Admin rights are only allocated when absolutely necessary.
Java version: 1.6.0_01

enxio27 wrote:
I wish we could get hold of Jean-Christophe for some answers.
Another forum member contacted me via a PM in February, asking if I new of any way to contact J-C. I found an e-mail address in a bonsai trees (very small trees) forum. I have just sent this forum member an express e-mail, asking if there was any success getting in contact with J-C.
Richard, our host surely has his email address. He has the email addresses of all the forum members.

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Wed Apr 08, 2009 7:54 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Mon Apr 21, 2008 10:32 am
Posts: 868
enxio27,
Please try the following: Past in Glyn Samurai #3A and do a "Deduce all moves".

This puzzle can only be completely solved using brute force, i.e. recursive solve.
So it would be interesting to know if a recursive solve is automatically included when you do a "Deduce all moves", or not.
If this puzzle is not solved completely by a "Deduce all moves", a recursive solve is not actually done, only listed.

_________________
Quis custodiet ipsos custodes?
Normal: [D  Y-m-d,  G:i]     PM->email: [D, d M Y H:i:s]


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Thu Apr 09, 2009 3:07 am 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Apr 24, 2008 4:27 pm
Posts: 791
Børge wrote:
Please try the following: Past in Glyn Samurai #3A and do a "Deduce all moves".

Which should I select when it asks about uniqueness solvers? I'm trying it now with "trust the grid designer", but it's clearly going to take a while.

ETA: I tried it all three ways, and it quickly got hung up. When I tried "recursively solve", it solved it almost immediately.


Top
 Profile  
Reply with quote  
 Post subject: Re: Børge's Corner
PostPosted: Thu Apr 09, 2009 3:57 am 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Apr 24, 2008 4:27 pm
Posts: 791
OK, now I feel as though I'm in the Twilight Zone. I retried the Clueless Special 4a (above), and now I get the same techniques listing that you do!

Code:
The grid is solved!
Techniques used:
388 Naked Single
161 Hidden Single
49 Intersection
3 Naked Triplet
2 Naked Quad


I wish I could remember now whether I invoked the recursive solver first before trying the "deduce all moves". I think I may have. I have since learned that JSudoku doesn't reset the solvers and other selections (for instance, uniqueness test) unless you repaste the puzzle code.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group