Professional Documents
Culture Documents
Evolution
Historical perspective
• 1948, Turing:
proposes “genetical or evolutionary search”
• 1962, Bremermann:
optimization through evolution and recombination
• 1964, Rechenberg:
introduces evolution strategies
• 1965, L. Fogel, Owens and Walsh:
introduce evolutionary programming
• 1975, Holland:
introduces genetic algorithms
• 1992, Koza:
introduces genetic programming
Evolution: Survival of the fittest
• Phenotypic traits:
– Behaviour / physical differences that affect response to
environment
– Partly determined by inheritance, partly by factors during
development
– Unique to each individual, partly as a result of random changes
• If phenotypic traits:
– Lead to higher chances of reproduction
– Can be inherited
then they will tend to increase in subsequent generations,
leading to new combinations of traits …
Evolution: Summary
• Population consists of diverse set of individuals
• Combinations of traits that are better adapted tend to
increase representation in population
Individuals are “units of selection”
• Variations occur through random changes yielding
constant source of diversity, coupled with selection
means that:
Population is the “unit of evolution”
Genetics: Natural
• The information required to build a living organism is
coded in the DNA of that organism
• Genotype (DNA inside) determines phenotype
• Genes phenotypic traits is a complex mapping
– One gene may affect many traits (pleiotropy)
– Many genes may affect one trait (polygeny)
• Small changes in the genotype lead to small changes in
the organism (e.g., height, hair colour)
Genetics: Genes and the Genome
• Genes are encoded in strands of DNA called
chromosomes
• In most cells, there are two copies of each chromosome
(diploidy)
• The complete genetic material in an individual’s
genotype is called the Genome
• Within a species, most of the genetic material is the
same
Structure of DNA (Deoxyribonucleic Acids)
W C
Purine-pyrimidine bridge
Genetics:Genetic code
• All proteins in life on earth are composed of sequences
built from 20 different amino acids
• DNA is built from four nucleotides in a double helix spiral:
A,G,T,C
• Triplets of these from codons, each of which codes for a
specific amino acid
• Much redundancy:
• 43=64 codons code for 20 amino acids
• genetic code = the mapping from codons to amino acids
The Purine-Pyrimadine Bridge
Types of Purines
Adenine (A) (paired with T)
Guanine (G) (paired with C)
Types of Pyrimidine
Thymine (T) (paired with A)
Cytosine (C) (paired with G)
The Purine-Pyrimidine Bridge
Result – 4 Letter Alphabet
AT A T
TA
GC G C
3.4Å
CG C G
Note: AT isn’t TA
A T
Sequence carries information
1000 steps can carry 41000 different T A
messages
Hydrogen bonds
DNA Replication
T A A G A C T A
C A T T C T G A T
A G A
T C T
G T A A G A C T A
A T T C T G A T
Incomplete Dominance
Consider color pattern in cattle
One pair of alleles determines color (complete
dominance)
BB: black
Bb: black
bb: red
Another pair determines extent of color (incomplete
dominance)
RR: solid color
Rr: speckled with white
rr: no color
Mechanism for Dominance
Genes result in production of enzymes
For complete dominance, one allele produces
enough to achieve a desired effect
Often, there will be subtle differences between
homozygous and heterozygous phenotypes (a
few white hairs on a black mouse)
Linkage and Chromosome Mapping
Importance of crossover
Crossover prevents a beneficial gene from being
inseparably linked to deleterious one
Crossover provides means for two good genes to
get together
Extends benefits of sexual reproduction
Inheritance of Quantitative Traits
Initial
population Fitness
Evaluation
19
76
44
f (x) 27
8
53
31
76
Selection
Initialization
Fitness evaluation
Selection
Crossover
Mutation
STOP?
END
Gene Representation
Parameter values are encoded into binary strings of
fixed and finite length
Gene: each bit of the binary string
Chromosome: a binary string
Individual: a set of one or multiple chromosomes, a
prospective solution to the given problem
Population: a group of individuals
Longer string lengths
Improve resolution
Requires more computation time
Binary Representation
Suppose we wish to maximize f (x)
Where [
x ∈ Ω; Ω = xmin, xmax ]
Binary representation xbinary ∈ [bl bl −1 L b2 b1 ]
[
We map xmin, xmax ] to [2 −1]
l
x max − x min l
i −1
Thus x = x min + ∑ i
b 2
2l − 1 i =1
Example
Let l = 5, Ω = [-5, 20]
Then
xmin =[0 0 0 0 0 ] ⇒ x = −5
xmax = [ 1 1 1 1 1 ] ⇒ x = 20
x = [1 0 0 1 1 ] ⇒
20 − (−5)
x = −5 + ( 2 + 2 + 2 )
4 1 0
= 10.3226
2 −1
5
Crossover
Example: N=2
Uniform Crossover
In a uniform crossover, we don’t divide the chromosome
into segments, rather we treat each gene separately.
1 0
0 1
Mutation points
1 1 0 0 1 0 1 1 1 0 0 0 1 1 1 1
Bitwise Mutation
flips bits: 0→1 and 1→0
In this bit flip mutation, we select one or more
random bits and flip them.
This is used for binary encoded GAs.
Swap Mutation
In swap mutation, we select two positions on
the chromosome at random, and interchange
the values. This is common in permutation
based encodings.
Scramble Mutation
Scramble mutation is also popular with permutation
representations.
In this, from the entire chromosome, a subset of
genes is chosen and their values are scrambled or
shuffled randomly.
Inversion Mutation
In inversion mutation, we select a subset of
genes like in scramble mutation, but instead of
shuffling the subset, we merely invert the
entire string in the subset.
Selection
900
800
700
600
f(x)
500
400
300
200
100
0
0 5 10 15 20 25 30
x
Results
Individual No. Initial population x value f(x) fi / Σf
fitness i
prob i = , j = 1...pop. size
∑ fitness j
j
Selection
1
Roulette wheel 2
3
4