a5kin / xentica

GPU-accelerated engine for multi-dimensional cellular automata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement genomes crossover in tools.genetics

a5kin opened this issue · comments

Some basic crossover between N genomes (as bit fields) have to be implemented. Each bit (gene) in resulting genome should be randomly chosen from corresponding bits of parent genomes.

Genome crossover have been implemented, it takes a list of genomes as input, and choose each bit at random from all non-zero genomes. In addition, bits could swap their values with certain probability (mutation).