SlideShare a Scribd company logo
1 of 21
GENETIC
ALGORITHM
Presented By:-
Puneet Kulyana
M.Sc. Bioinfo.3rd Sem.
JMI,NewDelhi
GA Quick Overview
Developed: USA in the
1970’s
By J. Holland,
K. DeJong, D. Goldberg
• Discrete optimizationTypically applied to:
• Not too fast
• Good heuristic for combinatorial problems
Attributed features:
• Traditionally emphasizes combining
information from good parents
(crossover)
• many variants, e.g., reproduction
models,
operators
Special Features:
What is GA??
A genetic algorithm (or GA) is a search
technique used in computing to find true or
approximate solutions to optimization and
search problems.
Genetic algorithms are categorized as
global search heuristics.
Genetic algorithms are a particular class of
evolutionary algorithms that use techniques
inspired by evolutionary biology such as
inheritance, mutation, selection, and
crossover (also called recombination).
BASIC CONCEPTS
GA converts design space into genetic space
• Works with a coding variables
• Traditional optimization techniques are deterministic in
nature, but GA uses randomized operators
• Three important aspects:
1. Definition of objective function
2. Definition and implementation of genetic representation
3. Definition and implementation of genetic operators
ENCODING
• Encoding of chromosomes is one of the problems
when one is starting to solve problem with genetic
algorithm
• There are various types of encoding used for solving
the problems
• Four types of encoding are:-
1) Binary encoding
2) Permutation encoding
3) Value encoding
4) Tree encoding
REPRESENTATION (ENCODING) EXAMPLES
Possible individual’s encoding
• Binary (Bit strings) (0101 ... 1100)
• Real numbers (43.2 -33.1 ... 0.0
89.2)
• Permutations of element (E11 E3 E7 ... E1 E15)
• Lists of rules (R1 R2 R3 ... R22 R23)
• Program elements (genetic programming)
• Octal
• Hexadecimal
• Floating-point
• Tree Representation
• Random Keys
• ... any data structure ...
SEARCH SPACE
• The space for all possible feasible solutions
• Each feasible solution can be "marked" by its value of the
fitness of the problem
• GA is started with a set of solutions called populations
• Used to form a new population
• More suitable, more chances to select
• This is repeated until best population is obtained
FITNESS FUNCTION
 Basically, a fitness function is used to evaluate
phenotypes to identify the fittest population members.
 It is a function which takes the solution as input and
produces the suitability of the solution as output
 In some cases, the fitness function and the objective
function may be the same, while in others it may be
different based on the problem.
 It measures the quality of the represented solution
 It is always problem dependent
 The fitness of a solution is measured, how best it gives
the result
 For instance, Knapsack problem
STEPS OF GENETIC ALGORITHM
• Step 1: Encoding of the problem in a binary string
• Step 2: Random generation of a population
• Step 3: Calculate fitness of each solution
• Step 4: Select pairs of parent strings based on fitness
• Step 5: Generate new string with crossover and mutation
until a new population has been produced
Repeat steps 2 to 5 until satisfying solution is obtained
OPERATORS OF GENETIC ALGORITHM
 Three Basic operators are:
1. Reproduction
2. Crossover
3. Mutation
 The new population is further evaluated and
tested for termination
 If the termination criteria are not met, the
population is iteratively operated
 One cycle of operations and the subsequent
evaluation– Generation in GA
REPRODUCTION
 Chromosomes are selected from the population to be
parents to crossover and produce offspring
 Also known as Selection Operator
 Parents are selected according to their fitness
 There are many methods to select the best chromosomes
A) Roulette Wheel Selection
B) Rank Selection
C) Tournament Selection
D) Steady State Selection
• The better the chromosomes are, the more chances to be
selected they have
CROSSOVER
Chromosomal
crossover (or crossing over)
is the exchange of genetic
material between
homologous chromosomes
Crossover usually occurs
when matching regions on
matching chromosomes
break and then reconnect
to the other chromosome.
GA OPERATORS: CROSSOVER
• Choose a random point on the two parents
• Split parents at this crossover point
• Create children by exchanging tails
• Generally setting crossover probability with a value 0.5
produces good results and its typical range id 0.3 to 1.
• E.g. Probability of crossover is 25% so 5 out of 20
chromosome will undergo crossover.
DIFFERENT KIND OF CROSSOVERS
• Sub-tour exchange
• Heuristic crossover
• Arithmetic Crossover
• Directional Crossover
• Single-point
• Double-point
• Multiple-point
• Uniform
• Matrix Crossover
• Random
• Permutation-based
• Order-based
• Position-based
• Cycle Crossover
CROSSOVER
MUTATION IN GENETIC
ALGORITHM
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.
The mutation probability is kept quite low
between 0.001 and 0.01.
Mutation alters one or more gene values
in a chromosome from initial state
DIFFERENT KIND OF MUTATION
• Uniform Mutation
• Boundary
• Non-uniform
• 1’s Complement Operator
• Logical Bitwise
• Bitwise XOR
• Bitwise OR
• Shift Operator (>>,<<)
• Masking Operator
• Inversion
• Insertion
• Displacement
• Reciprocal Exchange
APPLICATIONS
 There are various applications of genetic algorithm in
bioinformatics. Some of them are:-
1. They are used for multiple sequence alignment
2. Used for RNA structure prediction
3. Used for motif discovery
4. Used for building phylogenetic trees
5. Used for clustering to optimize a wide range of fit – funcions
6. Used for gene expression profiling analysis
7. Used for protein folding and protein/ligand docking
8. Used for operon prediction
ADVANTAGES
 Easy to understand
 Modular, separate from application
 Supports multi-objective optimization
 Easy to exploit previous or alternate solutions
 Flexible in forming building blocks for hybrid applications
 Substantial history and range of use
DISADVANTAGES
 GA requires more computational time
 It is slower than some other methods
REFERENCES
 Genetic algorithms in search, optimization, and
machine learning (Book by David E. Goldberg)
 ocw.mit.edu(MIT OPEN COURSE)
 nptel.ac.in
 www.google.com
 Neural Networks, Fuzzy Logic, Algorithms
- S. Rajasekaran
- G. A. Vijayalakshmi Pai
THANK YOU

More Related Content

What's hot

Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm pptMayank Jain
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmgarima931
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagationKrish_ver2
 
Neural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronNeural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronMostafa G. M. Mostafa
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 
Machine Learning: Introduction to Neural Networks
Machine Learning: Introduction to Neural NetworksMachine Learning: Introduction to Neural Networks
Machine Learning: Introduction to Neural NetworksFrancesco Collova'
 
Autoencoders
AutoencodersAutoencoders
AutoencodersCloudxLab
 
Introduction to Deep Learning
Introduction to Deep LearningIntroduction to Deep Learning
Introduction to Deep LearningOswald Campesato
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision treesKnoldus Inc.
 
Feed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentFeed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentMuhammad Rasel
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GAIshucs
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural networkNagarajan
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural networkSopheaktra YONG
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural NetworksAniket Maurya
 

What's hot (20)

Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagation
 
Neural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronNeural Networks: Multilayer Perceptron
Neural Networks: Multilayer Perceptron
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Machine Learning: Introduction to Neural Networks
Machine Learning: Introduction to Neural NetworksMachine Learning: Introduction to Neural Networks
Machine Learning: Introduction to Neural Networks
 
Autoencoders
AutoencodersAutoencoders
Autoencoders
 
Introduction to Deep Learning
Introduction to Deep LearningIntroduction to Deep Learning
Introduction to Deep Learning
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
Feed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentFeed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descent
 
Perceptron
PerceptronPerceptron
Perceptron
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
Structured Knowledge Representation
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge Representation
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural Networks
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
 

Similar to MACHINE LEARNING - GENETIC ALGORITHM

Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithmsshadanalam
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of gaDEEPIKA T
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4Nandhini S
 
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.pptxKelvinCheah4
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithmritambharaaatre
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptxwaqasjavaid26
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktimRaktim Halder
 
Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Raktim Halder
 
AI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfAI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfThninh2
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.pptSherazAhmed103
 
Evolutionary (deep) neural network
Evolutionary (deep) neural networkEvolutionary (deep) neural network
Evolutionary (deep) neural networkSoo-Yong Shin
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Kapil Khatiwada
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paperPriti Punia
 

Similar to MACHINE LEARNING - GENETIC ALGORITHM (20)

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
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of ga
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
 
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
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithm
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
 
CI_L11_Optimization_ag2_eng.pptx
CI_L11_Optimization_ag2_eng.pptxCI_L11_Optimization_ag2_eng.pptx
CI_L11_Optimization_ag2_eng.pptx
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP
 
AI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfAI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdf
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.ppt
 
CI_L02_Optimization_ag2_eng.pdf
CI_L02_Optimization_ag2_eng.pdfCI_L02_Optimization_ag2_eng.pdf
CI_L02_Optimization_ag2_eng.pdf
 
Evolutionary (deep) neural network
Evolutionary (deep) neural networkEvolutionary (deep) neural network
Evolutionary (deep) neural network
 
genetic computing
genetic computinggenetic computing
genetic computing
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 

Recently uploaded

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 

Recently uploaded (20)

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 

MACHINE LEARNING - GENETIC ALGORITHM

  • 2. GA Quick Overview Developed: USA in the 1970’s By J. Holland, K. DeJong, D. Goldberg • Discrete optimizationTypically applied to: • Not too fast • Good heuristic for combinatorial problems Attributed features: • Traditionally emphasizes combining information from good parents (crossover) • many variants, e.g., reproduction models, operators Special Features:
  • 3. What is GA?? A genetic algorithm (or GA) is a search technique used in computing to find true or approximate solutions to optimization and search problems. Genetic algorithms are categorized as global search heuristics. Genetic algorithms are a particular class of evolutionary algorithms that use techniques inspired by evolutionary biology such as inheritance, mutation, selection, and crossover (also called recombination).
  • 4. BASIC CONCEPTS GA converts design space into genetic space • Works with a coding variables • Traditional optimization techniques are deterministic in nature, but GA uses randomized operators • Three important aspects: 1. Definition of objective function 2. Definition and implementation of genetic representation 3. Definition and implementation of genetic operators
  • 5. ENCODING • Encoding of chromosomes is one of the problems when one is starting to solve problem with genetic algorithm • There are various types of encoding used for solving the problems • Four types of encoding are:- 1) Binary encoding 2) Permutation encoding 3) Value encoding 4) Tree encoding
  • 6. REPRESENTATION (ENCODING) EXAMPLES Possible individual’s encoding • Binary (Bit strings) (0101 ... 1100) • Real numbers (43.2 -33.1 ... 0.0 89.2) • Permutations of element (E11 E3 E7 ... E1 E15) • Lists of rules (R1 R2 R3 ... R22 R23) • Program elements (genetic programming) • Octal • Hexadecimal • Floating-point • Tree Representation • Random Keys • ... any data structure ...
  • 7. SEARCH SPACE • The space for all possible feasible solutions • Each feasible solution can be "marked" by its value of the fitness of the problem • GA is started with a set of solutions called populations • Used to form a new population • More suitable, more chances to select • This is repeated until best population is obtained
  • 8. FITNESS FUNCTION  Basically, a fitness function is used to evaluate phenotypes to identify the fittest population members.  It is a function which takes the solution as input and produces the suitability of the solution as output  In some cases, the fitness function and the objective function may be the same, while in others it may be different based on the problem.  It measures the quality of the represented solution  It is always problem dependent  The fitness of a solution is measured, how best it gives the result  For instance, Knapsack problem
  • 9. STEPS OF GENETIC ALGORITHM • Step 1: Encoding of the problem in a binary string • Step 2: Random generation of a population • Step 3: Calculate fitness of each solution • Step 4: Select pairs of parent strings based on fitness • Step 5: Generate new string with crossover and mutation until a new population has been produced Repeat steps 2 to 5 until satisfying solution is obtained
  • 10. OPERATORS OF GENETIC ALGORITHM  Three Basic operators are: 1. Reproduction 2. Crossover 3. Mutation  The new population is further evaluated and tested for termination  If the termination criteria are not met, the population is iteratively operated  One cycle of operations and the subsequent evaluation– Generation in GA
  • 11. REPRODUCTION  Chromosomes are selected from the population to be parents to crossover and produce offspring  Also known as Selection Operator  Parents are selected according to their fitness  There are many methods to select the best chromosomes A) Roulette Wheel Selection B) Rank Selection C) Tournament Selection D) Steady State Selection • The better the chromosomes are, the more chances to be selected they have
  • 12. CROSSOVER Chromosomal crossover (or crossing over) is the exchange of genetic material between homologous chromosomes Crossover usually occurs when matching regions on matching chromosomes break and then reconnect to the other chromosome.
  • 13. GA OPERATORS: CROSSOVER • Choose a random point on the two parents • Split parents at this crossover point • Create children by exchanging tails • Generally setting crossover probability with a value 0.5 produces good results and its typical range id 0.3 to 1. • E.g. Probability of crossover is 25% so 5 out of 20 chromosome will undergo crossover.
  • 14. DIFFERENT KIND OF CROSSOVERS • Sub-tour exchange • Heuristic crossover • Arithmetic Crossover • Directional Crossover • Single-point • Double-point • Multiple-point • Uniform • Matrix Crossover • Random • Permutation-based • Order-based • Position-based • Cycle Crossover
  • 16. MUTATION IN GENETIC ALGORITHM 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. The mutation probability is kept quite low between 0.001 and 0.01. Mutation alters one or more gene values in a chromosome from initial state
  • 17. DIFFERENT KIND OF MUTATION • Uniform Mutation • Boundary • Non-uniform • 1’s Complement Operator • Logical Bitwise • Bitwise XOR • Bitwise OR • Shift Operator (>>,<<) • Masking Operator • Inversion • Insertion • Displacement • Reciprocal Exchange
  • 18. APPLICATIONS  There are various applications of genetic algorithm in bioinformatics. Some of them are:- 1. They are used for multiple sequence alignment 2. Used for RNA structure prediction 3. Used for motif discovery 4. Used for building phylogenetic trees 5. Used for clustering to optimize a wide range of fit – funcions 6. Used for gene expression profiling analysis 7. Used for protein folding and protein/ligand docking 8. Used for operon prediction
  • 19. ADVANTAGES  Easy to understand  Modular, separate from application  Supports multi-objective optimization  Easy to exploit previous or alternate solutions  Flexible in forming building blocks for hybrid applications  Substantial history and range of use DISADVANTAGES  GA requires more computational time  It is slower than some other methods
  • 20. REFERENCES  Genetic algorithms in search, optimization, and machine learning (Book by David E. Goldberg)  ocw.mit.edu(MIT OPEN COURSE)  nptel.ac.in  www.google.com  Neural Networks, Fuzzy Logic, Algorithms - S. Rajasekaran - G. A. Vijayalakshmi Pai

Editor's Notes

  1. Mutation probability (or ratio) is basically a measure of the likeness that random elements of your chromosome will be flipped into something else. For example if your chromosome is encoded as a binary string of length 100 if you have 1% mutation probability it means that 1 out of your 100 bits (on average) picked at random will be flipped. Crossover basically simulates genetic recombination (as in human reproduction) and there are a number of ways it is usually implemented in GAs. Sometimes crossover is applied with moderation in GAs (as it breaks symmetry, which is not always good, and you could also go blind) so we talk about crossover probability to indicate a ratio of how many couples will be picked for mating.