58.2. Genetic Algorithms#
The genetic algorithm (GA) is a heuristic optimization method which operates through randomized search. The set of possible solutions for the optimization problem is considered as apopulation ofindividuals. The degree of adaptation of an individual to its environment is specified by itsfitness. The coordinates of an individual in the search space are represented bychromosomes, in essence a set of character strings. Agene is a subsection of a chromosome which encodes the value of a single parameter being optimized. Typical encodings for a gene could bebinary orinteger. Through simulation of the evolutionary operationsrecombination,mutation, andselection new generations of search points are found that show a higher average fitness than their ancestors.Figure 58.1 illustrates these steps. Figure 58.1. Structure of a Genetic Algorithm According to thecomp.ai.geneticFAQ it cannot be stressed too strongly that aGA is not a pure random search for a solution to a problem. AGA uses stochastic processes, but the result is distinctly non-random (better than random).
Prev | Up | Next |
58.1. Query Handling as a Complex Optimization Problem | Home | 58.3. Genetic Query Optimization (GEQO) in Postgres Pro |