Cross Posted from Medium

It is not the strongest species that survive, nor the most intelligent, but the ones most responsive to change Charles Darwin

There are Five phases in a genetic algorithm:

  1. Creating an Initial population

  2. Defining a Fitness function

  3. Selecting the parents

  4. Making a Crossover

  5. Mutation

Pseudo Code

START
Generate the initial population
Compute fitness
REPEAT
    Selection
    Crossover
    Mutation
    Compute fitness
UNTIL population has converged
STOP

Read more