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   

Solving with naked triples

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

Joined: 08 Aug 2006
Posts: 6
:
Location: http://www.sd9981.com

Items
PostPosted: Tue Aug 08, 2006 9:10 am    Post subject: Solving with naked triples Reply with quote

The three grid with '12' ,'23','13',They are naked triples.But I don't know how to find it with programmer.

Can you give me some idea?
Back to top
View user's profile Send private message
daj95376

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Tue Aug 08, 2006 4:37 pm    Post subject: Reply with quote

A row/column/box has a generic name called a unit. You probably know this, but I need a point of reference for my explanation.

The first thing you do is scan a unit for a cell with 2-3 candidates. Call it cell A. Now, continue scanning the unit for another cell with 2-3 candidates and call it cell B. If the combined number of candidates in A+B equals 3, then continue scanning the unit and look for another cell with 2-3 candidates and call it cell C. If the total number of candidates in A+B+C is again equal to 3, then you have a Naked Triple in those cells.

If the test fails at any point, then you continue scanning until the conditions for cells A, B, and C are met ... or else you run out of cells in the unit.

Now, the above is a generic description based on no information about your data structures. If you have implemented bitmaps, then a whole different logic can be employed.

Have fun applying the same principles to Naked Quads. Fortunately, you don't need to do Quints.
Back to top
View user's profile Send private message
sd9981

Joined: 08 Aug 2006
Posts: 6
:
Location: http://www.sd9981.com

Items
PostPosted: Wed Aug 09, 2006 1:25 am    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
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