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   

Problem with Simple Sudoku?

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

Joined: 25 Mar 2009
Posts: 3
:

Items
PostPosted: Wed Mar 25, 2009 1:32 am    Post subject: Problem with Simple Sudoku? Reply with quote

Can anyone explain why this Simple Sudoku puzzle doesn't show a 5 possible in 7,2?

Code:
 *-----------*
 |3..|.6.|.9.|
 |.4.|3..|...|
 |..7|.54|3..|
 |---+---+---|
 |..5|..8|..1|
 |2.4|...|9.7|
 |8..|2..|4..|
 |---+---+---|
 |..9|18.|7..|
 |...|..2|.5.|
 |.2.|.3.|..8|
 *-----------*

 *-----------*
 |3.2|.6.|.94|
 |.4.|32.|.76|
 |..7|.54|312|
 |---+---+---|
 |..5|..8|2.1|
 |2.4|.1.|987|
 |8..|2..|4.5|
 |---+---+---|
 |4.9|18.|723|
 |...|..2|.59|
 |.2.|.3.|.48|
 *-----------*

 *--------------------------------------------------------------------*
 | 3      158    2      | 78     6      17     | 58     9      4      |
 | 159    4      18     | 3      2      19     | 8      7      6      |
 | 69     689    7      | 89     5      4      | 3      1      2      |
 |----------------------+----------------------+----------------------|
 | 679    3679   5      | 4679   479    8      | 2      36     1      |
 | 2      36     4      | 56     1      356    | 9      8      7      |
 | 8      13679  136    | 2      79     3679   | 4      36     5      |
 |----------------------+----------------------+----------------------|
 | 4      56     9      | 1      8      56     | 7      2      3      |
 | 167    13678  1368   | 467    47     2      | 16     5      9      |
 | 57     2      16     | 579    3      579    | 16     4      8      |
 *--------------------------------------------------------------------*
Back to top
View user's profile Send private message
daj95376

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Wed Mar 25, 2009 10:46 am    Post subject: Re: Problem with Simple Sudoku? Reply with quote

[Withdrawn: misunderstood cell being referenced.]

Last edited by daj95376 on Wed Mar 25, 2009 5:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
jswafa

Joined: 25 Mar 2009
Posts: 3
:

Items
PostPosted: Wed Mar 25, 2009 3:59 pm    Post subject: Re: Problem with Simple Sudoku? Reply with quote

Sorry - I was asking about R2, C7 - as far as I can tell it should show a 5 possible. All "show" options are selected.[/quote]
Back to top
View user's profile Send private message
daj95376

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Wed Mar 25, 2009 5:15 pm    Post subject: Re: Problem with Simple Sudoku? Reply with quote

jswafa wrote:
Sorry - I was asking about R2, C7 - as far as I can tell it should show a 5 possible. All "show" options are selected.

It would appear that SS thought you eliminated 5 from r2c7. The only way to know for sure is if you saved the puzzle to a .ss file before exiting. Then the file can be opened and the eliminations list reviewed.

Note: There is a tiny bug in SS when loading a PM. If it encounters a cell with only one candidate, then it treats it as a given and performs eliminations of that value in all peer cells. This will happen if anyone tries to load your PM into SS. This means that the PM you listed won't look the same after it's used as input to SS.

Code:
 Your PM
 *--------------------------------------------------------------------*
 | 3      158    2      | 78     6      17     | 58     9      4      |
 | 159    4      18     | 3      2      19     | 8      7      6      |
 | 69     689    7      | 89     5      4      | 3      1      2      |
 |----------------------+----------------------+----------------------|
 | 679    3679   5      | 4679   479    8      | 2      36     1      |
 | 2      36     4      | 56     1      356    | 9      8      7      |
 | 8      13679  136    | 2      79     3679   | 4      36     5      |
 |----------------------+----------------------+----------------------|
 | 4      56     9      | 1      8      56     | 7      2      3      |
 | 167    13678  1368   | 467    47     2      | 16     5      9      |
 | 57     2      16     | 579    3      579    | 16     4      8      |
 *--------------------------------------------------------------------*

Code:
 After reloading into Simple Sudoku
 *--------------------------------------------------------------------*
 | 3      158    2      | 78     6      17     | 5      9      4      |
 | 159    4      1      | 3      2      19     | 8      7      6      |
 | 69     689    7      | 89     5      4      | 3      1      2      |
 |----------------------+----------------------+----------------------|
 | 679    3679   5      | 4679   479    8      | 2      36     1      |
 | 2      36     4      | 56     1      356    | 9      8      7      |
 | 8      13679  136    | 2      79     3679   | 4      36     5      |
 |----------------------+----------------------+----------------------|
 | 4      56     9      | 1      8      56     | 7      2      3      |
 | 167    13678  1368   | 467    47     2      | 16     5      9      |
 | 57     2      16     | 579    3      579    | 16     4      8      |
 *--------------------------------------------------------------------*

Note: Cells r1c7,r2c2 were cleared of 8 once cell r2c7 was reached during loading; but, since these cells have already been processed during loading, they're not treated as a given.

Final Note: If a PM is invalid but the "givens" lead to a valid solution, then SS won't realize that there's a problem with the PM. This does not apply to your PM, but it's worth noting if you load a PM from another source or have Block Invalid Moves unchecked on any PM you create.
Back to top
View user's profile Send private message
angusj
Site Admin
Joined: 18 Jun 2005
Posts: 406
:

Items
PostPosted: Wed Mar 25, 2009 9:36 pm    Post subject: Re: Problem with Simple Sudoku? Reply with quote

jswafa wrote:
Sorry - I was asking about R2, C7 - as far as I can tell it should show a 5 possible. All "show" options are selected.


You almost certainly (inadvertently) removed that candidate. A careful look at your solving history (in the saved SS file) would reveal that.
Back to top
View user's profile Send private message Visit poster's website
jswafa

Joined: 25 Mar 2009
Posts: 3
:

Items
PostPosted: Wed Mar 25, 2009 11:44 pm    Post subject: Thanks! Reply with quote

Thanks very much for the help, AJ & DAJ. I think you're right--I didn't save the puzzle so I can't see what I did for sure, but I restarted it and it worked fine, so at some point I must have inadvertently eliminated 5 from the cell.

I thought maybe I'd come across a bug. Not so fast!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Programming 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