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   

A useful measure of efficiency for generators.

 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting sudoku
View previous topic :: View next topic  
Author Message
The Ostrich

Joined: 20 Apr 2006
Posts: 49
:

Items
PostPosted: Sun Apr 23, 2006 1:14 pm    Post subject: A useful measure of efficiency for generators. Reply with quote

Hi,

I've been playing around with additive generators using DLX today and yesterday, and one thing I've found very useful for optimising the generator is a neat little measure of efficiency:

Code:

Efficiency = Number of givens / Number of Solves


It is, as far as I can see, possible to exceed 100% on this measure. For instance, you can randomly place 10 givens, do one solve, then randomly place givens in batches of 10 out of the solution until you have a sudoku. This would probably result in 40 or 50 givens, which isn't ideal... So the excess givens need to be removed.

So far, using this measure as a way of evaulating the problem, I've increased the efficiency of my generator from 17% (133 solves per 23 givens) to 47% (51 solves per 24), with an attendant increase in performance from 50 puzzles/GHz/sec to 100.

I was thinking along the way that this might be a good way of comparing different generation stragegies. What sort of efficiencies do people typically get out of their generators, for what strategies?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting 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