Genetic Algorithm in Ruby May 22, 2008
Posted by tommyr in Genetic Algorithms.Tags: genetic algorithm, ruby
trackback
Sean and I wrote a simple genetic algorithm program in ruby to evolve a polynomial to fit a set of data points. Running a simple example set consisting of 3 data points, the program evolved a polynomial of degree 2 with a fitness of 0.00018 over 10,000 generations, which took about 30 seconds on my computer at home with 256 MB ram. You can find our source code on my buzz account here:
very interesting. I gave you a thumbs up on Stumbleupon.
Check this out for learning languages:
[Edited by Chris to remove possible viral link]