SlideShare a Scribd company logo
Genetic Algorithm (GA)
Presented by :
A. SEKHAR REDDY
M.S. (Pharm.) semester-II
Reg.No:20PIM3277
Department of Pharmacoinformatics
NIPER , S.A.S. nagar (Mohali), Punjab,India
"Survival of the fittest" - Darwin
Genetic Algorithm
• In computer science , a genetic algorithm (GA) is a metaheuristic inspired by the
process of natural selection and genetics that belongs to the larger class of
evolutionary algorithms (EA)
• GAs were developed by John Holland
• Genetic algorithms are commonly used to generate high-quality solutions to
optimization and search problems by relying on biologically inspired operators such
as mutation, crossover and selection
• It is frequently used to find optimal or near-optimal solutions to difficult problems
which otherwise would take a lifetime to solve
2
Optimization
• Optimization is the process of making something better. In any process, we have a
set of inputs and a set of outputs as shown in the following figure.
• Optimization refers to finding the values of inputs in such a way that we get the
best output values.
• GA is frequently used to solve optimization problems, in research, and in machine
learning
3
Basic Terminology
• Population − It is a subset of all the possible (encoded) solutions to the given
problem. The population for a GA is analogous to the population for human beings
except that instead of human beings, we have Candidate Solutions representing
human beings
• Chromosomes − A chromosome is one such solution to the given problem
• Gene − A gene is one element position of a chromosome
• Allele − It is the value of a gene takes for a particular chromosome
4
5
6
GENETIC ALOGORITHM TRADITIONAL ALOGORITHM
based on genetics and natural
selection to solve optimization
problems
step by step procedure to solve a
given problem
most advanced not as advanced
used in fields like AI , ML used in fields like programming
and mathematics
based on probabilistic rules based on fully deterministic rules
search on population of points search on single point
Components of GA
A problem definition as input, and
• Encoding principles (gene, chromosome)
• Initialization procedure (creation)
• Selection of parents (reproduction)
• Genetic operators (mutation, recombination)
• Evaluation function (environment)
• Termination condition
7
8
Flow Chart of Genetic Algorithm
9
• GA uses three main types of rules at each step to create the
next generation from the current population
1. Selection
2. Cross Over
3. Mutation
Selection
• Selection is the stage of a genetic algorithm in which individual genomes
are chosen from a population for later breeding (using the crossover
operator)
• we always have to select the best two to generate the next best of all
11
Methods of Selection
11
1. Roulette Wheel Selection : In the roulette wheel selection, the probability of
choosing an individual for breeding of the next generation is proportional to its fitness,
the better the fitness is, the higher chance for that individual to be chosen
2. Rank Selection : Rank Selection also works with negative fitness values and is
mostly used when the individuals in the population have very close fitness values (this
happens usually at the end of the run)
3. Steady State Selection :
• This is not a particular method of selecting parents. Main idea of this
selection is that big part of chromosomes should survive to next generation.
4. Tournament selection :
• It is a method of selecting an individual from a population of individuals in a
genetic algorithm. Tournament selection involves running several
"tournaments" among a few individuals (or "chromosomes") chosen at
random from the population
12
Crossover
• In genetic algorithms and evolutionary computation, crossover, also called
recombination, is a genetic operator used to combine the genetic information of
two parents to generate new offspring
• It is one way to generate new solutions from an existing population
• Newly generated solutions are typically mutated before being added to the
population
13
Types of crossover
14
1. One-point crossover : A point on both parents' chromosomes is picked randomly, and
designated a 'crossover point'. Bits to the right of that point are swapped between the two
parent chromosomes. This results in two offspring, each carrying some genetic
information from both parents
2. Two-point crossover : In two-point crossover, two crossover points are picked
randomly from the parent chromosomes. The bits in between the two points are swapped
between the parent organisms.
3. Multi-point crossover : Two-point crossover strategy can be generalized to multi-
point crossover for any positive integer n , picking n crossover points
4. Uniform crossover : In this each bit is chosen from either parent with equal
probability. Other mixing ratios are sometimes used, resulting in offspring which inherit
more genetic information from one parent than the other
15
Mutation
• Mutation is a genetic operator used to maintain genetic diversity from one generation
of a population of genetic algorithm chromosomes to the next.
• It is analogous to biological mutation. Mutation alters one or more gene values in a
chromosome from its initial state.
• In mutation, the solution may change entirely from the previous solution.
• Hence GA can come to a better solution by using mutation. Mutation occurs during
evolution according to a user-definable mutation probability. This probability should
be set low. If it is set too high, the search will turn into a primitive random search.
16
Types of Mutation
• Bit Flip Mutation : In this bit flip mutation, we select one or more random bits
and flip them. This is used for binary encoded GAs.
• Random Resetting : Random Resetting is an extension of the bit flip for the
integer representation. In this, a random value from the set of permissible values is
assigned to a randomly chosen gene.
17
• Scramble Mutation : It 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
• Swap Mutation : In this we select two positions on the chromosome at random, and
interchange the values. This is common in permutation based encodings
• Inversion Mutation : In this 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
18
Termination
This generational process is repeated until a termination condition has been reached.
Common terminating conditions are:
• A solution is found that satisfies minimum criteria
• Fixed number of generations reached
• The highest ranking solution's fitness is reaching or has reached a plateau such
that successive iterations no longer produce better results
• Manual inspection
• Combinations of the above
19
Advantages of GA
• The concept is easy to understand
• GA search from a population of points , not a single point
• GA supports multi-objective optimization
• GA use probablistic transition rules, not deterministic rules
• GA is easily parallelised
• GA is stochastic
• GA work well on mixed discrete/continuous problem
20
Disadvantages of GA
• GA implementation is still an art
• GA requires less information about the problem , but designing an objective
function and getting the representation and operators right can be difficult
• GA is computationally expensive i.e.time-consuming
• GA is slower than some other methods
21
Genetic Algorithms - Application
• Neural Networks − GAs are also used to train neural networks, particularly recurrent
neural networks
• Parallelization − GAs also have very good parallel capabilities, and prove to be very
effective means in solving certain problems, and also provide a good area for research
• Machine Learning - genetics based machine learning (GBML) is a niche area in
machine learning.
• Traveling salesman problem − GAs have been used to solve the TSP, which is a well-
known combinatorial problem using novel crossover
22
Thank you

More Related Content

What's hot

Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Karthik Sankar
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
rabidityfactor
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Ahmed Othman
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Premsankar Chakkingal
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Jari Abbas
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
shadanalam
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
Mayank Jain
 
Ga
GaGa
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
Nobal Niraula
 
Fuzzy Genetic Algorithm
Fuzzy Genetic AlgorithmFuzzy Genetic Algorithm
Fuzzy Genetic Algorithm
Pintu Khan
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
RAHUL SOLANKI
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
Ahmed Gad
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Shruti Railkar
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Megha V
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
Bhushan Mohite
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
Ahmed Fouad Ali
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
Akhil Kaushik
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Syed Muhammad Zeejah Hashmi
 

What's hot (20)

Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
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 algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
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 algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Ga
GaGa
Ga
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
 
Fuzzy Genetic Algorithm
Fuzzy Genetic AlgorithmFuzzy Genetic Algorithm
Fuzzy Genetic Algorithm
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 

Similar to Genetic Algorithm

BGA.pptx
BGA.pptxBGA.pptx
Clustering using GA and Hill-climbing
Clustering using GA and Hill-climbingClustering using GA and Hill-climbing
Clustering using GA and Hill-climbing
Fatemeh Karimi
 
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
 
Document1
Document1Document1
Document1
shruti0293
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
Atul Khanna
 
Evolutionary (deep) neural network
Evolutionary (deep) neural networkEvolutionary (deep) neural network
Evolutionary (deep) neural network
Soo-Yong Shin
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptx
KelvinCheah4
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of ga
DEEPIKA T
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
Sadhana Singh
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
waqasjavaid26
 
Genetic algorithms mahyar
Genetic algorithms   mahyarGenetic algorithms   mahyar
Genetic algorithms mahyar
Mahyar Teymournezhad
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
Priti Punia
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
Ahmad Almubarrok
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
DurgeshPratapSIngh8
 
Ga presentation
Ga presentationGa presentation
Ga presentation
ziad zohdy
 
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
 

Similar to Genetic Algorithm (20)

BGA.pptx
BGA.pptxBGA.pptx
BGA.pptx
 
Clustering using GA and Hill-climbing
Clustering using GA and Hill-climbingClustering using GA and Hill-climbing
Clustering using GA and Hill-climbing
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
 
Document1
Document1Document1
Document1
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
Evolutionary (deep) neural network
Evolutionary (deep) neural networkEvolutionary (deep) neural network
Evolutionary (deep) neural network
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptx
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of ga
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
 
Genetic algorithms mahyar
Genetic algorithms   mahyarGenetic algorithms   mahyar
Genetic algorithms mahyar
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Ga presentation
Ga presentationGa presentation
Ga presentation
 
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
 

Recently uploaded

Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 

Recently uploaded (20)

Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 

Genetic Algorithm

  • 1. Genetic Algorithm (GA) Presented by : A. SEKHAR REDDY M.S. (Pharm.) semester-II Reg.No:20PIM3277 Department of Pharmacoinformatics NIPER , S.A.S. nagar (Mohali), Punjab,India "Survival of the fittest" - Darwin
  • 2. Genetic Algorithm • In computer science , a genetic algorithm (GA) is a metaheuristic inspired by the process of natural selection and genetics that belongs to the larger class of evolutionary algorithms (EA) • GAs were developed by John Holland • Genetic algorithms are commonly used to generate high-quality solutions to optimization and search problems by relying on biologically inspired operators such as mutation, crossover and selection • It is frequently used to find optimal or near-optimal solutions to difficult problems which otherwise would take a lifetime to solve 2
  • 3. Optimization • Optimization is the process of making something better. In any process, we have a set of inputs and a set of outputs as shown in the following figure. • Optimization refers to finding the values of inputs in such a way that we get the best output values. • GA is frequently used to solve optimization problems, in research, and in machine learning 3
  • 4. Basic Terminology • Population − It is a subset of all the possible (encoded) solutions to the given problem. The population for a GA is analogous to the population for human beings except that instead of human beings, we have Candidate Solutions representing human beings • Chromosomes − A chromosome is one such solution to the given problem • Gene − A gene is one element position of a chromosome • Allele − It is the value of a gene takes for a particular chromosome 4
  • 5. 5
  • 6. 6 GENETIC ALOGORITHM TRADITIONAL ALOGORITHM based on genetics and natural selection to solve optimization problems step by step procedure to solve a given problem most advanced not as advanced used in fields like AI , ML used in fields like programming and mathematics based on probabilistic rules based on fully deterministic rules search on population of points search on single point
  • 7. Components of GA A problem definition as input, and • Encoding principles (gene, chromosome) • Initialization procedure (creation) • Selection of parents (reproduction) • Genetic operators (mutation, recombination) • Evaluation function (environment) • Termination condition 7
  • 8. 8 Flow Chart of Genetic Algorithm
  • 9. 9 • GA uses three main types of rules at each step to create the next generation from the current population 1. Selection 2. Cross Over 3. Mutation
  • 10. Selection • Selection is the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding (using the crossover operator) • we always have to select the best two to generate the next best of all 11
  • 11. Methods of Selection 11 1. Roulette Wheel Selection : In the roulette wheel selection, the probability of choosing an individual for breeding of the next generation is proportional to its fitness, the better the fitness is, the higher chance for that individual to be chosen 2. Rank Selection : Rank Selection also works with negative fitness values and is mostly used when the individuals in the population have very close fitness values (this happens usually at the end of the run)
  • 12. 3. Steady State Selection : • This is not a particular method of selecting parents. Main idea of this selection is that big part of chromosomes should survive to next generation. 4. Tournament selection : • It is a method of selecting an individual from a population of individuals in a genetic algorithm. Tournament selection involves running several "tournaments" among a few individuals (or "chromosomes") chosen at random from the population 12
  • 13. Crossover • In genetic algorithms and evolutionary computation, crossover, also called recombination, is a genetic operator used to combine the genetic information of two parents to generate new offspring • It is one way to generate new solutions from an existing population • Newly generated solutions are typically mutated before being added to the population 13
  • 14. Types of crossover 14 1. One-point crossover : A point on both parents' chromosomes is picked randomly, and designated a 'crossover point'. Bits to the right of that point are swapped between the two parent chromosomes. This results in two offspring, each carrying some genetic information from both parents 2. Two-point crossover : In two-point crossover, two crossover points are picked randomly from the parent chromosomes. The bits in between the two points are swapped between the parent organisms.
  • 15. 3. Multi-point crossover : Two-point crossover strategy can be generalized to multi- point crossover for any positive integer n , picking n crossover points 4. Uniform crossover : In this each bit is chosen from either parent with equal probability. Other mixing ratios are sometimes used, resulting in offspring which inherit more genetic information from one parent than the other 15
  • 16. Mutation • Mutation is a genetic operator used to maintain genetic diversity from one generation of a population of genetic algorithm chromosomes to the next. • It is analogous to biological mutation. Mutation alters one or more gene values in a chromosome from its initial state. • In mutation, the solution may change entirely from the previous solution. • Hence GA can come to a better solution by using mutation. Mutation occurs during evolution according to a user-definable mutation probability. This probability should be set low. If it is set too high, the search will turn into a primitive random search. 16
  • 17. Types of Mutation • Bit Flip Mutation : In this bit flip mutation, we select one or more random bits and flip them. This is used for binary encoded GAs. • Random Resetting : Random Resetting is an extension of the bit flip for the integer representation. In this, a random value from the set of permissible values is assigned to a randomly chosen gene. 17
  • 18. • Scramble Mutation : It 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 • Swap Mutation : In this we select two positions on the chromosome at random, and interchange the values. This is common in permutation based encodings • Inversion Mutation : In this 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 18
  • 19. Termination This generational process is repeated until a termination condition has been reached. Common terminating conditions are: • A solution is found that satisfies minimum criteria • Fixed number of generations reached • The highest ranking solution's fitness is reaching or has reached a plateau such that successive iterations no longer produce better results • Manual inspection • Combinations of the above 19
  • 20. Advantages of GA • The concept is easy to understand • GA search from a population of points , not a single point • GA supports multi-objective optimization • GA use probablistic transition rules, not deterministic rules • GA is easily parallelised • GA is stochastic • GA work well on mixed discrete/continuous problem 20
  • 21. Disadvantages of GA • GA implementation is still an art • GA requires less information about the problem , but designing an objective function and getting the representation and operators right can be difficult • GA is computationally expensive i.e.time-consuming • GA is slower than some other methods 21
  • 22. Genetic Algorithms - Application • Neural Networks − GAs are also used to train neural networks, particularly recurrent neural networks • Parallelization − GAs also have very good parallel capabilities, and prove to be very effective means in solving certain problems, and also provide a good area for research • Machine Learning - genetics based machine learning (GBML) is a niche area in machine learning. • Traveling salesman problem − GAs have been used to solve the TSP, which is a well- known combinatorial problem using novel crossover 22