The idea behind crossover is that the new chromosome may be better than both of the parents if it takes the best characteristics from each of the parents.
Crossover occurs during evolution according to a user-definable crossover probability.
Consider the following 2 parents which have been selected for crossover. Point A crossover operator that randomly selects two crossover points within a chromosome then interchanges the two parent chromosomes between these points to produce two new offspring. Consider the following 2 parents which have been selected for crossover. For some problems, this additional flexibility outweighs the disadvantage of destroying building blocks. If the mixing ratio is 0.5, approximately half of the genes in the offspring will come from parent 1 and the other half will come from parent 2.