Hi all, I'm busy writing my first genetic algorithm. A simple one that finds an expression to give a desired number, ie you'll give it the number 40 and it will give you 5*7+5. I have the fitness function, the parser that uses the string to compute the number and the crossover system, so only the final step remains, but I'm confused, say I have the 6 chromosomes with a fitness assigned to each, what do I do from there? I can't just breed the best two and remove the others?(adsbygoogle = window.adsbygoogle || []).push({});

Do I select the best 2 then breed them but change how they crossover each time?

Any help appreciated, apologies for newbieness.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Genetic algorithm, Which Chromosomes to crossover given fitness?

Loading...

Similar Threads for Genetic algorithm Chromosomes |
---|

Insights Intro to Algorithms for Programming - Comments |

Python Verlet algorithm and Lorentz force trajectory |

C/++/# Is there a flaw in my longest common subsequence algorithm? |

C/++/# Finding duplicates algorithm |

Perceptron algorithm initial vector |

**Physics Forums | Science Articles, Homework Help, Discussion**