Figure 2:
Flowchart of Genetic Algorithm.