| Initialize population |
| while (termination condition not satisfied) do |
| begin |
| Evaluate the performance of each function according to the fitness criterion |
| Select the best functions in the population using the selection algorithm |
| Generate new individuals by crossover and mutation |
| endwhile |
| Report the best solution found |
| end |