SlideShare a Scribd company logo
GENETIC
ALGORITHM
@Harsh_Sinha
Presented by :
HARSHWARDHAN SINHA
(3rd SEM C.S.E 2017 -21)
SSIPMT RAIPUR
1.
This Presentation
contains only 25 slides
@Harsh_Sinha
We will see
◂ Introduction
◂ Terminology
◂ Flow chart
◂ Advantages, disadvantages
and applications.
◂ Conclude with an example
@Harsh_Sinha
GENETIC ALGORITHM
◂ Optimization Algorithm
◂ Nature inspired approach based on
Darwin’s law of “survival of the fittest” and
bio-inspired operators such as Pairing,
crossover and mutation
◂ Frequently used to find optimal or near-
optimal solutions of difficult problems
4@Harsh_Sinha
GENETIC ALGORITHM
◂ It is not an smart algorithm neither an
intelligence algorithm
Rather it reflects the changes and
response to it very quickly, so it called
Genetic algorithm.
5@Harsh_Sinha
OPTIMIZATION
◂ Optimization is the process of making
something better
◂ Finding the values of inputs in such a way
that we get the “best” output value.
6@Harsh_Sinha
TERMINOLOGY
◂ Population
◂ Chromosomes
◂ Genes
7
1 0 1 1 0 1
Population
Genes
chromosomes
Alleles
@Harsh_Sinha
BRIEF OF TERMINOLOGY
◂ Genes : A gene represents some
data.
◂ Chromosomes : A chromosome
is an array of genes. In some way
it contains information about
solution which it represents thus
it requires encoding
◂ Population: Collection of
chromosomes strings/array.
8
1 0 1 1 0 1
0 0 1 1 1 0
1 1 0 1 0 0
1 0 0 0 0 1
1 1 0 1 1 1
1 0 1 0 1 1
@Harsh_Sinha
FLOW CHART
9@Harsh_Sinha
END
GENETIC OPERATORS
◂ Selection
◂ Crossover
◂ Mutation
10@Harsh_Sinha
SELECTION
Selection individual for creating the next
generation(better generation).
In terms of CS selecting the data so to reach optimal
solution.
Selection is done by applying fitness function.
11@Harsh_Sinha
FITNESS & FITNESS FUNCTION
Fitness: The value assigned to an individual based on how far or
close an individual is from solution; greater the fitness value
better the solution it contains.
Fitness Function: A function that assigns fitness value to the
individual.It is problem specific.
12@Harsh_Sinha
FLOW CHART
13
By applying
fitness
function we
select the
most
promising
element
@Harsh_Sinha
ENDEND
HOW ARE PARENTS SELECTED?
1. Roulette wheel Selection
14
chromosomes Fitness
value
A 9.8
B 7.9
C 2.4
D 4.5
SPIN THE
WHEEL
@Harsh_Sinha
HOW ARE PARENTS SELECTED?
2. Rank Selection
Remove the concept of fitness
value while selecting a parent.
Every individual in the
population is ranked according
to their fitness.
15
chromosomes Fitness
value
Rank
A 9.8 1
B 7.9 2
C 2.4 4
D 4.5 3
@Harsh_Sinha
HOW ARE PARENTS SELECTED?
3. STOCHASTIC UNIVERSAL SAMPLING(SUS): Multiple fixed points,
all the parents are chosen in just one spin of the wheel.
4.TOURNAMENT SELECTION: Select k individuals from the
population at random and select the best out of these to become a
parent, same process is repeated for selecting the next parent.
16@Harsh_Sinha
FLOW CHART
17@Harsh_Sinha
ENDEND
CROSSOVER
Crossover is a genetic operator that combines(mates) two
chromosomes(parents) to produce a new chromosome(offspring).
The crossover operators are of many types:
1. One simple ways is one-point crossover.
2. The others are two-point, uniform, arithmetic and heuristic
crossovers.
They are selected based on the way chromosomes are encoded.
(Encoded because it is computer science and not biology.)
18@Harsh_Sinha
CROSSOVER
ONE-POINT CROSSOVER: A random crossover point is
selected and the tail of its two parents are swapped to get new
offsprings.
19
1 0 1 1 1 0 1 1
1 1 1 0 1 0 0 1
1 0 1 0 1 0 0 1
1 1 1 1 1 0 1 1
Parent Chromosomes Offspring Chromosomes
@Harsh_Sinha
FLOW CHART
20@Harsh_Sinha
ENDEND
MUTATION
◂ Small random tweak in the chromosome, to get a new solution.
Types
1. Bit-flip mutation: Select one or more random bits and flip them.
1. Swap mutation: Select two random bits and swap them.
21
0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 1
1 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0
@Harsh_Sinha
22
Determines which
individual are to be
kicked out and
which are to be
kept in the next
generation.
SURVIVOR SELECTION
@Harsh_Sinha
END
When are Genetic Algorithms Useful?
There are at least three situations where genetic algorithms are useful:
1. The objective function is not smooth (i.e., not differentiable).
2. There are multiple local optima.
3. Useful when the search space is very large and there are a large
number of parameters (the meaning of “large” keeps changing).
4. Provides a list of “good” solutions and not just a single solution
For details about each point refer to: https://www.burns-stat.com/documents/tutorials/an-introduction-to-genetic-
algorithms/
23@Harsh_Sinha
ITS APPLICATION
1. Optimized Telecommunications Routing
2. Trip, Traffic and Shipment Routing
3. Encryption and Code Breaking
4. Evolvable Hardware
5. Joke and Pun Generation
These are few of them.
For more we can refer to : https://www.brainz.org/15-real-world-applications-genetic-algorithms/
24@Harsh_Sinha
Drawbacks
1. Computationally expensive as fitness value is calculated repeatedly
2. Not suited for all problems, especially problems which are
simple and for which derivative information are available
3. GA may not converge to the optimal solutions,if not implemented
properly.
25@Harsh_Sinha
26
Thanks!
@Harsh_Sinha

More Related Content

What's hot

Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Kapil Khatiwada
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Syed Muhammad Zeejah Hashmi
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SEKHARREDDYAMBATI
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
Fatemeh Karimi
 
Genetic algorithm
Genetic algorithm Genetic algorithm
Genetic algorithm
Rabiya Khalid
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
Nobal Niraula
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
RAHUL SOLANKI
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
Atul Khanna
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithmsanas_elf
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SHIMI S L
 
Evolutionary-Algorithms.ppt
Evolutionary-Algorithms.pptEvolutionary-Algorithms.ppt
Evolutionary-Algorithms.ppt
lakshmi.ec
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
shadanalam
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Karthik Sankar
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
manalishipra
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
adil raja
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
Ishucs
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
DurgeshPratapSIngh8
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary Algorithms
Reem Alattas
 

What's hot (20)

Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic algorithm
Genetic algorithm Genetic algorithm
Genetic algorithm
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Evolutionary-Algorithms.ppt
Evolutionary-Algorithms.pptEvolutionary-Algorithms.ppt
Evolutionary-Algorithms.ppt
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary Algorithms
 

Similar to GENETIC ALGORITHM

BGA.pptx
BGA.pptxBGA.pptx
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
Priti Punia
 
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning SystemAnalysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Harshal Jain
 
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
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
RamjiChaurasiya
 
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Geoff Harcourt
 
lec3-Oct2021.pptx
lec3-Oct2021.pptxlec3-Oct2021.pptx
lec3-Oct2021.pptx
MasfiqurRahaman1
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
AbhilashJain25
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
Valerie Felton
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdf
AzmiNizar1
 
D0353027043
D0353027043D0353027043
D0353027043
inventionjournals
 
Final ppt
Final pptFinal ppt
Final ppt
Gyandeep Kansal
 
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
 

Similar to GENETIC ALGORITHM (20)

BGA.pptx
BGA.pptxBGA.pptx
BGA.pptx
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning SystemAnalysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
 
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
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
 
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
Info to Genetic Algorithms - DC Ruby Users Group 11.10.2016
 
lec3-Oct2021.pptx
lec3-Oct2021.pptxlec3-Oct2021.pptx
lec3-Oct2021.pptx
 
Document1
Document1Document1
Document1
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdf
 
D0353027043
D0353027043D0353027043
D0353027043
 
Final ppt
Final pptFinal ppt
Final ppt
 
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)
 

Recently uploaded

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

GENETIC ALGORITHM

  • 1. GENETIC ALGORITHM @Harsh_Sinha Presented by : HARSHWARDHAN SINHA (3rd SEM C.S.E 2017 -21) SSIPMT RAIPUR
  • 2. 1. This Presentation contains only 25 slides @Harsh_Sinha
  • 3. We will see ◂ Introduction ◂ Terminology ◂ Flow chart ◂ Advantages, disadvantages and applications. ◂ Conclude with an example @Harsh_Sinha
  • 4. GENETIC ALGORITHM ◂ Optimization Algorithm ◂ Nature inspired approach based on Darwin’s law of “survival of the fittest” and bio-inspired operators such as Pairing, crossover and mutation ◂ Frequently used to find optimal or near- optimal solutions of difficult problems 4@Harsh_Sinha
  • 5. GENETIC ALGORITHM ◂ It is not an smart algorithm neither an intelligence algorithm Rather it reflects the changes and response to it very quickly, so it called Genetic algorithm. 5@Harsh_Sinha
  • 6. OPTIMIZATION ◂ Optimization is the process of making something better ◂ Finding the values of inputs in such a way that we get the “best” output value. 6@Harsh_Sinha
  • 7. TERMINOLOGY ◂ Population ◂ Chromosomes ◂ Genes 7 1 0 1 1 0 1 Population Genes chromosomes Alleles @Harsh_Sinha
  • 8. BRIEF OF TERMINOLOGY ◂ Genes : A gene represents some data. ◂ Chromosomes : A chromosome is an array of genes. In some way it contains information about solution which it represents thus it requires encoding ◂ Population: Collection of chromosomes strings/array. 8 1 0 1 1 0 1 0 0 1 1 1 0 1 1 0 1 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 0 1 0 1 1 @Harsh_Sinha
  • 10. GENETIC OPERATORS ◂ Selection ◂ Crossover ◂ Mutation 10@Harsh_Sinha
  • 11. SELECTION Selection individual for creating the next generation(better generation). In terms of CS selecting the data so to reach optimal solution. Selection is done by applying fitness function. 11@Harsh_Sinha
  • 12. FITNESS & FITNESS FUNCTION Fitness: The value assigned to an individual based on how far or close an individual is from solution; greater the fitness value better the solution it contains. Fitness Function: A function that assigns fitness value to the individual.It is problem specific. 12@Harsh_Sinha
  • 13. FLOW CHART 13 By applying fitness function we select the most promising element @Harsh_Sinha ENDEND
  • 14. HOW ARE PARENTS SELECTED? 1. Roulette wheel Selection 14 chromosomes Fitness value A 9.8 B 7.9 C 2.4 D 4.5 SPIN THE WHEEL @Harsh_Sinha
  • 15. HOW ARE PARENTS SELECTED? 2. Rank Selection Remove the concept of fitness value while selecting a parent. Every individual in the population is ranked according to their fitness. 15 chromosomes Fitness value Rank A 9.8 1 B 7.9 2 C 2.4 4 D 4.5 3 @Harsh_Sinha
  • 16. HOW ARE PARENTS SELECTED? 3. STOCHASTIC UNIVERSAL SAMPLING(SUS): Multiple fixed points, all the parents are chosen in just one spin of the wheel. 4.TOURNAMENT SELECTION: Select k individuals from the population at random and select the best out of these to become a parent, same process is repeated for selecting the next parent. 16@Harsh_Sinha
  • 18. CROSSOVER Crossover is a genetic operator that combines(mates) two chromosomes(parents) to produce a new chromosome(offspring). The crossover operators are of many types: 1. One simple ways is one-point crossover. 2. The others are two-point, uniform, arithmetic and heuristic crossovers. They are selected based on the way chromosomes are encoded. (Encoded because it is computer science and not biology.) 18@Harsh_Sinha
  • 19. CROSSOVER ONE-POINT CROSSOVER: A random crossover point is selected and the tail of its two parents are swapped to get new offsprings. 19 1 0 1 1 1 0 1 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 1 Parent Chromosomes Offspring Chromosomes @Harsh_Sinha
  • 21. MUTATION ◂ Small random tweak in the chromosome, to get a new solution. Types 1. Bit-flip mutation: Select one or more random bits and flip them. 1. Swap mutation: Select two random bits and swap them. 21 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 @Harsh_Sinha
  • 22. 22 Determines which individual are to be kicked out and which are to be kept in the next generation. SURVIVOR SELECTION @Harsh_Sinha END
  • 23. When are Genetic Algorithms Useful? There are at least three situations where genetic algorithms are useful: 1. The objective function is not smooth (i.e., not differentiable). 2. There are multiple local optima. 3. Useful when the search space is very large and there are a large number of parameters (the meaning of “large” keeps changing). 4. Provides a list of “good” solutions and not just a single solution For details about each point refer to: https://www.burns-stat.com/documents/tutorials/an-introduction-to-genetic- algorithms/ 23@Harsh_Sinha
  • 24. ITS APPLICATION 1. Optimized Telecommunications Routing 2. Trip, Traffic and Shipment Routing 3. Encryption and Code Breaking 4. Evolvable Hardware 5. Joke and Pun Generation These are few of them. For more we can refer to : https://www.brainz.org/15-real-world-applications-genetic-algorithms/ 24@Harsh_Sinha
  • 25. Drawbacks 1. Computationally expensive as fitness value is calculated repeatedly 2. Not suited for all problems, especially problems which are simple and for which derivative information are available 3. GA may not converge to the optimal solutions,if not implemented properly. 25@Harsh_Sinha