Genetic Algorithms
Genetic Algorithms
Genetic Algorithms
Evolutionary Computation
Computational procedures patterned after
biological evolution
Search procedure that probabilistically applies
search operators to a set of points in the search
space
Generate successor hypothesis by repeatedly
mutating and recombining parts of the best
currently known hypothesis
Genetic Algorithm… Overview
A class of probabilistic optimization algorithms
Genetic Genetic
Programming Algorithms
What is GA
A genetic algorithm (or GA) is a search technique used
in computing to find true or approximate solutions to
optimization and search problems.
initiate &
evaluate
population evaluation
evaluated offspring
deleted
members
discard
What is GA
The evolution usually starts from a population of
randomly generated individuals and happens in
generations.
Phenotype:
– Physical characteristic of the genotype (smart,
beautiful, healthy, etc.)
Genotype and Phenotype
GA Requirements
A typical Ga requires two things to be defined:
a genetic representation of the solution domain, and
a fitness function to evaluate the solution domain.
m - mutation rate
GA Pseudo-code : The Parameters
GA(Fitness, Fitness_threshold, p, r, m)
Initialize: P ← p random hypotheses
Evaluate: for each h in P, compute Fitness(h)
While [maxh Fitness(h)] < Fitness_threshold
1. Select: Select (1 – r) members of P to add to PS based on fitness
2. Crossover: Probabilistically select pairs of hypotheses from P. For
each pair, <h1, h2>, produce two offspring by applying the Crossover
operator. Add all offspring to PS
3. Mutate: Invert a randomly selected bit in m · p random members of PS
4. Update: P ← PS
5. Evaluate: for each h in P, compute Fitness(h)
Most of them can usually only solve one given specific problem,
since their architecture was designed for whatever that specific
problem was in the first place.
??
THANK YOU