SlideShare ist ein Scribd-Unternehmen logo
1 von 25
An overview of Genetic Algorithm
By David Beasley, David R. Bull and Ralph R. Martin

                    090070T – T.P.K. Dahanayakage
                    090150N – K.M.T.V. Ganegedara
Introduction


 Population Evolves
   Natural Selection
   Survival of the fittest


 Applications?
   Computer, Bridges, Garment, etc.
Analogy




 Think about successive generations
Analogy (ctd)




             Super-fit
 Evolve according to environment
Basic Concept


 Set of solutions for a problem
   Each solution – fitness score
 Reproduce a new set of solutions by
  “Cross-breeding”
   Most-fit: get selected
   Least-fit: not selected – die out
 Result?
   Offsprings with characteristics from most-
    fit
What just happened?


 Good characteristics of a generation
  was spread in a successive
  generation
 Most promising areas of solution
  space are searched
Algorithm

BEGIN
      Generate population
      Calculate fitness for each individual
      WHILE NOT CONVERGED DO
      BEGIN
            FOR population_size/2 DO
            BEGIN
                  Select 2 parents for mating
                  Combine and produce an offspring
                  Calculate the fitness for the new individual
                  Insert the offspring to the new generation
            END
      END
END
Lesson on Biology


 Chromosome
   Organized collection of coiled DNA

                      DNA
Fitness function


 Must represent the “fitness to the
  environment” or “ability” of a
  chromosome’s

 Issues of fitness range
   Premature convergence
   Slow finishing
Reproduction


 Selection of parents
   Random
   Favors the fittest


 Crossover
   Single point crossover
      Cut 2 chromosomes at a random point
      Swap over tails to create 2 new chromosomes
Reproduction (ctd)


 Crossover is not the only case!
   0.6 - 1.0 chance
   Otherwise replicate the parent


 Mutation
   Alter the genes of crossover-ed with a
    small probability
Example


 0101001100              1011001001




 0101001001               1011001100


   Before mutation: 0 1 0 1 0 0 1 0 0 1
   After mutation:    0101101001
Convergence


 Fitness of the BEST and AVERAGE
  moves to a global optimum

 Gene is said to have converged
   95% of the population has converged
 Population is said to have converged
   All the genes have converged
Other techniques
“Schemata” and “Scheme”


 Definition of Schema
    Pattern of gene
    String comprise {0,1,#}

 Ex: Chromosome 0110 contains following
  “Schemata”
    #110, #1#0, 01##, etc.

 A chromosome is said to contain a schema if
  it matches a particular schemata
 Order of schema – Number of non-#
  symbols
 Length of schema – Distance
  between outer most non-# symbols.

 Ex: #1#0
Schema Theorem


 Individuals in a population are given reproductive
  trials
 Number of trials α Fitness of an individual
 Higher fitness value -> Good schemata


 Good Schemata receives
  exponentially increasing number of
  trials in successive generations!
Building Block Hypothesis


 Definition
   Schemata short in length and tend to
    improve performance when incorporated
    to an individual

 Properties of a successful coding
  scheme
   Related genes close together
   Little interaction between genes
Exploration and Exploitation


 Exploration
    Exploring unknown areas
 Exploitation
    Utilizing already-learnt to find better solutions

 Tradeoff
    Ex: Random search and Hill climbing

 GA combines both in an optimal way!
Practical Aspects of GA
Parent selection


 Individuals are copied to a “mating
  pool”
   Highly fit – more copies
   Less fit – lesser copies

 How to determine number of copies?
   Explicit fitness remapping
   Implicit fitness remapping
Explicit fitness remapping


      Individual’s fitness
  Average fitness of population

 Issue: Number of copies should be an
  integer
 Solution:
   Fitness scaling
   Fitness windowing
Implicit fitness remapping


 Tournament selection
   2 random individuals
   Copy the one with higher fitness value
    to the mating pool
   Continue until the pool is full
Generation gaps and
steady-state replacement

 Generation gap
   Proportion of individuals in a population
    replaced in each generation

 Steady-state replacement
   Only few individuals are replaced in a
    generation
   Considerations:
      Parent selection – Random, Fitness
      Replacement – Random, Inverse fitness
Thank you


 Q & A Session

Weitere ähnliche Inhalte

Was ist angesagt?

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmESUG
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsguest9938738
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmszamakhan
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMPuneet Kulyana
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithmsAkhil Kaushik
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic AlgorithmsAhmed Othman
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by ExampleNobal Niraula
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmJari Abbas
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Kapil Khatiwada
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary AlgorithmsReem Alattas
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data MiningAtul Khanna
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 

Was ist angesagt? (20)

Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Ga
GaGa
Ga
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
RM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lectureRM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lecture
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary Algorithms
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 

Ähnlich wie Genetic Algorithm

Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016Geoff Harcourt
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsDerek Kane
 
generic optimization techniques lecture slides
generic optimization techniques  lecture slidesgeneric optimization techniques  lecture slides
generic optimization techniques lecture slidesSardarHamidullah
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmUjjawal
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.pptRamjiChaurasiya
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.pptNipun85
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptHotTea
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .pptneelamsanjeevkumar
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptneelamsanjeevkumar
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.pptssuser2e437f
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptFitnessfreaksfam
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GAIshucs
 
Chapter09.ppt
Chapter09.pptChapter09.ppt
Chapter09.pptbutest
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithmritambharaaatre
 

Ähnlich wie Genetic Algorithm (20)

SoftComputing4
SoftComputing4SoftComputing4
SoftComputing4
 
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
 
Demonstration1 G As
Demonstration1   G AsDemonstration1   G As
Demonstration1 G As
 
generic optimization techniques lecture slides
generic optimization techniques  lecture slidesgeneric optimization techniques  lecture slides
generic optimization techniques lecture slides
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.ppt
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.ppt
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
Chapter09.ppt
Chapter09.pptChapter09.ppt
Chapter09.ppt
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithm
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 

Kürzlich hochgeladen

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Kürzlich hochgeladen (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

Genetic Algorithm

  • 1. An overview of Genetic Algorithm By David Beasley, David R. Bull and Ralph R. Martin 090070T – T.P.K. Dahanayakage 090150N – K.M.T.V. Ganegedara
  • 2. Introduction  Population Evolves  Natural Selection  Survival of the fittest  Applications?  Computer, Bridges, Garment, etc.
  • 3. Analogy  Think about successive generations
  • 4. Analogy (ctd) Super-fit  Evolve according to environment
  • 5. Basic Concept  Set of solutions for a problem  Each solution – fitness score  Reproduce a new set of solutions by “Cross-breeding”  Most-fit: get selected  Least-fit: not selected – die out  Result?  Offsprings with characteristics from most- fit
  • 6. What just happened?  Good characteristics of a generation was spread in a successive generation  Most promising areas of solution space are searched
  • 7. Algorithm BEGIN Generate population Calculate fitness for each individual WHILE NOT CONVERGED DO BEGIN FOR population_size/2 DO BEGIN Select 2 parents for mating Combine and produce an offspring Calculate the fitness for the new individual Insert the offspring to the new generation END END END
  • 8. Lesson on Biology  Chromosome  Organized collection of coiled DNA DNA
  • 9. Fitness function  Must represent the “fitness to the environment” or “ability” of a chromosome’s  Issues of fitness range  Premature convergence  Slow finishing
  • 10. Reproduction  Selection of parents  Random  Favors the fittest  Crossover  Single point crossover  Cut 2 chromosomes at a random point  Swap over tails to create 2 new chromosomes
  • 11. Reproduction (ctd)  Crossover is not the only case!  0.6 - 1.0 chance  Otherwise replicate the parent  Mutation  Alter the genes of crossover-ed with a small probability
  • 12. Example 0101001100 1011001001 0101001001 1011001100 Before mutation: 0 1 0 1 0 0 1 0 0 1 After mutation: 0101101001
  • 13. Convergence  Fitness of the BEST and AVERAGE moves to a global optimum  Gene is said to have converged  95% of the population has converged  Population is said to have converged  All the genes have converged
  • 15. “Schemata” and “Scheme”  Definition of Schema  Pattern of gene  String comprise {0,1,#}  Ex: Chromosome 0110 contains following “Schemata”  #110, #1#0, 01##, etc.  A chromosome is said to contain a schema if it matches a particular schemata
  • 16.  Order of schema – Number of non-# symbols  Length of schema – Distance between outer most non-# symbols.  Ex: #1#0
  • 17. Schema Theorem  Individuals in a population are given reproductive trials  Number of trials α Fitness of an individual  Higher fitness value -> Good schemata  Good Schemata receives exponentially increasing number of trials in successive generations!
  • 18. Building Block Hypothesis  Definition  Schemata short in length and tend to improve performance when incorporated to an individual  Properties of a successful coding scheme  Related genes close together  Little interaction between genes
  • 19. Exploration and Exploitation  Exploration  Exploring unknown areas  Exploitation  Utilizing already-learnt to find better solutions  Tradeoff  Ex: Random search and Hill climbing  GA combines both in an optimal way!
  • 21. Parent selection  Individuals are copied to a “mating pool”  Highly fit – more copies  Less fit – lesser copies  How to determine number of copies?  Explicit fitness remapping  Implicit fitness remapping
  • 22. Explicit fitness remapping Individual’s fitness Average fitness of population  Issue: Number of copies should be an integer  Solution:  Fitness scaling  Fitness windowing
  • 23. Implicit fitness remapping  Tournament selection  2 random individuals  Copy the one with higher fitness value to the mating pool  Continue until the pool is full
  • 24. Generation gaps and steady-state replacement  Generation gap  Proportion of individuals in a population replaced in each generation  Steady-state replacement  Only few individuals are replaced in a generation  Considerations:  Parent selection – Random, Fitness  Replacement – Random, Inverse fitness
  • 25. Thank you  Q & A Session

Hinweis der Redaktion

  1. Two parentsAttract matesOther hunting foodChild both characteristicsSuperfit
  2. There should not be too many local maximasThere shouldn’t be a single global maximumTherefore better chromosomes must be closely related.Problem: Preparing a time table.Invalid chromosomes must guide towards valid chromosomes, using fitness valueBetter to invest sub-goals rewarded going for the ultimate goalPremature convergence: Set of highly fit individuals come to dominate the population, making a local maxima. Which in turn make it difficult to converge to more effective solutionSlow finishing: Population might have converged, but might not have found a global maxima
  3. Passing the genes without disruption of crossoverProbability 0.001
  4. Better individuals -> more of their genes to next generationGood schemata - Likelihood of better solution increase
  5. Power of GA – Finding good building blocksInteraction – In a chromosome, contribution of a gene to the fitness value depends on values of other genesIssues: Might not allow closely related genes to be placed togetherInteraction between genes can become high (specially in multi-dimensional data)
  6. AssumptionsPopulation is infiniteFitness function accurately shows the effectiveness of a solutionGenes in a chromosome don’t interact significantlyGenetic drift, mutation rate