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   

Started at 9, and now it's 1:30... please help...

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

Joined: 30 Sep 2005
Posts: 2
:

Items
PostPosted: Fri Sep 30, 2005 5:40 am    Post subject: Started at 9, and now it's 1:30... please help... Reply with quote

Okay, I want to know what you think the next step is. I can't figure out any way to solve this. Please don't just spoil the whole thing by plotting in all the numbers. I won't learn anything that way. I just want to know what it is I should have spotted, what technique is used to solve it. For instance, you can say something like "r1c1 is 9 and r1c2 is 4 because of technique XY-wing". That way I can look up what the technique is, and how it's used to solve the puzzle. I'm just completely stumped right now and desperately in need of sleep.

Code:

*-----------------------*
| . . . | . 8 . | . 5 1 |
| . 6 . | . 1 5 | 9 . . |
| . . 3 | 7 4 9 | 2 6 8 |
|-------+-------+-------|
| 2 8 6 | 5 9 3 | 1 . . |
| . . 1 | 4 7 8 | 6 2 . |
| . . . | 1 . . | . 8 9 |
|-------+-------+-------|
| . . 9 | . 5 7 | 4 1 . |
| . . 5 | 9 . 4 | . 3 . |
| 4 7 . | . 3 1 | . 9 . |
*-----------------------*


In case I screwed up, here is the original puzzle before I placed any numbers in.

Code:

*-----------------------*
| . . . | . 8 . | . 5 1 |
| . 6 . | . . 5 | 9 . . |
| . . 3 | . 4 . | 2 . . |
|-------+-------+-------|
| 2 8 . | . . 3 | . . . |
| . . 1 | 4 . 8 | 6 . . |
| . . . | 1 . . | . 8 9 |
|-------+-------+-------|
| . . 9 | . 5 . | 4 . . |
| . . 5 | 9 . . | . 3 . |
| 4 7 . | . 3 . | . . . |
*-----------------------*
Back to top
View user's profile Send private message
bennys

Joined: 30 Sep 2005
Posts: 6
:

Items
PostPosted: Fri Sep 30, 2005 6:24 am    Post subject: Reply with quote

Back to top
View user's profile Send private message
angusj
Site Admin
Joined: 18 Jun 2005
Posts: 406
:

Items
PostPosted: Fri Sep 30, 2005 6:26 am    Post subject: Re: Started at 9, and now it's 1:30... please help... Reply with quote

Grifter730 wrote:
Okay, I want to know what you think the next step is.




Following the above image ...
If r8c2 = 2 then
r8c5=6, r6c5=2, r6c6=6,r1c6=2,r2c4=3, r2c9<>3,r1c7=3,r6c7=5,r9c7=8,r9c3=2
Contradiction given that r8c2 and r9c3 can't both be 2.
Therefore r8c2=1
That gets you a little further but you'll need to do similar funny things to complete this puzzle.

Edit: improved grammar.


Last edited by angusj on Fri Sep 30, 2005 9:12 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
angusj
Site Admin
Joined: 18 Jun 2005
Posts: 406
:

Items
PostPosted: Fri Sep 30, 2005 6:39 am    Post subject: Re: Started at 9, and now it's 1:30... please help... Reply with quote

angusj wrote:
That gets you a little further but you'll need to do similar funny things to complete this puzzle.


Here's a clue to get you to the end ... (2 short forcing chains, both starting at the orange cell)



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: Fri Sep 30, 2005 9:11 am    Post subject: Reply with quote

Before aiming the heavy forcing chain guns, just look at the candidates for digit 8.

Row 7 has 2 candidates in columns 1 and 4.
Row 8 has 2 candidates in columns 1 and 7.

Therefore digit 8 is locked in column 1, rows 7 and 8.

Eliminate digit 8 from r2c1, leaving r2c3 as the single candidate for row 2.

This completely breaks the puzzle open.
Back to top
View user's profile Send private message Visit poster's website
angusj
Site Admin
Joined: 18 Jun 2005
Posts: 406
:

Items
PostPosted: Fri Sep 30, 2005 9:19 am    Post subject: Reply with quote

Ruud wrote:
Therefore digit 8 is locked in column 1, rows 7 and 8

I don't see how you can be confident of that conclusion*. There is nothing (that I can see anyhow) to guarantee that r2c1 <> 8.

(*ie: r2c1, r7c4, r8c7 & r9c3 could all be 8s if you're just looking at 8s.)
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: Fri Sep 30, 2005 11:16 am    Post subject: Reply with quote

You're right, AJ.

Didn't notice the candidate in r9c3. Embarassed

By coincidence, it did lead to the solution.
Back to top
View user's profile Send private message Visit poster's website
Grifter730

Joined: 30 Sep 2005
Posts: 2
:

Items
PostPosted: Fri Sep 30, 2005 2:10 pm    Post subject: Reply with quote

Okay, so I used the method given in the first response (something called the Uniqueness test), and it worked perfectly, it's awesome. I'm wondering though, in the link given, it seems as if this method only works when a puzzle is "unique" and has only 1 solution. So, does ALL puzzle only have 1 solution...?
Back to top
View user's profile Send private message
Lummox JR

Joined: 07 Sep 2005
Posts: 202
:

Items
PostPosted: Fri Sep 30, 2005 7:18 pm    Post subject: Reply with quote

All valid sudoku puzzles have one solution, yes. Otherwise, you'd be absolutely forced to abandon logic at some point to solve the puzzle.

The uniqueness test is quite fascinating, really. It doesn't prove the puzzle is unique, but relies on the conditions of sudoku which say it is. No test, really, can prove a puzzle is unique except a lot of T&E and backtracking, which is essentially as good as throwing it into a dancing links solver. Any generator worth its salt (or any hand-setter worth theirs) should be testing created puzzles for such a problem. After all, since uniqueness is one of the initial conditions, a multiple-solution board is just as wrong as one with two 5's in the same box.

Interestingly someone has just discovered a fourth variant of the uniqueness test, which before this was only known to exist in three flavors. I've been searching for a bit to see if I could find a puzzle that relies on the new technique.
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