Skip to content
Prev 619 / 15274 Next

[offtopic] solving sudoku in R?


        
Achim> On Fri, 27 Jan 2006 07:23:38 -0500 Krishna Kumar wrote:
>> As sudoku seems to be in fad this season how about a fast solver in
    >> R. ?

    Achim> Try install.packages("sudoku") :-)
    Achim> David Brahm has written this. What is still missing is a sudoku
    Achim> generator...

David Brahm has his next version of 'sudoku' -- greatly enhanced
in testing.

What __ON EARTH__  has this to do with R-SIG-Finance ??

REALLY, this belongs to R-help and nowhere else!
Martin

    Achim> Best,
    Achim> Z

    >> I wrote a little thingie that just does an exhaustive search and
    >> was wondering if this could be speeded up,
    >> I am particularly interested in putting some intelligence in to it
    >> and any  speedups that could be done.
    >> 
    >> Currently doing,
    >> >  system.time(sudoku()) 
    >> [1] 18.25  0.02 18.43    NA    NA
    >> 
    >> 18 secs for the default puzzle.Also is there a way to count function 
    >> evaluations in R (a-la-matlab flops)?.
    >> 
    >> Suggestions welcome.
    >> 
    >> 
    >> Best,