Crossingover: Crossover operates on selected genes from parent chromosomes and creates new offspring. The simplest way how to do that is to choose randomly some crossover point and copy everything before this point from the first parent and then copy everything after the crossover point from the other parent.
[if gte vml 1]>
1
0
0
1
0
0
0
1
1
0
1
0
0
1
1
1
0
0
1
0
0
1
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
0
1
1
0
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
0
0
0
1
1
0
1
0
1
1
1
0
0
1
0
Before
Crossingover
After
Crossingover
1. Offspring
1. Offspring
2. Offspring
2. Offspring
Two Points: The two point’s crossover operator differs from the one point crossover in the fact that two crossover points are selected randomly:
[if gte vml 1]>
1
0
0
1
0
0
0
1
1
0
1
0
0
1
1
1
0
0
1
0
0
1
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
1
0
0
1
0
0
0
0
1
1
0
1
0
1
1
1
0
0
1
0
Before
Crossingover
After
Crossingover
1. Offspring
2. Offspring
1. Offspring
2. Offspring
Uniform:In the uniform crossover each bit/gene is selected randomly, either from the first parent or from the second one