From: "Dave Pederson" <dave.pederson@gmail.com>
Date: October 6, 2007 11:28:44 AM CDT
To: submission@rubyquiz.com
Subject: Ruby Quiz #142 SubmissionHi-
I am a java developer who has been trying to learn ruby. I came across your quizzes while researching. I had previously written a genetic algorithm framework in java and decided that it would be a good exercise to port it to ruby. This is my first attempt, so the code may not be as terse as a typical ruby script, but I'll try and work on that.
The code behaves like a typical genetic algorithm:
The best solution may not be found every time, however a 'close enough' or 'optimal' solution is
To achieve better results, increase the population size and the number of generations.Any criticism/advice you may have is welcome.
Thanks,
-Dave
ruby-quiz.tar.gz (3.61 KB)
ยทยทยท
Begin forwarded message: