This is a sample genetic algorithm implemented in several languages.