This document describes genetic algorithms and provides an example of how one works. It defines genetic algorithms as evolutionary algorithms that use techniques inspired by evolutionary biology like inheritance, mutation, selection, and crossover. The document then outlines the typical components of a genetic algorithm, including initialization of a random population, fitness evaluation, selection of parents, crossover and mutation to produce offspring, and iteration until a termination condition is met. It concludes by showing pseudocode for a genetic algorithm to solve the onemax problem and output from running the algorithm.