Skip to main content
. 2019 Jun 21;19(12):2783. doi: 10.3390/s19122783
Algorithm 1: Using two n-dimensional arrays (C1, C2) to represent two randomly selected parent chromosomes.
input:  C1[n] = (c11, c21, …, cn1), C2[n] = (c12, c22, …, cn2)
output:  C (Third child)[n]
1 for i = 1; i ⩽ n; i++ do
2 | C (Third child) [n] = (C1[n]+ C2[n])/2
3 end