Genetic Algo SC
Genetic Algo SC
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.
• Genetic algorithms are categorized as global
search heuristics.
• Genetic algorithms are a particular class of
evolutionary algorithms that use techniques
inspired by evolutionary biology such as
inheritance, mutation, selection, and crossover
(also called recombination).
What is GA
• Genetic algorithms are implemented as a
computer simulation in which a population
of abstract representations (called
chromosomes or the genotype or the
genome) of candidate solutions (called
individuals, creatures, or phenotypes) to an
optimization problem evolves toward better
solutions.
► Genotype:
– Particular set of genes in a genome
► Phenotype:
– Physical characteristic of the genotype (smart,
beautiful, healthy, etc.)
Genotype and Phenotype
GA Requirements
• A typical genetic algorithm requires two things to be
defined:
• a genetic representation of the solution domain, and
• a fitness function to evaluate the solution domain.
• Generally the average fitness will have increased by this procedure for the
population, since only the best organisms from the first generation are
selected for breeding, along with a small proportion of less fit solutions,
for reasons already mentioned above.
Crossover
• The most common type is single point crossover. In
single point crossover, you choose a locus at which you
swap the remaining alleles from on parent to the other.
This is complex and is best understood visually.
• As you can see, the children take one section of the
chromosome from each parent.
• The point at which the chromosome is broken depends
on the randomly selected crossover point.
• This particular method is called single point crossover
because only one crossover point exists. Sometimes
only child 1 or child 2 is created, but oftentimes both
offspring are created and put into the new population.
• Crossover does not always occur, however. Sometimes,
based on a set probability, no crossover occurs and the
parents are copied directly to the new population. The
probability of crossover occurring is usually 60% to 70%.
Crossover
Mutation
f(x) = 2 · (n-1) ·n
Checkboard example Cont’d
● Fitnesscurves for different cross-over rules:
The End