Algorithm 4. Crossover function.
1
2
3
4
5
6
7
8
Function crossover (father, mother)
r1 ~ uniform(0.0, 1.0)
for g = 1 to G do
if r1 < 0.5 then
childg ← fatherg
else
childg ← motherg
return child