Christian Jacob, University of Calgary
CPSC 607 Christian Jacob
- Dept. of Computer Science
- Dept. of Biochemistry & Molecular Biology
University of Calgary
Harnessing Genetics
Genetic Algorithms
Christian Jacob, University of Calgary
John H. Holland 1975 David Goldberg 1989
Genetic Algorithms (GA)
Christian Jacob, University of Calgary
GA Dualism: Binary Encoding
Genotype
{1,0,1,1,0,1,0,0,1,0,1,1} {0,1,1,1,1,0,0,1,0,0,0,1} {0,0,1,1,0,1,1,1,0,1,0,0} ... {1,1,0,0,0,1,0,1,0,1,0,0} ... {1,0,1,0,0,1,1,1,0,1,1,1} {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1}
Decoding
Interpretation
Phenotype
Christian Jacob, University of Calgary {1,1,1,1,0,1,0,1,0,0,0,0} {0,1,1,1,0,0,1,1,0,1,1,0}
Mutation
{0,1,1,1,0,1,0,1,0,0,0,0} {1,1,1,1,0,0,1,1,0,1,1,0}
Crossover
How Genetic Algorithms W
- rk
{1,1,0,0,0,1,0,1,0,1,0,0} {0,0,1,1,0,1,1,1,0,1,0,0}
Selection
{1,0,1,1,0,1,0,0,1,0,1,1} {0,1,1,1,1,0,0,1,0,0,0,1} {1,1,0,0,0,1,0,1,0,1,0,0} ... {1,0,1,0,0,1,1,1,0,1,1,1} {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1}
Interpretation Evaluation
2 4 6
- Ind. 40
- Ind. 37
- Ind. 5
- Ind. 2
{1,0,1,1,0,1,0,0,1,0,1,1} {0,1,1,1,1,0,0,1,0,0,0,1} {1,1,0,0,0,1,0,1,0,1,0,0} ... {1,0,1,0,0,1,1,1,0,1,1,1} {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1}
Insert in Genepool
Christian Jacob, University of Calgary
Evolution with V arying Objective Function
Generation 0 Generation 10 Generation 11 Generation 30
Christian Jacob, University of Calgary
Generation 0 to Generation 10