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   

Minimal sudoku instances with unique solution

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

Joined: 26 Jul 2005
Posts: 1
:

Items
PostPosted: Tue Jul 26, 2005 1:28 pm    Post subject: Minimal sudoku instances with unique solution Reply with quote

Hi,

I am looking for minimal instances with respect to the given numbers which have exactly one solution:
E.g. on the web I found the following instance where only 17 numbers are given
(0 means empty field):

006 900 070
000 010 002
800 000 000

020 000 004
000 000 001
005 006 000

000 000 060
000 002 050
010 043 000

This instance has the following unique solution:
146 928 375
593 617 842
872 435 916

721 359 684
968 274 531
435 186 297

257 891 463
384 762 159
619 543 728

I can prove that there exists only this solution based on my solver in
abount 110 seconds.

Are there instances with less than 17 given numbers which have a unique solution?

Daniel
Back to top
View user's profile Send private message
dukuso

Joined: 14 Jul 2005
Posts: 424
:
Location: germany

Items
PostPosted: Tue Jul 26, 2005 3:11 pm    Post subject: Reply with quote

see here:

http://www.sudoku.com/forums/viewtopic.php?t=605&start=0
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Merri

Joined: 02 Aug 2005
Posts: 44
:

Items
PostPosted: Fri Aug 12, 2005 10:57 am    Post subject: Reply with quote

What are the minimal numbers for bigger grids? 4 x 4 and 5 x 5? With a guess, I'll throw numbers 31 and 49.
Back to top
View user's profile Send private message
dukuso

Joined: 14 Jul 2005
Posts: 424
:
Location: germany

Items
PostPosted: Fri Aug 12, 2005 1:44 pm    Post subject: Reply with quote

Merri wrote:
What are the minimal numbers for bigger grids? 4 x 4 and 5 x 5? With a guess, I'll throw numbers 31 and 49.


how did you get these numbers ?
I generated some 16*16 and always stayed with >=90 clues
after removing as many as possible.
This was not very optimized for minimum clues,
but if you could make one with less than 70 clues,
that I would admire.

here is one with 86:
(I'll edit this again, when I find a better one..)



.7.CA..9...G1.F.
.....3..D..2....
.....78C....E.B.
4......6B..F.7.9
..A8....E.DC.B..
..G...6E..2.....
.1.....2..A.G4.D
.....5.G...8..C6
6B1.9..........5
.4...B..A.....E8
.D.....5.87.....
.C.26...593...7F
A.3.E..BF...29G.
5.E....F..G.B.8.
..9...A.6...F...
..B...4..E..C...


Last edited by dukuso on Fri Aug 12, 2005 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Moschopulus

Joined: 12 Aug 2005
Posts: 39
:

Items
PostPosted: Fri Aug 12, 2005 2:23 pm    Post subject: Reply with quote

Here is a grid in which any puzzle requires at least 64 clues.

1234567890etabcd
et90cdab34127856
65872143badc09te
dcbate0987654321
90etabcd12345678
34127856et90cdab
badc09te65872143
87654321dcbate09
56781234abcd90et
cdabet9078563412
2143658709tebadc
te09dcba43218765
abcd90et56781234
78563412cdabet90
09tebadc21436587
43218765te09dcba

This can be partitioned into 16 4x4 sudokus.
Each of these requires 4 clues.
Maybe one of these sets of 64 clues works?


Last edited by Moschopulus on Fri Aug 12, 2005 3:52 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Merri

Joined: 02 Aug 2005
Posts: 44
:

Items
PostPosted: Fri Aug 12, 2005 2:37 pm    Post subject: Reply with quote

I just tried a dumb math without any real background for it. I'll explain it anyways so a few people can have a good laugh Rolling Eyes

First I just figured out how to get 16 or 17 using simple math. Thus:
9 - 1 = 8
8 * 2 = 16 (so this would mean "not enough to have a solid solution)
8 * 8 = 64 (the number of remaining cells)
64 + 17 = 81 (when put together you get the total number of numbers)

Then basically used the same math for 16 x 16 and 25 x 25...

16 - 1 = 15
15 * 2 = 30
15 * 15 = 225
225 + 31 = 256

25 - 1 = 24
24 * 2 = 48
24 * 24 = 576
576 + 49 = 625

I just didn't think about the lowest possibilities... with 4 x 4 grid:

4 - 1 = 3
3 * 2 = 6
3 * 3 = 9
9 + 7 = 16

So... I guess 4 x 4 requires less than seven to be filled completely with one possible solution when there is a minimal case?
Back to top
View user's profile Send private message
Moschopulus

Joined: 12 Aug 2005
Posts: 39
:

Items
PostPosted: Fri Aug 12, 2005 2:45 pm    Post subject: Reply with quote

Merri wrote:


So... I guess 4 x 4 requires less than seven to be filled completely with one possible solution when there is a minimal case?


Yes, the minimum for a 4x4 sudoku is 4 clues. For example

1...
...2
..4.
.3..
Back to top
View user's profile Send private message Visit poster's website
pseudo coup

Joined: 28 Aug 2005
Posts: 6
:

Items
PostPosted: Thu Sep 01, 2005 10:43 am    Post subject: 84 clues Reply with quote

dukuso wrote:
I generated some 16*16 --- here is one with 86:
(I'll edit this again, when I find a better one..) ---


84 clues (act365.com/sudoku/brain.htm):

Code:
 .. 16 .. 13 | .. .. .. .. |  3 .. ..  9 | ..  4 15 ..
 11 .. ..  7 | .. .. .. .. | .. ..  1 .. | .. .. .. 12
 10 .. .. .. | 14 ..  6 .. | .. ..  8 .. | 16 .. .. ..
 .. 12  3 .. | ..  9 ..  8 | ..  5 .. 13 | ..  2 .. ..
 ------------+-------------+-------------+-------------
 ..  1 .. .. | .. ..  8 16 | .. .. .. .. |  6 .. .. 11
 .. .. 12 15 | ..  2 .. .. | 14 .. .. .. |  7 ..  4 ..
 .. ..  9 .. | .. .. .. 11 | .. .. .. .. | 10 13 .. ..
 .. .. .. 11 | .. ..  5  3 | ..  2 .. .. | .. .. .. 16
 ------------+-------------+-------------+-------------
 13 .. .. .. | .. .. 15 .. | 12 10 .. .. | 14 .. .. ..
 .. .. 15  4 | .. .. .. .. |  7 .. .. .. | ..  9 .. ..
 ..  3 .. 10 | .. .. ..  1 | .. .. 16 .. |  8  7 .. ..
  2 .. ..  5 | .. .. .. .. |  4  6 .. .. | .. .. 11 ..
 ------------+-------------+-------------+-------------
 .. .. 14 .. | 10 ..  2 .. | 15 ..  7 .. | .. 11  6 ..
 .. .. ..  2 | .. 12 .. .. | .. 14 .. 11 | .. .. ..  1
  6 .. .. .. | ..  4 .. .. | .. .. .. .. |  5 .. ..  3
 ..  8 16 .. |  9 .. .. 13 | .. .. .. .. |  4 .. 12 ..
Back to top
View user's profile Send private message
dukuso

Joined: 14 Jul 2005
Posts: 424
:
Location: germany

Items
PostPosted: Fri Sep 02, 2005 1:45 pm    Post subject: Re: 84 clues Reply with quote

pseudo coup wrote:
dukuso wrote:
I generated some 16*16 --- here is one with 86:
(I'll edit this again, when I find a better one..) ---


84 clues (act365.com/sudoku/brain.htm):

Code:
 .. 16 .. 13 | .. .. .. .. |  3 .. ..  9 | ..  4 15 ..
 11 .. ..  7 | .. .. .. .. | .. ..  1 .. | .. .. .. 12
 10 .. .. .. | 14 ..  6 .. | .. ..  8 .. | 16 .. .. ..
 .. 12  3 .. | ..  9 ..  8 | ..  5 .. 13 | ..  2 .. ..
 ------------+-------------+-------------+-------------
 ..  1 .. .. | .. ..  8 16 | .. .. .. .. |  6 .. .. 11
 .. .. 12 15 | ..  2 .. .. | 14 .. .. .. |  7 ..  4 ..
 .. ..  9 .. | .. .. .. 11 | .. .. .. .. | 10 13 .. ..
 .. .. .. 11 | .. ..  5  3 | ..  2 .. .. | .. .. .. 16
 ------------+-------------+-------------+-------------
 13 .. .. .. | .. .. 15 .. | 12 10 .. .. | 14 .. .. ..
 .. .. 15  4 | .. .. .. .. |  7 .. .. .. | ..  9 .. ..
 ..  3 .. 10 | .. .. ..  1 | .. .. 16 .. |  8  7 .. ..
  2 .. ..  5 | .. .. .. .. |  4  6 .. .. | .. .. 11 ..
 ------------+-------------+-------------+-------------
 .. .. 14 .. | 10 ..  2 .. | 15 ..  7 .. | .. 11  6 ..
 .. .. ..  2 | .. 12 .. .. | .. 14 .. 11 | .. .. ..  1
  6 .. .. .. | ..  4 .. .. | .. .. .. .. |  5 .. ..  3
 ..  8 16 .. |  9 .. .. 13 | .. .. .. .. |  4 .. 12 ..



yes ! And it's even symmetric and a hard one.
One clue can be removed :

Code:



.G.D.......9.4F.
B..7......1....C
A...E.6...8.G...
.C3..9.8.5.D.2..
.1....8G....6..B
..CF.2..E...7.4.
..9....B....AD..
...B..53.2.....G
D.....F.CA..E...
..F4....7....9..
.3.A...1..G.87..
2..5....46....B.
..E.A.2.F.7..B6.
...2.C...E.B...1
6....4......5..3
.8G.9..D....4.C.


here is another one with 83 clues:



3..9...7..GD6..2
.....B.4.9.E...G
72..C...........
.C..6.....B3E.5.
C5......G...7...
..D....8...2...1
.G.E.A....D.....
..4..9.3.86B.F..
..AGE.D........F
..3..8G....4....
...D.C....5..AB.
.7.B.2...C.F....
..2.....9.8.G.6.
D..F..8.72...4..
...71.95E......C
1.8..F.B...A9..7

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pat

Joined: 06 Sep 2006
Posts: 128
:

Items
PostPosted: Wed Sep 06, 2006 10:37 am    Post subject: re: minimum number of clues Reply with quote

for a box-size of 4x4,
gsf (2006.Feb.10) reports a 77-clue puzzle;

and now,
gsf (2006.Sep.6) wrote:

here is one of three from around that time

Code:
5...|3...|.BF.|4..8
...4|..D6|..E.|...3
..1.|...2|....|....
.6..|5...|..21|....
----+----+----+----
.F.3|.1..|.7.2|.6..
.C4.|A7.B|...5|E...
.2..|..4.|6D..|378.
8...|.C..|.4..|.9D1
----+----+----+----
....|....|..46|B.72
D..5|..A3|C...|....
4...|....|.37.|1..6
..A8|...D|....|.F.4
----+----+----+----
.8..|.51.|.2..|....
.A6.|....|7..3|F...
....|4.C.|.5..|..3.
....|....|..1.|....
.
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