SlideShare a Scribd company logo
Genetic Algorithm



              PRESENTED BY- TAUSEEF AHAMD
      M.TECH (COMPUTER SC. & ENGINEERING)
          COMPUTER ENGINEERING DEPARTMENT
   ZAKIR HUSSAIN COLLEGE OF ENGG. & TECH.
                           A.M.U, ALIGARH
Outlines

 A quick overview of GA
 Features of GA
 Various Methods of Population Selection
 Anatomy Of GA
 An example of GA
References….

 Adaptation in Neural and Artificial
  Systems, John Holland, 1975.
 Genetic Algorithm in Search, Optimization and
  Machine Learning, David E. Goldberg, 1989.
 C. Darwin. On the Origin of Species by Means of
  Natural Selection; or, the Preservation of flavored
  Races in the Struggle for Life. John
  Murray, London, 1859.
A quick overview of GA

 Developed: USA in the 1970’s, by John Holland
 Holland’s original GA is now known as the simple genetic
  algorithm (SGA)
 GA was inspired by process of biological evolution
 It is based on the Darwin’s theory of “survival of the
  fittest” : the better individuals have better chance of
  reproducing.
Features of GA

 Used to solve Hard problems
 Maintains a POPULATION of solutions
 Solutions are encoded as CHROMOSOMES
 REPRODUCTION creates a new population
  members
 MUTATION and CROSSOVER occurs during
  reproduction
Conceptual Algorithm
Genetic Algorithm
Genetic Algorithm
Population Selection
 stochastically select from one generation to
  create the basis of the next generation
 The requirement is that the fittest individuals
  have a greater chance of survival than weaker
  ones
 fitter individuals will tend to have a better
  probability of survival and will go forward to
  form the mating pool for the next generation
Various Methods of population
Selection
 a) Roulette Wheel selection
 b) Rank Selection
 c) Tournament Selection
 d) Elitism

  There are many other methods, but we will
  discuss briefly only these methods.
Roulette Wheel selection(Example)
 Fitness f(x) of individual No. 3 is the fittest and
    No. 2 is the weakest
   Strongest individual a value of 38% and the
    weakest 5%
   These percentage fitness values can then be used
    to configure the roulette wheel
   Number of times the roulette wheel is spun is
    equal to size of the population
   Each time the wheel stops this gives the fitter
    individuals the greatest chance of being selected
    for the next generation and subsequent mating
    pool.
   Individual No. 3: 01000001012 will become more
    prevalent in the general population because it is
    fitter
Genetic Algorithm
Tournament Selection
 Provides Selective pressure by holding a
  tournament competition among n individuals
 Best individual from tournament is one having
  highest fitness, which is the winner of
  tournament
 Tournament competitions and winner is then
  inserted into mating pool
Tournament selection( Example)
Rank Selection
 previous selection will have problems when the
  fatnesses differs very much
 For example, if the best chromosome fitness is
  90% of all the roulette wheel then the other
  chromosomes will have very few chances to be
  selected
 first ranks the population and then every
  chromosome receives fitness from this ranking
 The worst will have fitness 1, second worst 2 etc.
  and the best will have fitness N(number of
  chromosomes in population).
Genetic Algorithm
Elitism
 Copies the best chromosome to new
  offspring before the mutation and crossover
 When creating a new population by crossover
  or mutation the best chromosome might be
  lost
 Forces GA to retain some numbers of best
  individuals at each generation
 Has been found that Elitism improves the
  performance significantly
Genetic Algorithm
Genetic Algorithm
Genetic Algorithm
Genetic Algorithm
Genetic Algorithm
Genetic Algorithm
An Example

 Simple problem: max x2 over {0,1,…,31}
 GA approach:
   Representation: binary code, e.g. 01101   13
   Population size: 4
   1-point xover, bitwise mutation
   Roulette wheel selection
   Random initialisation
 We show one generational cycle done by
  hand
x2 example: selection
X2 example: crossover
Thank you……

More Related Content

PPTX
Genetic Algorithm by Example
PPT
Genetic algorithms
PDF
RM 701 Genetic Algorithm and Fuzzy Logic lecture
PDF
Genetic Algorithm
PPT
Genetic algorithm
PPT
Soft computing06
PPTX
Genetic algorithm raktim
PPTX
Genetic Algorithm
Genetic Algorithm by Example
Genetic algorithms
RM 701 Genetic Algorithm and Fuzzy Logic lecture
Genetic Algorithm
Genetic algorithm
Soft computing06
Genetic algorithm raktim
Genetic Algorithm

What's hot (20)

PPTX
GENETIC ALGORITHM
PPTX
Genetic Algorithm
PPTX
Genetic algorithm
PPT
PPTX
Genetic algorithm
PPT
Genetic algorithms
PDF
Introduction to Genetic Algorithms and Evolutionary Computation
PPTX
Genetic Algorithms
PPT
Class GA. Genetic Algorithm,Genetic Algorithm
PPT
Introduction to Genetic algorithms
PDF
Introduction to the Genetic Algorithm
PPT
Introduction to Genetic Algorithms
PPTX
Genetic algorithms in Data Mining
PDF
Genetic algorithm fitness function
PPT
Genetic Algorithms - Artificial Intelligence
PPTX
Genetic programming
PPTX
MACHINE LEARNING - GENETIC ALGORITHM
PDF
Genetic algorithm
PPSX
Genetic_Algorithm_AI(TU)
PPTX
Genetic Algorithm
GENETIC ALGORITHM
Genetic Algorithm
Genetic algorithm
Genetic algorithm
Genetic algorithms
Introduction to Genetic Algorithms and Evolutionary Computation
Genetic Algorithms
Class GA. Genetic Algorithm,Genetic Algorithm
Introduction to Genetic algorithms
Introduction to the Genetic Algorithm
Introduction to Genetic Algorithms
Genetic algorithms in Data Mining
Genetic algorithm fitness function
Genetic Algorithms - Artificial Intelligence
Genetic programming
MACHINE LEARNING - GENETIC ALGORITHM
Genetic algorithm
Genetic_Algorithm_AI(TU)
Genetic Algorithm
Ad

Similar to Genetic Algorithm (20)

PDF
A Survey On Genetic Algorithms
PDF
Data Science - Part XIV - Genetic Algorithms
PPT
4.Genetic-Algorithms.ppt
PPTX
Genetic algorithm
PPT
AI_PPT_Genetic-Algorithms.ppt
PPT
Genetic-Algorithms.ppt
PPT
Genetic-Algorithms-computersciencepptnew.ppt
PPT
Genetic-Algorithms for machine learning and ai.ppt
PPT
Genetic-Algorithms.ppt
PPT
Genetic-Algorithms forv artificial .ppt
PPTX
Genetic algorithm optimization technique.pptx
PDF
Genetic Algorithms in Artificial Intelligence
PPTX
Genetic algorithms
PPTX
Genetic algorithm_raktim_IITKGP
PPTX
Explanation and example of genetic algorithm
PDF
Soft Computing- Dr. H.s. Hota 28.08.14.pdf
PDF
A Comparative Analysis of Genetic Algorithm Selection Techniques
PPTX
introduction of genetic algorithm
PDF
generic optimization techniques lecture slides
PPTX
GA of a Paper 2012.pptx
A Survey On Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
4.Genetic-Algorithms.ppt
Genetic algorithm
AI_PPT_Genetic-Algorithms.ppt
Genetic-Algorithms.ppt
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms.ppt
Genetic-Algorithms forv artificial .ppt
Genetic algorithm optimization technique.pptx
Genetic Algorithms in Artificial Intelligence
Genetic algorithms
Genetic algorithm_raktim_IITKGP
Explanation and example of genetic algorithm
Soft Computing- Dr. H.s. Hota 28.08.14.pdf
A Comparative Analysis of Genetic Algorithm Selection Techniques
introduction of genetic algorithm
generic optimization techniques lecture slides
GA of a Paper 2012.pptx
Ad

Recently uploaded (20)

PDF
Hazard Identification & Risk Assessment .pdf
PPTX
20th Century Theater, Methods, History.pptx
PDF
HVAC Specification 2024 according to central public works department
PDF
Computing-Curriculum for Schools in Ghana
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
Trump Administration's workforce development strategy
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
IGGE1 Understanding the Self1234567891011
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Introduction to Building Materials
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
Hazard Identification & Risk Assessment .pdf
20th Century Theater, Methods, History.pptx
HVAC Specification 2024 according to central public works department
Computing-Curriculum for Schools in Ghana
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
B.Sc. DS Unit 2 Software Engineering.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Empowerment Technology for Senior High School Guide
Trump Administration's workforce development strategy
Indian roads congress 037 - 2012 Flexible pavement
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
IGGE1 Understanding the Self1234567891011
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Introduction to Building Materials
Introduction to pro and eukaryotes and differences.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
Share_Module_2_Power_conflict_and_negotiation.pptx

Genetic Algorithm

  • 1. Genetic Algorithm PRESENTED BY- TAUSEEF AHAMD M.TECH (COMPUTER SC. & ENGINEERING) COMPUTER ENGINEERING DEPARTMENT ZAKIR HUSSAIN COLLEGE OF ENGG. & TECH. A.M.U, ALIGARH
  • 2. Outlines  A quick overview of GA  Features of GA  Various Methods of Population Selection  Anatomy Of GA  An example of GA
  • 3. References….  Adaptation in Neural and Artificial Systems, John Holland, 1975.  Genetic Algorithm in Search, Optimization and Machine Learning, David E. Goldberg, 1989.  C. Darwin. On the Origin of Species by Means of Natural Selection; or, the Preservation of flavored Races in the Struggle for Life. John Murray, London, 1859.
  • 4. A quick overview of GA  Developed: USA in the 1970’s, by John Holland  Holland’s original GA is now known as the simple genetic algorithm (SGA)  GA was inspired by process of biological evolution  It is based on the Darwin’s theory of “survival of the fittest” : the better individuals have better chance of reproducing.
  • 5. Features of GA  Used to solve Hard problems  Maintains a POPULATION of solutions  Solutions are encoded as CHROMOSOMES  REPRODUCTION creates a new population members  MUTATION and CROSSOVER occurs during reproduction
  • 9. Population Selection  stochastically select from one generation to create the basis of the next generation  The requirement is that the fittest individuals have a greater chance of survival than weaker ones  fitter individuals will tend to have a better probability of survival and will go forward to form the mating pool for the next generation
  • 10. Various Methods of population Selection a) Roulette Wheel selection b) Rank Selection c) Tournament Selection d) Elitism There are many other methods, but we will discuss briefly only these methods.
  • 12.  Fitness f(x) of individual No. 3 is the fittest and No. 2 is the weakest  Strongest individual a value of 38% and the weakest 5%  These percentage fitness values can then be used to configure the roulette wheel  Number of times the roulette wheel is spun is equal to size of the population  Each time the wheel stops this gives the fitter individuals the greatest chance of being selected for the next generation and subsequent mating pool.  Individual No. 3: 01000001012 will become more prevalent in the general population because it is fitter
  • 14. Tournament Selection  Provides Selective pressure by holding a tournament competition among n individuals  Best individual from tournament is one having highest fitness, which is the winner of tournament  Tournament competitions and winner is then inserted into mating pool
  • 16. Rank Selection  previous selection will have problems when the fatnesses differs very much  For example, if the best chromosome fitness is 90% of all the roulette wheel then the other chromosomes will have very few chances to be selected  first ranks the population and then every chromosome receives fitness from this ranking  The worst will have fitness 1, second worst 2 etc. and the best will have fitness N(number of chromosomes in population).
  • 18. Elitism  Copies the best chromosome to new offspring before the mutation and crossover  When creating a new population by crossover or mutation the best chromosome might be lost  Forces GA to retain some numbers of best individuals at each generation  Has been found that Elitism improves the performance significantly
  • 25. An Example  Simple problem: max x2 over {0,1,…,31}  GA approach:  Representation: binary code, e.g. 01101 13  Population size: 4  1-point xover, bitwise mutation  Roulette wheel selection  Random initialisation  We show one generational cycle done by hand