A genetic algorithm begins by creating an initial population of chromosomes that are given a random collection of genes. It then continues as follows:
1. Create an initial population of chromosomes.
2. Evaluate the fitness or “suitability” of each chromosome that makes up the population.
3. Based on the fitness level of each chromosome, select the chromosomes that will mate, or those that have the “privilege” to mate.
4. Crossover (or mate) the selected chromosomes and produce offspring.