Just Another Victim of the Ambient Morality
7/15/2006 9:11:00 PM
"Adam Shelly" <adam.shelly@gmail.com> wrote in message
news:491107790607151333y2028ceccna66da5abb46a9ad4@mail.gmail.com...
> On 7/15/06, Joey <rubytalk@eachmapinject.com> wrote:
>> Sorry, mine doesnt work. would you mind giving us an input and an output
>> to
>> test with?
>>
> Yes, before we golf this further, does it even work?
> I gave the original version the input
> 003020600900305001001806400008102900700000008006708200002609500800203009005010300
> which should solve to
> 483921657967345821251876493548132976729564138136798245372689514814253769695417382
> but it just kept running and running and printing variations on strings
> like
> The solution is:
> 21345678945678912378912345612436589736589721489721436554163297867894153293257864
> which is one digit too short, and has incorrect numbers in many places...
> It's possible I didn't wait long enough, but most solvers can finds
> that answer in under a second.
Well, I've seen someone else on this newsgroup (or the mailing list)
write a sudoku solver in Ruby and their execution time was more than 30
seconds! This is quite understandable if the goal of the script was
minimizing lines of code rather than minimizing execution time...
However, if someone else finds the script to be broken then I think it
likely is...