Figure 1 Pseudo code of the genetic algorithm
Create an initial population of strings. Calculate the fitness of each string. WHILE an acceptable solution is not found. Select parents for the next generation. Combine the parents to create new offspring. Calculate the fitness of each offspring. END WHILE.