Genetic algorithms (GAs) are adaptive heuristic search methods inspired by natural selection, focusing on optimizing solutions through generations of individuals represented as strings analogous to chromosomes. Each individual is assigned a fitness score, with the fittest having a higher chance to reproduce, allowing for the evolution of better solutions over successive generations. The evolution is driven by operators such as selection, crossover, and mutation, maintaining diversity and avoiding premature convergence in the population.