A simple example of genetic algorithms.