Algorithm 2: Genetic Algorithm
1: Begin
2: Initialize number of chromosomes
3: Generate initial solution
4: Evaluate fitness of each chromosomes
5: Select two of the fittest chromosomes
6: Do
7: Perform crossover for both of the fittest chromosomes
8: Create two new offspring
9: Evaluate fitness of the new off-springs
10: Select new off-springs
11: While (stopping condition is reached)
12: End