artificial intelligence - Crossover different length genotypes -
e.g. have 2 random representatives
1 6 8 9 0 3 4 7 5
and
3 6 5 7 8 5
what ways crossover them?
add empty numbers (or operations or sth) on end of every genotype have same size?
3 6 5 7 8 5 -1 -1 -1
where -1 means nothing?
or copy few number first genotype , second?
what way use?
if have variable length chromosomes, shouldnt matter how it, need select crossover point each of them, , crossover normal.
for example using chromosomes, have selected 2 points (.) @ random:
1 6 8 9.0 3 4 7 5 3 6.5 7 8 5
with resulting chromosomes:
1 6 8 9.5 7 8 5 3 6.0 3 4 7 5
Comments
Post a Comment