Figure 1:
Genetic algorithm flowchart