SlideShare a Scribd company logo
GENETIC
ALGORITHM
Submitted by…
Pratheeban R
Register Number
103478165
Date
03/11/2012
Event
Seminar 1
Agenda
 Introduction
 Biological Background
 Search Space
 Genetic Algorithm
 Outline of Basic GA
 Operators of GA
 Crossover
 Mutation
 Parameters of GA
 Recommendations
 Application of GA
 Advantage & DisAdvantage
Introduction
 Inspired by Darwin's theory about Evolution
 Part of Evolutionary Computing
 Rapid growing area of AI
 EA Idea – I. Rechenberg – 1960 - “Evolution Strategies”
 GA Invent & Develop – John Holland team – “Adaption and Artificial
Systems” - 1975
 John Koza – 1992 – GA to evolve programs to perform certain task –
“Genetic Programming”
Biological Background
 CHROMOSOMES
 Each Cell – same set of chromosomes
 String of DNA & serves as model for whole organism
 Consist of Genes, blocks of DNA
 TRAIT - each Gene encodes a particular protein. E.g. Eye Color
 ALLELES - possible settings for Trait (e.g. blue, brown)
 LOCUS - each Gene’s own position in chromosome
 GENOME – complete set of genetic material
 GENOTYPE – particular set of genes in genome
 PHENOTYPE – genotype’s physical and mental characteristics (eye
color, intelligence)
 REPRODUCTION
 CROSSOVER (RECOMBINATION) – 1st occurs during reproduction
 Genes from parents form in some way the whole new chromosome (OFFSPRING) & can be
Mutated
 MUTATION – elements of DNA are a bit change
 This changes mainly caused by errors in copying genes from parents.
 FITNESS – measured by success of the organism in life
Search Space
 Space of all feasible solutions
 Each point in the search space represent one feasible solution
 Each feasible solution can be "marked" by its value or fitness for the
problem
 Considered as good solution (not often possible to prove what is real
optimum)
Genetic Algorithm
 Solution to a problem solved by genetic algorithms, is evolved
 Algorithm is started with a set of solutions (represented
by chromosomes) called Population
 Solutions from one population are taken and used to form a new
population for a better one.
 Solutions which are selected to form new solutions (offspring) are
selected according to their fitness - the more suitable they are the more
chances they have to reproduce
 Repeated until some condition is satisfied.
Outline of the Basic Genetic Algorithm
1. [Start] Generate random population of n chromosomes (suitable solutions
for the problem)
2. [Fitness] Evaluate the fitness f(x) of each chromosome x in the population
3. [New population] Create a new population by repeating following steps
until the new population is complete
1. [Selection] Select two parent chromosomes from a population according to their
fitness (the better fitness, the bigger chance to be selected)
2. [Crossover] With a crossover probability cross over the parents to form a new
offspring (children). If no crossover was performed, offspring is an exact copy of
parents.
3. [Mutation] With a mutation probability mutate new offspring at each locus
(position in chromosome).
4. [Accepting] Place new offspring in a new population
4. [Replace] Use new generated population for a further run of algorithm
5. [Test] If the end condition is satisfied, stop, and return the best solution in
current population
6. [Loop] Go to step 2
Operators of GA
Crossover + Mutation
 Encoding of a Chromosome
 represent chromosome in Binary String
 each chromosome has one binary string
 each bit in this string can represent some characteristic of the
solution
(OR)
 whole string can represent a number
 many ways to Encode – Depends on solved problem
Chromosome 1 1101100100110110
Chromosome 2 1101111000011110
Crossover
 Selects genes from parent chromosomes
 Creates a new offspring
 Depends on encoding of chromosome
 Specific crossover - specific problem – performance improvement of
GA
 New chromosomes will have good parts of old chromosomes & better
Chromosome 1 11011 | 00100110110
Chromosome 1 11011 | 00100110110
Offspring 1 11011 | 11000011110
Offspring 2 11011 | 00100110110
Mutation
 Prevents falling all solutions in population into a local optimum of
solved problem (local extreme)
 Changes randomly the new offspring
 for binary encoding, switch random chosen bit from 0 to 1 / 1 to 0
 Depends on encoding & crossover
 Should not occur very often, else GA will change to Random Search
Original offspring 1 1101111000011110
Original offspring 2 1101100100110110
Mutated offspring 1 1100111000011110
Mutated offspring 2 1101101100110110
Parameters of GA
Probability of Crossover & Mutation
 Crossover Probability
 crossover performation
 no crossover – offspring is exact copy of parents
 if crossover – offspring is made from parts of parents
 100 % - all offsprings made by crossover
 0 % - exact copies of old population
 Mutation Probability
 chromosome mutation
 no mutation – offspring crossover without any change
 if mutation - part of chromosome is changed
 100 % - whole chromosome change
 0 % - no change
Recommendations
 Crossover rate
 should be high ~ 80% - 95%.
 for some problems ~ 60% is the best
 Mutation rate
 mutation rate should be very low.
 best rates reported - 0.5% - 1%.
 Population size
 best population size depends on size of encoded string
 very big population size usually does not improve performance of GA
 good population size is about 20-30
 sometimes sizes 50-100 are reported as best
 32 bits chromosome – population 32
 16 bits chromosome - two times more than the best population size
 Selection
 basic roulette wheel selection
 rank selection can be better
 simulated annealing – sophisticated methods
 elitism should be used
 try steady state selection.
 Encoding
 Encoding depends on the problem & size of instance of the problem.
 Crossover and mutation type
 Operators depend on encoding & problem.
Applications of GA
 Nonlinear dynamical systems - predicting, data analysis
 Designing neural networks, both architecture and weights
 Robot trajectory
 Evolving LISP programs (genetic programming)
 Strategy planning
 Finding shape of protein molecules
 TSP and sequence scheduling
 Functions for creating images
Advantage & DisAdvantage
 Advantage
 parallelism
 travelling in a search space with more individuals so they are less
likely to get stuck in a local extreme like some other methods
 easy to implement
 have some GA, just write new chromosome to solve another
problem
 same encoding - change the fitness function
 DisAdvantage
 computational time
 slower than some other methods
 choosing encoding and fitness function can be difficult
 But with today’s computers it is not so big problem
Reference
 Rechenberg, Ingo (1973). Evolutionsstrategie. Stuttgart:
Holzmann-Froboog. ISBN 3-7728-0373-3.
 Srinivas. M and Patnaik. L, "Adaptive probabilities of crossover
and mutation in genetic algorithms," IEEE Transactions on
System, Man and Cybernetics, vol.24, no.4, pp.656–667, 1994.
 http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-
description.php
Thank
You!

More Related Content

What's hot

Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
Akhil Kaushik
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHM
Harsh Sinha
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Ahmed Othman
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Alaa Khamis, PhD, SMIEEE
 
Ga
GaGa
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Jari Abbas
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
garima931
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SEKHARREDDYAMBATI
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
shadanalam
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
DurgeshPratapSIngh8
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
Ishucs
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
RAHUL SOLANKI
 
Genetic algorithm
Genetic algorithm Genetic algorithm
Genetic algorithm
Rabiya Khalid
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Megha V
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
Mayank Jain
 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated Annealing
Joy Dutta
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Dr. C.V. Suresh Babu
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Syed Muhammad Zeejah Hashmi
 

What's hot (20)

Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHM
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Ga
GaGa
Ga
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
 
Genetic algorithm
Genetic algorithm Genetic algorithm
Genetic algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated Annealing
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 

Viewers also liked

Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Meshu Debnath
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SHIMI S L
 
PNRG & MT by Rio
PNRG & MT by RioPNRG & MT by Rio
PNRG & MT by Rio
Agate Studio
 
Effects of population initialization on differential evolution for large scal...
Effects of population initialization on differential evolution for large scal...Effects of population initialization on differential evolution for large scal...
Effects of population initialization on differential evolution for large scal...
Borhan Kazimipour
 
An Introduction To Applied Evolutionary Meta Heuristics
An Introduction To Applied Evolutionary Meta HeuristicsAn Introduction To Applied Evolutionary Meta Heuristics
An Introduction To Applied Evolutionary Meta Heuristics
biofractal
 
Comparing Metaheuristic Algorithms for Error Detection in Java Programs
Comparing Metaheuristic Algorithms for Error Detection in Java ProgramsComparing Metaheuristic Algorithms for Error Detection in Java Programs
Comparing Metaheuristic Algorithms for Error Detection in Java Programs
jfrchicanog
 
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMindPóster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
Juan J. Merelo
 
Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
HEENA GUPTA
 
Benchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithmsBenchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithms
Juan J. Merelo
 
Nature-inspired metaheuristic algorithms for optimization and computional int...
Nature-inspired metaheuristic algorithms for optimization and computional int...Nature-inspired metaheuristic algorithms for optimization and computional int...
Nature-inspired metaheuristic algorithms for optimization and computional int...
Xin-She Yang
 
Visão Geral, Ferramentas e Aplicações dos Algoritmos Genéticos
Visão Geral, Ferramentas e Aplicações dos Algoritmos GenéticosVisão Geral, Ferramentas e Aplicações dos Algoritmos Genéticos
Visão Geral, Ferramentas e Aplicações dos Algoritmos GenéticosNorton Guimarães
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
Harshana Madusanka Jayamaha
 
Introduction to Evolutionary Algorithms
Introduction to Evolutionary AlgorithmsIntroduction to Evolutionary Algorithms
Introduction to Evolutionary Algorithms
herbps10
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithmRitesh Kumar
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsguest9938738
 
Class GA. Genetic Algorithm,Genetic Algorithm
Class GA. Genetic Algorithm,Genetic AlgorithmClass GA. Genetic Algorithm,Genetic Algorithm
Class GA. Genetic Algorithm,Genetic Algorithm
raed albadri
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo searchNepalAdz
 
Evolution algorithms
Evolution algorithmsEvolution algorithms
Evolution algorithms
Andrii Babii
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
Introduction to the Genetic Algorithm
Introduction to the Genetic AlgorithmIntroduction to the Genetic Algorithm
Introduction to the Genetic Algorithm
Qiang Hao
 

Viewers also liked (20)

Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
PNRG & MT by Rio
PNRG & MT by RioPNRG & MT by Rio
PNRG & MT by Rio
 
Effects of population initialization on differential evolution for large scal...
Effects of population initialization on differential evolution for large scal...Effects of population initialization on differential evolution for large scal...
Effects of population initialization on differential evolution for large scal...
 
An Introduction To Applied Evolutionary Meta Heuristics
An Introduction To Applied Evolutionary Meta HeuristicsAn Introduction To Applied Evolutionary Meta Heuristics
An Introduction To Applied Evolutionary Meta Heuristics
 
Comparing Metaheuristic Algorithms for Error Detection in Java Programs
Comparing Metaheuristic Algorithms for Error Detection in Java ProgramsComparing Metaheuristic Algorithms for Error Detection in Java Programs
Comparing Metaheuristic Algorithms for Error Detection in Java Programs
 
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMindPóster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
 
Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
 
Benchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithmsBenchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithms
 
Nature-inspired metaheuristic algorithms for optimization and computional int...
Nature-inspired metaheuristic algorithms for optimization and computional int...Nature-inspired metaheuristic algorithms for optimization and computional int...
Nature-inspired metaheuristic algorithms for optimization and computional int...
 
Visão Geral, Ferramentas e Aplicações dos Algoritmos Genéticos
Visão Geral, Ferramentas e Aplicações dos Algoritmos GenéticosVisão Geral, Ferramentas e Aplicações dos Algoritmos Genéticos
Visão Geral, Ferramentas e Aplicações dos Algoritmos Genéticos
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
 
Introduction to Evolutionary Algorithms
Introduction to Evolutionary AlgorithmsIntroduction to Evolutionary Algorithms
Introduction to Evolutionary Algorithms
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Class GA. Genetic Algorithm,Genetic Algorithm
Class GA. Genetic Algorithm,Genetic AlgorithmClass GA. Genetic Algorithm,Genetic Algorithm
Class GA. Genetic Algorithm,Genetic Algorithm
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
Evolution algorithms
Evolution algorithmsEvolution algorithms
Evolution algorithms
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
 
Introduction to the Genetic Algorithm
Introduction to the Genetic AlgorithmIntroduction to the Genetic Algorithm
Introduction to the Genetic Algorithm
 

Similar to Genetic Algorithm

A genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop schedulingA genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop schedulingNagendra Bvs
 
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
VIT University (Chennai Campus)
 
GA.pptx
GA.pptxGA.pptx
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
Nandhini S
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
Nipun85
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
HotTea
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.ppt
Fitnessfreaksfam
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
neelamsanjeevkumar
 
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
neelamsanjeevkumar
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
ssuser2e437f
 
Genetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial IntelligenceGenetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial Intelligence
ritwijkp2
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014
Aleksander Stensby
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
RamjiChaurasiya
 
A Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its ApplicationsA Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its Applications
Karen Gomez
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
Gadoc
GadocGadoc
Introduction to Genetic Algorithms and Evolutionary Computation
Introduction to Genetic Algorithms and Evolutionary ComputationIntroduction to Genetic Algorithms and Evolutionary Computation
Introduction to Genetic Algorithms and Evolutionary Computation
Aleksander Stensby
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
Jagadish Mohanty
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Respa Peter
 

Similar to Genetic Algorithm (20)

A genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop schedulingA genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop scheduling
 
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
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
 
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-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.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 in Artificial Intelligence
Genetic Algorithms in Artificial IntelligenceGenetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial Intelligence
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
 
A Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its ApplicationsA Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its Applications
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
 
Gadoc
GadocGadoc
Gadoc
 
Introduction to Genetic Algorithms and Evolutionary Computation
Introduction to Genetic Algorithms and Evolutionary ComputationIntroduction to Genetic Algorithms and Evolutionary Computation
Introduction to Genetic Algorithms and Evolutionary Computation
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Soft computing06
Soft computing06Soft computing06
Soft computing06
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 

More from Pratheeban Rajendran

Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
Pratheeban Rajendran
 
MUTHOOT Group
MUTHOOT GroupMUTHOOT Group
MUTHOOT Group
Pratheeban Rajendran
 
Real Time Gross Settlement
Real Time Gross SettlementReal Time Gross Settlement
Real Time Gross Settlement
Pratheeban Rajendran
 
IBM Watson
IBM WatsonIBM Watson
New Generation Banking (INDIA)
New Generation Banking (INDIA)New Generation Banking (INDIA)
New Generation Banking (INDIA)
Pratheeban Rajendran
 
Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)
Pratheeban Rajendran
 

More from Pratheeban Rajendran (6)

Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
Predicting and Optimizing the End Price of an Online Auction using Genetic-Fu...
 
MUTHOOT Group
MUTHOOT GroupMUTHOOT Group
MUTHOOT Group
 
Real Time Gross Settlement
Real Time Gross SettlementReal Time Gross Settlement
Real Time Gross Settlement
 
IBM Watson
IBM WatsonIBM Watson
IBM Watson
 
New Generation Banking (INDIA)
New Generation Banking (INDIA)New Generation Banking (INDIA)
New Generation Banking (INDIA)
 
Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)
 

Recently uploaded

National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 

Recently uploaded (20)

National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 

Genetic Algorithm

  • 1. GENETIC ALGORITHM Submitted by… Pratheeban R Register Number 103478165 Date 03/11/2012 Event Seminar 1
  • 2. Agenda  Introduction  Biological Background  Search Space  Genetic Algorithm  Outline of Basic GA  Operators of GA  Crossover  Mutation  Parameters of GA  Recommendations  Application of GA  Advantage & DisAdvantage
  • 3. Introduction  Inspired by Darwin's theory about Evolution  Part of Evolutionary Computing  Rapid growing area of AI  EA Idea – I. Rechenberg – 1960 - “Evolution Strategies”  GA Invent & Develop – John Holland team – “Adaption and Artificial Systems” - 1975  John Koza – 1992 – GA to evolve programs to perform certain task – “Genetic Programming”
  • 4. Biological Background  CHROMOSOMES  Each Cell – same set of chromosomes  String of DNA & serves as model for whole organism  Consist of Genes, blocks of DNA  TRAIT - each Gene encodes a particular protein. E.g. Eye Color  ALLELES - possible settings for Trait (e.g. blue, brown)  LOCUS - each Gene’s own position in chromosome  GENOME – complete set of genetic material  GENOTYPE – particular set of genes in genome  PHENOTYPE – genotype’s physical and mental characteristics (eye color, intelligence)  REPRODUCTION  CROSSOVER (RECOMBINATION) – 1st occurs during reproduction  Genes from parents form in some way the whole new chromosome (OFFSPRING) & can be Mutated  MUTATION – elements of DNA are a bit change  This changes mainly caused by errors in copying genes from parents.  FITNESS – measured by success of the organism in life
  • 5. Search Space  Space of all feasible solutions  Each point in the search space represent one feasible solution  Each feasible solution can be "marked" by its value or fitness for the problem  Considered as good solution (not often possible to prove what is real optimum)
  • 6. Genetic Algorithm  Solution to a problem solved by genetic algorithms, is evolved  Algorithm is started with a set of solutions (represented by chromosomes) called Population  Solutions from one population are taken and used to form a new population for a better one.  Solutions which are selected to form new solutions (offspring) are selected according to their fitness - the more suitable they are the more chances they have to reproduce  Repeated until some condition is satisfied.
  • 7. Outline of the Basic Genetic Algorithm 1. [Start] Generate random population of n chromosomes (suitable solutions for the problem) 2. [Fitness] Evaluate the fitness f(x) of each chromosome x in the population 3. [New population] Create a new population by repeating following steps until the new population is complete 1. [Selection] Select two parent chromosomes from a population according to their fitness (the better fitness, the bigger chance to be selected) 2. [Crossover] With a crossover probability cross over the parents to form a new offspring (children). If no crossover was performed, offspring is an exact copy of parents. 3. [Mutation] With a mutation probability mutate new offspring at each locus (position in chromosome). 4. [Accepting] Place new offspring in a new population 4. [Replace] Use new generated population for a further run of algorithm 5. [Test] If the end condition is satisfied, stop, and return the best solution in current population 6. [Loop] Go to step 2
  • 8. Operators of GA Crossover + Mutation  Encoding of a Chromosome  represent chromosome in Binary String  each chromosome has one binary string  each bit in this string can represent some characteristic of the solution (OR)  whole string can represent a number  many ways to Encode – Depends on solved problem Chromosome 1 1101100100110110 Chromosome 2 1101111000011110
  • 9. Crossover  Selects genes from parent chromosomes  Creates a new offspring  Depends on encoding of chromosome  Specific crossover - specific problem – performance improvement of GA  New chromosomes will have good parts of old chromosomes & better Chromosome 1 11011 | 00100110110 Chromosome 1 11011 | 00100110110 Offspring 1 11011 | 11000011110 Offspring 2 11011 | 00100110110
  • 10. Mutation  Prevents falling all solutions in population into a local optimum of solved problem (local extreme)  Changes randomly the new offspring  for binary encoding, switch random chosen bit from 0 to 1 / 1 to 0  Depends on encoding & crossover  Should not occur very often, else GA will change to Random Search Original offspring 1 1101111000011110 Original offspring 2 1101100100110110 Mutated offspring 1 1100111000011110 Mutated offspring 2 1101101100110110
  • 11. Parameters of GA Probability of Crossover & Mutation  Crossover Probability  crossover performation  no crossover – offspring is exact copy of parents  if crossover – offspring is made from parts of parents  100 % - all offsprings made by crossover  0 % - exact copies of old population  Mutation Probability  chromosome mutation  no mutation – offspring crossover without any change  if mutation - part of chromosome is changed  100 % - whole chromosome change  0 % - no change
  • 12. Recommendations  Crossover rate  should be high ~ 80% - 95%.  for some problems ~ 60% is the best  Mutation rate  mutation rate should be very low.  best rates reported - 0.5% - 1%.  Population size  best population size depends on size of encoded string  very big population size usually does not improve performance of GA  good population size is about 20-30  sometimes sizes 50-100 are reported as best  32 bits chromosome – population 32  16 bits chromosome - two times more than the best population size  Selection  basic roulette wheel selection  rank selection can be better  simulated annealing – sophisticated methods  elitism should be used  try steady state selection.  Encoding  Encoding depends on the problem & size of instance of the problem.  Crossover and mutation type  Operators depend on encoding & problem.
  • 13. Applications of GA  Nonlinear dynamical systems - predicting, data analysis  Designing neural networks, both architecture and weights  Robot trajectory  Evolving LISP programs (genetic programming)  Strategy planning  Finding shape of protein molecules  TSP and sequence scheduling  Functions for creating images
  • 14. Advantage & DisAdvantage  Advantage  parallelism  travelling in a search space with more individuals so they are less likely to get stuck in a local extreme like some other methods  easy to implement  have some GA, just write new chromosome to solve another problem  same encoding - change the fitness function  DisAdvantage  computational time  slower than some other methods  choosing encoding and fitness function can be difficult  But with today’s computers it is not so big problem
  • 15. Reference  Rechenberg, Ingo (1973). Evolutionsstrategie. Stuttgart: Holzmann-Froboog. ISBN 3-7728-0373-3.  Srinivas. M and Patnaik. L, "Adaptive probabilities of crossover and mutation in genetic algorithms," IEEE Transactions on System, Man and Cybernetics, vol.24, no.4, pp.656–667, 1994.  http://www.obitko.com/tutorials/genetic-algorithms/ga-basic- description.php