Genetic programming is an evolutionary algorithm-based methodology for program synthesis that evolves a population of candidate programs toward a solution. It treats programs as executable syntax trees, applying genetic operations like selection, crossover, and mutation guided by a fitness function that measures how well each program meets a given specification. This process iteratively explores a vast search space of possible programs, mimicking natural selection to discover novel, functional code without explicit human design.
