Sudoku Programmers Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in          Games  Calendar

Log in to check your private messagesLog in to check your private messages   

Hidden Doubles, Triples, and Quads are never used

 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Solving sudoku
View previous topic :: View next topic  
Author Message
rantinori

Joined: 29 Jan 2006
Posts: 3
:
Location: US

Items
PostPosted: Sun Jan 29, 2006 12:53 pm    Post subject: Hidden Doubles, Triples, and Quads are never used Reply with quote

This is my first post and like so many of you in this forum I have become fascinated with the techniques required to programmatically solve a Sudoku puzzle.

I have discovered that by first finding all EXPOSED pairs, triples, and quads and then using these to eliminate candidates in other cells all HIDDEN pairs, triples, and quads are eliminated. If this observation is true for all possible Sudoku puzzles, then no programmed solution would need to consider these Hidden conditions.

Can anyone confirm this observation?
Back to top
View user's profile Send private message Visit poster's website
Ruud
Site Admin
Joined: 17 Sep 2005
Posts: 708
:
Location: Netherlands

Items
PostPosted: Sun Jan 29, 2006 1:38 pm    Post subject: Reply with quote

Hi,

You are not the only one having made that discovery.

Please follow this link:

http://www.setbb.com/sudoku/viewtopic.php?t=273&mforum=sudoku

And read all replies to it. Your statement is correct, but for performance reasons, you should not abandon the search for hidden subsets.

Ruud.
_________________
Meet me at sudocue.net
Back to top
View user's profile Send private message Visit poster's website
gonzo

Joined: 18 Jan 2006
Posts: 4
:

Items
PostPosted: Sun Jan 29, 2006 1:39 pm    Post subject: Reply with quote

No, I think you're wrong there.

I made my solver so you can choose each step individually. I can go through the exposed, the program automatically solves and then updates in all other cells, but after running through all the exposed, you can still find hidden.

An interesting thing - when I wrote my code to search for hidden, I realized that it took care of the exposed as well, so that may be a route to solving you might want to persue, have your code search for these pairs, triples and quads regardless of what other candidates may exist in the cells.
Back to top
View user's profile Send private message
rantinori

Joined: 29 Jan 2006
Posts: 3
:
Location: US

Items
PostPosted: Sun Jan 29, 2006 4:34 pm    Post subject: Reply with quote

Ruud, Thanks for your response. You've given me a lot to read and digest. I coded my solution in VB6 and find that performance is not an issue. The process to discover cell values by searching for these various conditions is almost instantaneous.

I posted the observation because there are so many people on this forum writing code and discussing coding approaches to solutions that I believe it would be beneficial to them to eliminate one more sets of algorithms to code and debug.

Gonzo, Thanks you. Could you post a puzzle that exhibits the conditions you describe? I'd like to test it with my program.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Solving sudoku All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
Sudoku Programmers topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

Igloo Theme Version 1.0 :: Created By: Andrew Charron