SlideShare a Scribd company logo
1 of 25
GENETIC
ALGORITMS
By:
Saloni Bhatia Dutta
Defination
 GA are heuristic search algorithms based
on the evolutionary ideas of natural
selection and genetics.
 Exploit historical information to direct the
search into the region of better performance
within the search space.
 Follows the principles of Charles Darwin, “
survival of fittest”
Why GA ?
 More robust
 Do not break easily even if inputs are changed
slightly or in presence of reasonable noise.
 Provide significant benefits over typical
optimization techniques.
Basic Terminologies
1. INDIVIDUALS:
 Single Solution
Solutions
Genotype
(chromosome)
Genes
Phenotype
(model form of
chromosomes)
SOLUTION SET PHENOTYPE
Factor
1
Factor
2
Factor
3
Factor
4
……….. Factor
N
Gene 1 Gene 2 Gene
3
Gene 4 …………. Gene N
CHROMOSOME GENOTYPE
Morphogenes
is Function
NOTE: When different chromosomes can encode the
same
solution it is called degenerative Morphogenesis
Function
2. GENES:
 A possible solution to a problem.
 Binary representation(bit string) of number of
intervals of arbitary length.
Phenotype Parameter: instructions for mapping
between genotype and phenotype.
CHROMOSOME
Gene 1 Gene 2 Gene 3 Gene 4 Gene 5
10101 11101 10000 01100 00001
3. Fitness:
 Value of objective funtion for its phenotype.
 Indicates goodness of solution.
 Also indicates how close the solution is to optimal
one.
4. Populations:
 Collection of individuals.
Two aspects of population are considered:
1) Initial population generation
2) Population size
SIMPLE GA
Reproduction operator:
Used to perform mutations and recombinations over
solutions of the problem.
Steps:
1. Start with randomly generated population.
2. Calculate fitness of each chromosome.
3. Repeat the following steps until n offsprings have
been created.
 Select a pair of parent chromosomes from the
current population.
 With probability Pc crossover the pair at a
randomly chosen point to form two offsprings.
 Mutate the two offsprings at each locus with
probability Pm.
4. Replace the current population with the new
population.
5. Goto step 2.
GENERAL GA
STAR
T
Initial
Population
Selection
Mutationn
Crossover
Termin
ate ?
No
Yes
Best Individuals
Output
STOP
Operators
1. Encoding: process of representing individual
genes.
Encoding
Binary Octal
Hexa
decim
al
Perm
utatio
n
Value Tree
Chromo. 1
110100011
Chromo. 2
0111111
Chromo.1
03467216
Chromo. 2
15723314
Chromo.1
9CE7
Chromo. 2
3DBA
Chromo.1
15326479
8
Chromo. 2
86794123
5
Chromo.1
1.245 5.346
Chromo. 2
ABCHJDEK
SJ
2. Selection:
Process of choosing two parents from the population
for
crossing.
Techniques:
1. Roulette Wheel Selection:
 Sum the total expected value of the individuals in
the population. Let it be T.
 Repeat N times:
1. Choose a random integer “r” between 0 and T.
2. Loop through the individuals in the population
summing the expected values, until the sum is
greater than or equal to “r”. The individual whose
expected value puts the sum over this limit is the
one selected.
2. Random Selection:
Selects a parent from the population.
3. Rank Selection:
 Ranks the population and every chromosome
receives
Fitness from the ranking.
 Worst has fitness 1 and best has N.
4. Tournament Selection:
Provides selective pressure strategy by holding a
tournament competition between Nu individuals.
5. Boltzmann Selection:
A continuously varying temperature controls the rate
of
selection according to a preset schedule. The temp.
is high
which means that selection pressure is low. Temp. is
gradually lowered which gradually increases the
selection
pressure thereby allowing GA to converge to the
best
part of search space.
6. Stochastic Universal Sampling:
Provides zero bias and minimum spread. The
individuals
are mapped to contiguous segement of a line, such
3. Crossover(Recombination):
Process of taking two parent solutions and producing a
child.
1. Single-Point Crossover:
Parent 1 10110010 Child 1 10110111
Parent 2 10101111 Child 2 10101010
2. Two-Point Crossover:
Parent 1 10110010 Child 1 10101111
Parent 2 10101111 Child 2 10110010
3. Multipoint Crossover(N-Point Crossover):
Even number of cross sites where cross-sites are selected
around circle.
Odd number of cross sites where different cross-sites is
assumed at string beginning.
4. Uniform Crossover:
Parent 1 10110011
Parent 2 00011010
Mask 11010110
Child 1 10011010
Child 2 00110011
5. Crossover with Reduced Surrogate:
Restrict location of crossover points.
6. Shuffle Crossover:
Similar to single crossover but before exchange
variables are shuffled.
7. Three-Parent Crossover:
Parent 1 10110011
Parent 2 00011010
Parent 3 11010110
Child 1 10010010
8. Precedence Preservative Crossover:
Operator passes on precedence relations of
operation given in two parental permutation to one
offsprings at the same rate, while no new
precendence relations are introduced.
9. Ordered Crossover:
Parent 1 42 13 65 Child 1 42 31 65
Parent 2 23 14 56 Child 2 23 41 56
10. Partially Matched Crossover:
 Two chromosomes are aligned.
 Two crossing sites are selected uniformly at
random along the strings, defining a matching
section.
 The matching section is used to effect a cross
through position-by-position exchange operation.
 Alleles are moved to their new positions in the
offspring.
11. Crossover Probability:
Is a parameter to describe how often crossover will
be
performed. If there is no crossover, offsprings are
exact
copies of parents. Offsprings are made from parts of
4. Mutation:
 Recovering the lost genetic material as well as
randomly distribute genetic information.
Mutation
Flipping Interchanging Reversing
Mutation
Prob.
Parent 1011
0101
Mutation
Chromo.
1000
1001
Child 0011
1100
Paren
t
10110101
Child 11110001
Paren
t
10110101
Child 10110110
Stopping Condition for GA
1. Maximum Generation
2. Elapsed Time
3. No change in Fitness
4. Stall generation
5. Stall time limit
Stopping Techniques
 Best Individual
 Worst Individual
 Sum of Fitness
 Median Fitness
Problem
Q. Maximize the function
f(x)=x^2
String
No.
Initial
Popula
tion
X
value
Fitnes
s
F(x)
Prob. %
Prob.
Expect
ed
count
Actual
Count
1 01100 12 144 0.1247 12.47 0.4987 1
2 11001 25 625 0.5411 54.11 2.1645 2
3 00101 5 25 0.0216 2.16 0.0866 0
4 10011 19 361 0.3126 31.26 1.2502 1
sum 1155 1.000 100 4.00 4
averag
e
288.75 0.25 25 1.00 1
Max. 625 0.5411 54.11 2.16 2
Selection:
String
No.
Mating
Pool
Crossove
r point
Offspring
after
crossover
X value Fitness
value
1 01100 4 01101 13 169
2 11001 4 11000 24 576
3 11001 2 11011 27 729
4 10011 2 10001 17 289
Sum 1763
Average 440.75
maximum 729
Crossover
Mutation
String
No.
Offsprin
g after
crossove
r
Mutation
Chromo.
For
flipping
Offspring
after
mutation
X value Fitness
value
1 01101 10000 11101 29 841
2 11000 00000 11000 24 576
3 11011 00000 11011 27 729
4 10001 00100 10101 20 400
Sum 2546
Average 636.5
maximum 841
Thank You

More Related Content

What's hot

Introduction to XGboost
Introduction to XGboostIntroduction to XGboost
Introduction to XGboostShuai Zhang
 
Research of adversarial example on a deep neural network
Research of adversarial example on a deep neural networkResearch of adversarial example on a deep neural network
Research of adversarial example on a deep neural networkNAVER Engineering
 
Continual learning: Survey
Continual learning: SurveyContinual learning: Survey
Continual learning: SurveyWonjun Jeong
 
Random Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityRandom Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityMahbubur Rahman
 
Model-Based Reinforcement Learning @NIPS2017
Model-Based Reinforcement Learning @NIPS2017Model-Based Reinforcement Learning @NIPS2017
Model-Based Reinforcement Learning @NIPS2017mooopan
 
Entity embeddings for categorical data
Entity embeddings for categorical dataEntity embeddings for categorical data
Entity embeddings for categorical dataPaul Skeie
 
Görüntü i̇şlemede makine öğrenme teknikleri
Görüntü i̇şlemede makine öğrenme teknikleriGörüntü i̇şlemede makine öğrenme teknikleri
Görüntü i̇şlemede makine öğrenme teknikleriTalha Kabakus
 
Lattice Cryptography
Lattice CryptographyLattice Cryptography
Lattice CryptographyPriyanka Aash
 
Hyperparameter Optimization with Hyperband Algorithm
Hyperparameter Optimization with Hyperband AlgorithmHyperparameter Optimization with Hyperband Algorithm
Hyperparameter Optimization with Hyperband AlgorithmDeep Learning Italia
 
Understanding Deep Learning Requires Rethinking Generalization
Understanding Deep Learning Requires Rethinking GeneralizationUnderstanding Deep Learning Requires Rethinking Generalization
Understanding Deep Learning Requires Rethinking GeneralizationAhmet Kuzubaşlı
 
Review of Liao et al - A draft human pangenome reference - Nature (2023)
Review of Liao et al - A draft human pangenome reference - Nature (2023)Review of Liao et al - A draft human pangenome reference - Nature (2023)
Review of Liao et al - A draft human pangenome reference - Nature (2023)Stuart MacGowan
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Kapil Khatiwada
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyayabhishek upadhyay
 
Recurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: TheoryRecurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: TheoryAndrii Gakhov
 
Deep Generative Models
Deep Generative ModelsDeep Generative Models
Deep Generative ModelsMijung Kim
 

What's hot (20)

Mes iot ai in smart factory
Mes iot ai in smart factoryMes iot ai in smart factory
Mes iot ai in smart factory
 
Introduction to XGboost
Introduction to XGboostIntroduction to XGboost
Introduction to XGboost
 
Research of adversarial example on a deep neural network
Research of adversarial example on a deep neural networkResearch of adversarial example on a deep neural network
Research of adversarial example on a deep neural network
 
Continual learning: Survey
Continual learning: SurveyContinual learning: Survey
Continual learning: Survey
 
Random Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityRandom Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network Security
 
Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector Machine
 
Google TPU
Google TPUGoogle TPU
Google TPU
 
Model-Based Reinforcement Learning @NIPS2017
Model-Based Reinforcement Learning @NIPS2017Model-Based Reinforcement Learning @NIPS2017
Model-Based Reinforcement Learning @NIPS2017
 
Entity embeddings for categorical data
Entity embeddings for categorical dataEntity embeddings for categorical data
Entity embeddings for categorical data
 
Görüntü i̇şlemede makine öğrenme teknikleri
Görüntü i̇şlemede makine öğrenme teknikleriGörüntü i̇şlemede makine öğrenme teknikleri
Görüntü i̇şlemede makine öğrenme teknikleri
 
Lattice Cryptography
Lattice CryptographyLattice Cryptography
Lattice Cryptography
 
Hyperparameter Optimization with Hyperband Algorithm
Hyperparameter Optimization with Hyperband AlgorithmHyperparameter Optimization with Hyperband Algorithm
Hyperparameter Optimization with Hyperband Algorithm
 
Understanding Deep Learning Requires Rethinking Generalization
Understanding Deep Learning Requires Rethinking GeneralizationUnderstanding Deep Learning Requires Rethinking Generalization
Understanding Deep Learning Requires Rethinking Generalization
 
Review of Liao et al - A draft human pangenome reference - Nature (2023)
Review of Liao et al - A draft human pangenome reference - Nature (2023)Review of Liao et al - A draft human pangenome reference - Nature (2023)
Review of Liao et al - A draft human pangenome reference - Nature (2023)
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)
 
Lec3 dqn
Lec3 dqnLec3 dqn
Lec3 dqn
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyay
 
nnUNet
nnUNetnnUNet
nnUNet
 
Recurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: TheoryRecurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: Theory
 
Deep Generative Models
Deep Generative ModelsDeep Generative Models
Deep Generative Models
 

Similar to Genetic

Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithmHEENA GUPTA
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalAnggi Andriyadi
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdfAzmiNizar1
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmszamakhan
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Adaptive Molecular Evolution (dN/dS). 2011
Adaptive Molecular Evolution (dN/dS). 2011Adaptive Molecular Evolution (dN/dS). 2011
Adaptive Molecular Evolution (dN/dS). 2011Hernán Dopazo
 
Neutral theory 2019
Neutral theory 2019Neutral theory 2019
Neutral theory 2019RanajitDas12
 
Practical Genetic Algorithms
Practical Genetic AlgorithmsPractical Genetic Algorithms
Practical Genetic AlgorithmsJulian Bunn
 
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
 
Solving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmSolving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmLahiru Dilshan
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsguest9938738
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar SemwalIIIT Allahabad
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.pptRamjiChaurasiya
 

Similar to Genetic (20)

Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm Fundamental
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdf
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Ga
GaGa
Ga
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Adaptive Molecular Evolution (dN/dS). 2011
Adaptive Molecular Evolution (dN/dS). 2011Adaptive Molecular Evolution (dN/dS). 2011
Adaptive Molecular Evolution (dN/dS). 2011
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Neutral theory 2019
Neutral theory 2019Neutral theory 2019
Neutral theory 2019
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 
Practical Genetic Algorithms
Practical Genetic AlgorithmsPractical Genetic Algorithms
Practical Genetic Algorithms
 
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
 
Solving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmSolving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithm
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
RM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lectureRM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lecture
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

Genetic

  • 2. Defination  GA are heuristic search algorithms based on the evolutionary ideas of natural selection and genetics.  Exploit historical information to direct the search into the region of better performance within the search space.  Follows the principles of Charles Darwin, “ survival of fittest”
  • 3. Why GA ?  More robust  Do not break easily even if inputs are changed slightly or in presence of reasonable noise.  Provide significant benefits over typical optimization techniques.
  • 4. Basic Terminologies 1. INDIVIDUALS:  Single Solution Solutions Genotype (chromosome) Genes Phenotype (model form of chromosomes)
  • 5. SOLUTION SET PHENOTYPE Factor 1 Factor 2 Factor 3 Factor 4 ……….. Factor N Gene 1 Gene 2 Gene 3 Gene 4 …………. Gene N CHROMOSOME GENOTYPE Morphogenes is Function NOTE: When different chromosomes can encode the same solution it is called degenerative Morphogenesis Function
  • 6. 2. GENES:  A possible solution to a problem.  Binary representation(bit string) of number of intervals of arbitary length. Phenotype Parameter: instructions for mapping between genotype and phenotype. CHROMOSOME Gene 1 Gene 2 Gene 3 Gene 4 Gene 5 10101 11101 10000 01100 00001
  • 7. 3. Fitness:  Value of objective funtion for its phenotype.  Indicates goodness of solution.  Also indicates how close the solution is to optimal one. 4. Populations:  Collection of individuals. Two aspects of population are considered: 1) Initial population generation 2) Population size
  • 8. SIMPLE GA Reproduction operator: Used to perform mutations and recombinations over solutions of the problem. Steps: 1. Start with randomly generated population. 2. Calculate fitness of each chromosome. 3. Repeat the following steps until n offsprings have been created.  Select a pair of parent chromosomes from the current population.
  • 9.  With probability Pc crossover the pair at a randomly chosen point to form two offsprings.  Mutate the two offsprings at each locus with probability Pm. 4. Replace the current population with the new population. 5. Goto step 2.
  • 11. Operators 1. Encoding: process of representing individual genes. Encoding Binary Octal Hexa decim al Perm utatio n Value Tree Chromo. 1 110100011 Chromo. 2 0111111 Chromo.1 03467216 Chromo. 2 15723314 Chromo.1 9CE7 Chromo. 2 3DBA Chromo.1 15326479 8 Chromo. 2 86794123 5 Chromo.1 1.245 5.346 Chromo. 2 ABCHJDEK SJ
  • 12. 2. Selection: Process of choosing two parents from the population for crossing. Techniques: 1. Roulette Wheel Selection:  Sum the total expected value of the individuals in the population. Let it be T.  Repeat N times: 1. Choose a random integer “r” between 0 and T. 2. Loop through the individuals in the population summing the expected values, until the sum is greater than or equal to “r”. The individual whose expected value puts the sum over this limit is the one selected.
  • 13. 2. Random Selection: Selects a parent from the population. 3. Rank Selection:  Ranks the population and every chromosome receives Fitness from the ranking.  Worst has fitness 1 and best has N. 4. Tournament Selection: Provides selective pressure strategy by holding a tournament competition between Nu individuals.
  • 14. 5. Boltzmann Selection: A continuously varying temperature controls the rate of selection according to a preset schedule. The temp. is high which means that selection pressure is low. Temp. is gradually lowered which gradually increases the selection pressure thereby allowing GA to converge to the best part of search space. 6. Stochastic Universal Sampling: Provides zero bias and minimum spread. The individuals are mapped to contiguous segement of a line, such
  • 15. 3. Crossover(Recombination): Process of taking two parent solutions and producing a child. 1. Single-Point Crossover: Parent 1 10110010 Child 1 10110111 Parent 2 10101111 Child 2 10101010 2. Two-Point Crossover: Parent 1 10110010 Child 1 10101111 Parent 2 10101111 Child 2 10110010 3. Multipoint Crossover(N-Point Crossover): Even number of cross sites where cross-sites are selected around circle. Odd number of cross sites where different cross-sites is assumed at string beginning.
  • 16. 4. Uniform Crossover: Parent 1 10110011 Parent 2 00011010 Mask 11010110 Child 1 10011010 Child 2 00110011 5. Crossover with Reduced Surrogate: Restrict location of crossover points. 6. Shuffle Crossover: Similar to single crossover but before exchange variables are shuffled.
  • 17. 7. Three-Parent Crossover: Parent 1 10110011 Parent 2 00011010 Parent 3 11010110 Child 1 10010010 8. Precedence Preservative Crossover: Operator passes on precedence relations of operation given in two parental permutation to one offsprings at the same rate, while no new precendence relations are introduced. 9. Ordered Crossover: Parent 1 42 13 65 Child 1 42 31 65 Parent 2 23 14 56 Child 2 23 41 56
  • 18. 10. Partially Matched Crossover:  Two chromosomes are aligned.  Two crossing sites are selected uniformly at random along the strings, defining a matching section.  The matching section is used to effect a cross through position-by-position exchange operation.  Alleles are moved to their new positions in the offspring. 11. Crossover Probability: Is a parameter to describe how often crossover will be performed. If there is no crossover, offsprings are exact copies of parents. Offsprings are made from parts of
  • 19. 4. Mutation:  Recovering the lost genetic material as well as randomly distribute genetic information. Mutation Flipping Interchanging Reversing Mutation Prob. Parent 1011 0101 Mutation Chromo. 1000 1001 Child 0011 1100 Paren t 10110101 Child 11110001 Paren t 10110101 Child 10110110
  • 20. Stopping Condition for GA 1. Maximum Generation 2. Elapsed Time 3. No change in Fitness 4. Stall generation 5. Stall time limit
  • 21. Stopping Techniques  Best Individual  Worst Individual  Sum of Fitness  Median Fitness
  • 22. Problem Q. Maximize the function f(x)=x^2 String No. Initial Popula tion X value Fitnes s F(x) Prob. % Prob. Expect ed count Actual Count 1 01100 12 144 0.1247 12.47 0.4987 1 2 11001 25 625 0.5411 54.11 2.1645 2 3 00101 5 25 0.0216 2.16 0.0866 0 4 10011 19 361 0.3126 31.26 1.2502 1 sum 1155 1.000 100 4.00 4 averag e 288.75 0.25 25 1.00 1 Max. 625 0.5411 54.11 2.16 2 Selection:
  • 23. String No. Mating Pool Crossove r point Offspring after crossover X value Fitness value 1 01100 4 01101 13 169 2 11001 4 11000 24 576 3 11001 2 11011 27 729 4 10011 2 10001 17 289 Sum 1763 Average 440.75 maximum 729 Crossover
  • 24. Mutation String No. Offsprin g after crossove r Mutation Chromo. For flipping Offspring after mutation X value Fitness value 1 01101 10000 11101 29 841 2 11000 00000 11000 24 576 3 11011 00000 11011 27 729 4 10001 00100 10101 20 400 Sum 2546 Average 636.5 maximum 841