

So, now that we have looked at how the genetic algorithm works, let’s go even deeper and take a look at their smart contract. This child genome is used to generate a new kitty.

It uses the crossover mechanism to “sire” a child genome using two parent kitties. This is done to make sure that the system can explore other possibilities for optimal solutions.Parent: 1010011000Child: 0101010001Ĭryptokitties uses the Genetic Algorithm to create a new kitty. Mutation: Mutation is when we take a parent and randomly mutate some of their variables to create a child.This is how a child retains certain features of the father and the mother.

So using our example:Parent 1: 1010011000Parent 2: 1001001010Child: 1000011010This pretty much works the same in real life as well. What happens here is that we choose the common variables of the two parents and retain those in the child solution. These well-performing parents are the ones that are preferred for reproduction.
