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   

Yet another free solver with source code.... (C++)

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

Joined: 07 Aug 2005
Posts: 2
:

Items
PostPosted: Sun Aug 07, 2005 12:33 pm    Post subject: Yet another free solver with source code.... (C++) Reply with quote

Just here : http://waveseed.com/sudoku/

Stats seem quite good, and it's very compact piece of code. Feel free to use it.

--- -8- 132
--- --- ---
6-- -45 -79

--2 8-7 6--
--1 --- 5--
--4 5-1 9--

23- 61- --8
--- --- ---
796 -3- ---

-------------------
547 986 132
189 273 465
623 145 879

352 897 614
961 324 587
874 561 923

235 619 748
418 752 396
796 438 251


-------------------
Duration : 0 ms
Number of steps: 54

Have fun,
-Thomas
Back to top
View user's profile Send private message
MrZu

Joined: 07 Aug 2005
Posts: 2
:

Items
PostPosted: Mon Aug 08, 2005 3:29 pm    Post subject: Reply with quote

Quick update...
A small change in the "scoring" method helped quite a bit. The "Solve" method can restrict the search to the first solution only.

For instance:
-42 -3- ---
--5 --- ---
--- 9-- --8
1-- 8-- ---
--3 -4- 2--
--- --7 --6
7-- --6 ---
--- --- 46-
--- -2- 59-

Used to take:
Duration : 0 ms
Number of steps: 13952

Now:
Version 2:
All solutions: 5679
First solution: 4166

On average, for complex searches, the number of steps is divided by 3 to 5. Same URL, at the bottom of the page.
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