BEGIN
 INITIALISE population with random candidate solutions;
 EVALUATE each candidate;
 REPEAT UNTIL (TERMINATION CONDITION is satisfied) DO
  1SELECT parents;
  2RECOMBINE pairs of parents;
  3MUTATE the resulting offspring;
  4EVALUATE new candidates;
  5SELECT individuals for the next generation;
 OD
END
Pseudocode 1: The general scheme of an evolutionary algorithm in pseudocode.