Genetic Algorithm
GA (genetic algorithm) is similar to how biological genetics work in reality, where genes — your DNA — store information about the rest of your body. For example eye, skin and hair color, hair structure, body type, and height. In a GA, numbers represent various characteristics.
Combining NFT with Ethereum smart contract allows us to breed horses (in a GA, it is called a crossover). It creates another unique token out of the other two, keeping some of the information (features) previous tokens had written in the smart contract.
Half of the father’s genome and the other half of the mother’s genome are set into a new, and unique offspring genome. The exact split of the genes can differ each time in the crossover, meaning that even two siblings will have unique genomes. Just like in real life.
The key here is understanding that representing a genome is as simple as storing a few numbers. The crossover is a piece of code that takes two numbers (parent genomes) as input and produces a single number as an output (child genome).
On the Ethereum blockchain, we can store data (like a genome), and perform calculations with that data using Smart Contracts.
Last updated