Watch evolution in action! A population evolves through selection, crossover and mutation. Two modes: evolve a target string (like Dawkins' Weasel program) or optimise the devilishly hard Rastrigin function.
Tournament selection picks the fittest parents. Crossover recombines their genes. Random mutations add diversity. Over generations, the population converges on the optimum.
Adjust mutation rate, population size and crossover probability. Watch the fitness chart climb. In Rastrigin mode, see how the population escapes local optima.
Genetic algorithms mimic billions of years of evolution in seconds. They're used to optimise jet engine fan blades, antenna shapes for NASA spacecraft, and even trading strategies.