Gga4r, General Genetic Algorithms for Ruby Introduction General Genetic Algorithms for Ruby is a Ruby Genetic Algorithm so simple to use: Take a class to evolve it and define fitness, recombine and mutate methods. class StringPopulation < Array def fitness self.select { |pos| pos == 1 }.size.to_f / self.size.to_f end def recombine(c2) cross_point = (rand * c2.size).to_i c1_a, c1_b = self.separate(