Genetic algorithms (GAs) are optimization algorithms inspired by Darwinian evolution. They use techniques like mutation, crossover, and selection to evolve solutions to problems iteratively. The document provides examples to illustrate how GAs work, including finding a binary number and fitting a polynomial to data points. GAs initialize a population of random solutions, then improve it over generations by keeping the fittest solutions and breeding them using crossover and mutation to produce new solutions, until finding an optimal or near-optimal solution.