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   

Finding 5x5 solver
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Solving sudoku
View previous topic :: View next topic  
Author Message
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Wed Aug 24, 2005 1:56 pm    Post subject: Finding 5x5 solver Reply with quote

Hi all, I don't know if this is the true place to explain my question, I hope!

Does anyone know if there's a solver of a 5x5 sudoku table?
Because I'm going crazy, I started it but I can't finish it!
Could tell me some link to some 5x5 solver?
Back to top
View user's profile Send private message
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Wed Aug 24, 2005 6:42 pm    Post subject: Reply with quote

Thanx anyway! Crying or Very sad
Back to top
View user's profile Send private message
Merri

Joined: 02 Aug 2005
Posts: 44
:

Items
PostPosted: Wed Aug 24, 2005 10:47 pm    Post subject: Reply with quote

This is a slow moving forum. And you shouldn't hurry with things. Anyways, I actually made a 5 x 5 solver out of my 3 x 3 solver, but I need to fix it a bit to make it load faster (due to some of my optimization tricks it consumes a whole lot of memory with a bigger board until I edit the code more).
Back to top
View user's profile Send private message
gaby

Joined: 02 Jul 2005
Posts: 120
:

Items
PostPosted: Wed Aug 24, 2005 11:16 pm    Post subject: Reply with quote

I've built mine with a mind to solving NxN puzzles, but I haven't tried it on anything other than a 3x3. I believe Pappocom's sudoku solver will take custom sized puzzles, including all odd shapes and the like.
_________________
Free daily sudoku - Online puzzle database
http://vanhegan.net/sudoku/
Back to top
View user's profile Send private message Visit poster's website
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Thu Aug 25, 2005 6:45 am    Post subject: Reply with quote

If you want to share the exe I'll test it, because I'm stopped and I don't know how can I continue to finish the 5x5.
Back to top
View user's profile Send private message
gaby

Joined: 02 Jul 2005
Posts: 120
:

Items
PostPosted: Thu Aug 25, 2005 9:55 am    Post subject: Reply with quote

It's PHP code, so if you can send me the puzzle I'll see if it can solve it.
_________________
Free daily sudoku - Online puzzle database
http://vanhegan.net/sudoku/
Back to top
View user's profile Send private message Visit poster's website
dukuso

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

Items
PostPosted: Thu Aug 25, 2005 1:20 pm    Post subject: Reply with quote

or just change the first line in this :
http://www.setbb.com/phpbb/viewtopic.php?t=119&mforum=sudoku
to
# define N 5

or get an executable from
http://magictour.free.fr/suexk.exe
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Thu Aug 25, 2005 1:52 pm    Post subject: Reply with quote

I tried but I received:
0 solutions for sudoku#1
0 solutions for sudoku#2
0 solutions for sudoku#3
0 solutions for sudoku#4
0 solutions for sudoku#5

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

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

Items
PostPosted: Thu Aug 25, 2005 3:14 pm    Post subject: Reply with quote

what/where is sudoku#1,..,5 ?
it expects symbols 1,2,3,4,5,6,7,8,9,A,B,...,,P
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Thu Aug 25, 2005 4:53 pm    Post subject: Reply with quote

Rewind sorry I told you wrong thing, the sudoku is 25x25, sorry!
Back to top
View user's profile Send private message
gaby

Joined: 02 Jul 2005
Posts: 120
:

Items
PostPosted: Thu Aug 25, 2005 6:19 pm    Post subject: Reply with quote

Well, It's a bit of a beast! How many numbers did you manage to fill in?
_________________
Free daily sudoku - Online puzzle database
http://vanhegan.net/sudoku/
Back to top
View user's profile Send private message Visit poster's website
TomBecker

Joined: 24 Aug 2005
Posts: 6
:

Items
PostPosted: Thu Aug 25, 2005 6:43 pm    Post subject: Reply with quote

Rerewind I'm a little bit confused Wink
the sudoku is 5x5 sorry Very Happy Very Happy
Back to top
View user's profile Send private message
xyzzy

Joined: 24 Aug 2005
Posts: 80
:

Items
PostPosted: Thu Aug 25, 2005 7:10 pm    Post subject: Reply with quote

Can you post the problem? I've never run my solver on a 5x5, I'd be interested to see if it can solve it in a reasonable time.
Back to top
View user's profile Send private message Visit poster's website
rallveird

Joined: 13 Jun 2005
Posts: 31
:

Items
PostPosted: Thu Aug 25, 2005 11:21 pm    Post subject: Reply with quote

If you want to solve a 25x25 you need to implement logic methods to start the solving. My program can solve 25x25 easy enough. You can find a lot of 25x25 puzzles on my site http://www.menneske.no/sudoku/5/eng/

But just to make you understand how difficult bruteforce a 25x25 with few startnumber is. To generate a solution on an empty 9x9 you usually need only 81 iterations (inserting random numbers, only allowing legal numbers to be inserted). Sometimes you need up to 90 iterations. Since there is 81 numbers in the grid, this is almost no backtracking.

Generating a solution for a 25x25 is a different thing. Here you can need millions of iterations. Generating a 9x9x9 (3D) you need billions of iterations. And this is if you only insert legal numbers, meaning you have to check which numbers can be inserted into a cell before inserting them, and finding the cell with least numbers to insert. If you want to brute force from the top left to the bottom right you would probably need 1000 times these numbers.

This is why you need a logic solver as a start on these big puzzles, or find the magic cells - which is tremendous help Smile
Back to top
View user's profile Send private message
gaby

Joined: 02 Jul 2005
Posts: 120
:

Items
PostPosted: Thu Aug 25, 2005 11:30 pm    Post subject: Reply with quote

So far, it's segfaulted my solver (but it is written in PHP... Smile I'm working on a way to make it more efficient. Or some other way to avoid having to learn/write C...

I get as far as finding some hidden number chains before it runs out of memory.

Gaby
_________________
Free daily sudoku - Online puzzle database
http://vanhegan.net/sudoku/
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
Goto page 1, 2  Next
Page 1 of 2

 
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