SlideShare a Scribd company logo
GENETIC ALGORITHM
GENETIC ALGORITHM
INTRODUCTION
● Genetic Algorithm (GA) is a search-based
optimization technique based on the principles
of Genetics and Natural Selection. It is
frequently used to find optimal or near-optimal
solutions to difficult problems which otherwise
would take a lifetime to solve.
INTRODUCTION TO
OPTIMIZATION
● Optimization is the process of making
something better.
What are Genetic Algorithms?
● Nature has always been a great source of
inspiration to all mankind. Genetic Algorithms
(GAs) are search based algorithms based on
the concepts of natural selection and genetics.
● GAs are a subset of a much larger branch of
computation known as Evolutionary
Computation.
BASIC TERMINOLOGY
● Population – It is a subset of all the possible
(encoded) solutions to the given problem.
● Chromosomes – A chromosome is one
such solution to the given problem.
● Gene – A gene is one element position of a
chromosome.
● Allele – It is the value a gene takes for a
particular chromosome.
Genetic algorithm ppt
● Genotype – Genotype is the population in the computation
space. In the computation space, the solutions are
represented in a way which can be easily understood and
manipulated using a computing system.
● Phenotype – Phenotype is the population in the actual real
world solution space in which solutions are represented in
a way they are represented in real world situations.
● Decoding and Encoding – For simple problems, the
phenotype and genotype spaces are the same. However,
in most of the cases, the phenotype and genotype spaces
are different. Decoding is a process of transforming a
solution from the genotype to the phenotype space, while
encoding is a process of transforming from the phenotype
to genotype space.Decoding should be fast as it is carried
out repeatedly in a GA during the fitness value calculation.
● Fitness Function – A fitness function simply defined
is a function which takes the solution as input and
produces the suitability of the solution as the output.
In some cases, the fitness function and the objective
function may be the same, while in others it might be
different based on the problem.
● Genetic Operators – These alter the genetic
composition of the offspring. These include
crossover, mutation, selection, etc.
Knapsack Problem
● The knapsack problem or rucksack problem is a problem
in combinatorial optimization: Given a set of items, each
with a weight and a value, determine the number of each
item to include in a collection so that the total weight is
less than or equal to a given limit and the total value is as
large as possible. It derives its name from the problem
faced by someone who is constrained by a fixed-size
knapsack and must fill it with the most valuable items.
BASIC STRUCTURE OF GENETIC ALGORITHM
GENOTYPE REPRESENTATION
● BINARY REPRESENTATION
● REAL VALUED REPRESENTATION
● INTEGER REPRESENTATION
● PERMUTATION REPRESENTATION
GA- POPULATION
● Population is a subset of solutions in the
current generation
● Set of chromosomes
● POPULATION INITIALIZATION
1. RANDOM INITIALIZATION
2. HEURISTIC INITIALIZATION
● POPULATION MODEL
1. STEADY STATE
2. GENERATIONAL
FITNESS FUNCTION
● Takes a candidate solution to the problem as
input and produces as output
● The objective is to either maximize or minimize
the given objective function
Genetic algorithm ppt
GA- PARENT SELECTION
● Fitness Proportionate Selection
Roulette Wheel Selection
–
● Stochastic Universal Sampling (SUS)
● Tournament Selection
● Rank Selection
GA- CROSSOVER
● one parent is selected and one or more off-
springs are produced using the genetic material
of the parents
● One Point Crossover
● Multi Point Crossover
● Uniform Crossover
GA- MUTATION
● used to maintain and introduce diversity in the
genetic population
● Mutation Operators:
-Bit Flip Mutation
-Random Resetting
-Swap Mutation
● Scramble Mutation
● Inversion Mutation
GA- SURVIVOR SELECTION
● Age Based Selection
● Fitness Based Selection
GA- TERMINATION CONDITION
● When there has been no improvement in the
population for X iterations.
● When we reach an absolute number of
generations.
● When the objective function value has reached
a certain pre-defined value

More Related Content

PDF
Genetic Algorithms
PPT
Genetic algorithm
PPT
Genetic algorithms
PPTX
Flowchart of GA
PPTX
MACHINE LEARNING - GENETIC ALGORITHM
PPT
Genetic Algorithms - Artificial Intelligence
PPTX
Genetic algorithm
PPTX
Genetic Algorithm
Genetic Algorithms
Genetic algorithm
Genetic algorithms
Flowchart of GA
MACHINE LEARNING - GENETIC ALGORITHM
Genetic Algorithms - Artificial Intelligence
Genetic algorithm
Genetic Algorithm

What's hot (20)

PDF
Genetic Algorithms
PPTX
Practical Swarm Optimization (PSO)
PPTX
Feedforward neural network
PPTX
Evolutionary Algorithms
PPTX
Introduction to ML (Machine Learning)
PPSX
Perceptron (neural network)
PDF
Classification Based Machine Learning Algorithms
PPTX
Optimization technique genetic algorithm
PPTX
Artificial neural network
PPTX
Deep neural networks
ODP
Machine Learning with Decision trees
PPTX
Optimization problems and algorithms
PPTX
Naive bayes
PDF
Autoencoders
PPT
Introduction to Genetic Algorithms
PDF
Decision tree
PPTX
Genetic algorithm
PPTX
Dynamic programming
PPTX
Perceptron & Neural Networks
PPTX
Simulated Annealing
Genetic Algorithms
Practical Swarm Optimization (PSO)
Feedforward neural network
Evolutionary Algorithms
Introduction to ML (Machine Learning)
Perceptron (neural network)
Classification Based Machine Learning Algorithms
Optimization technique genetic algorithm
Artificial neural network
Deep neural networks
Machine Learning with Decision trees
Optimization problems and algorithms
Naive bayes
Autoencoders
Introduction to Genetic Algorithms
Decision tree
Genetic algorithm
Dynamic programming
Perceptron & Neural Networks
Simulated Annealing
Ad

Similar to Genetic algorithm ppt (20)

PPTX
Genetic Algorithm in Artificial Intelegence.pptx
PPTX
Genetic Algorithms : A class of Evolutionary Algorithms
PDF
Genetic Algorithms in Artificial Intelligence
PPT
4.Genetic-Algorithms.ppt
PPT
Genetic algorithms
PPT
Genetic-Algorithms.ppt
PPT
Genetic-Algorithms.ppt
PPT
Genetic-Algorithms for machine learning and ai.ppt
PPT
AI_PPT_Genetic-Algorithms.ppt
PPT
Genetic-Algorithms forv artificial .ppt
PPT
Genetic-Algorithms-computersciencepptnew.ppt
PDF
Introduction to Optimization with Genetic Algorithm (GA)
PDF
RM 701 Genetic Algorithm and Fuzzy Logic lecture
PDF
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
PPT
Genetic algorithms full lecture
PPT
Genetic-Algorithms SDSDa SDD dfsAFF fsaf
PPT
Genetic algorithms
PPT
Genetic-Algorithms for engineering appl.ppt
PPT
0101.genetic algorithm
PPT
Genetic algorithm
Genetic Algorithm in Artificial Intelegence.pptx
Genetic Algorithms : A class of Evolutionary Algorithms
Genetic Algorithms in Artificial Intelligence
4.Genetic-Algorithms.ppt
Genetic algorithms
Genetic-Algorithms.ppt
Genetic-Algorithms.ppt
Genetic-Algorithms for machine learning and ai.ppt
AI_PPT_Genetic-Algorithms.ppt
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms-computersciencepptnew.ppt
Introduction to Optimization with Genetic Algorithm (GA)
RM 701 Genetic Algorithm and Fuzzy Logic lecture
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
Genetic algorithms full lecture
Genetic-Algorithms SDSDa SDD dfsAFF fsaf
Genetic algorithms
Genetic-Algorithms for engineering appl.ppt
0101.genetic algorithm
Genetic algorithm
Ad

Recently uploaded (20)

PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Project quality management in manufacturing
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Construction Project Organization Group 2.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
composite construction of structures.pdf
PPTX
Welding lecture in detail for understanding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Project quality management in manufacturing
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
573137875-Attendance-Management-System-original
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
additive manufacturing of ss316l using mig welding
Construction Project Organization Group 2.pptx
OOP with Java - Java Introduction (Basics)
composite construction of structures.pdf
Welding lecture in detail for understanding
UNIT 4 Total Quality Management .pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Automation-in-Manufacturing-Chapter-Introduction.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...

Genetic algorithm ppt

  • 2. GENETIC ALGORITHM INTRODUCTION ● Genetic Algorithm (GA) is a search-based optimization technique based on the principles of Genetics and Natural Selection. It is frequently used to find optimal or near-optimal solutions to difficult problems which otherwise would take a lifetime to solve.
  • 3. INTRODUCTION TO OPTIMIZATION ● Optimization is the process of making something better.
  • 4. What are Genetic Algorithms? ● Nature has always been a great source of inspiration to all mankind. Genetic Algorithms (GAs) are search based algorithms based on the concepts of natural selection and genetics. ● GAs are a subset of a much larger branch of computation known as Evolutionary Computation.
  • 5. BASIC TERMINOLOGY ● Population – It is a subset of all the possible (encoded) solutions to the given problem. ● Chromosomes – A chromosome is one such solution to the given problem. ● Gene – A gene is one element position of a chromosome. ● Allele – It is the value a gene takes for a particular chromosome.
  • 7. ● Genotype – Genotype is the population in the computation space. In the computation space, the solutions are represented in a way which can be easily understood and manipulated using a computing system. ● Phenotype – Phenotype is the population in the actual real world solution space in which solutions are represented in a way they are represented in real world situations. ● Decoding and Encoding – For simple problems, the phenotype and genotype spaces are the same. However, in most of the cases, the phenotype and genotype spaces are different. Decoding is a process of transforming a solution from the genotype to the phenotype space, while encoding is a process of transforming from the phenotype to genotype space.Decoding should be fast as it is carried out repeatedly in a GA during the fitness value calculation.
  • 8. ● Fitness Function – A fitness function simply defined is a function which takes the solution as input and produces the suitability of the solution as the output. In some cases, the fitness function and the objective function may be the same, while in others it might be different based on the problem. ● Genetic Operators – These alter the genetic composition of the offspring. These include crossover, mutation, selection, etc.
  • 9. Knapsack Problem ● The knapsack problem or rucksack problem is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. It derives its name from the problem faced by someone who is constrained by a fixed-size knapsack and must fill it with the most valuable items.
  • 10. BASIC STRUCTURE OF GENETIC ALGORITHM
  • 11. GENOTYPE REPRESENTATION ● BINARY REPRESENTATION ● REAL VALUED REPRESENTATION
  • 12. ● INTEGER REPRESENTATION ● PERMUTATION REPRESENTATION
  • 13. GA- POPULATION ● Population is a subset of solutions in the current generation ● Set of chromosomes
  • 14. ● POPULATION INITIALIZATION 1. RANDOM INITIALIZATION 2. HEURISTIC INITIALIZATION ● POPULATION MODEL 1. STEADY STATE 2. GENERATIONAL
  • 15. FITNESS FUNCTION ● Takes a candidate solution to the problem as input and produces as output ● The objective is to either maximize or minimize the given objective function
  • 17. GA- PARENT SELECTION ● Fitness Proportionate Selection Roulette Wheel Selection –
  • 18. ● Stochastic Universal Sampling (SUS)
  • 20. GA- CROSSOVER ● one parent is selected and one or more off- springs are produced using the genetic material of the parents ● One Point Crossover
  • 21. ● Multi Point Crossover ● Uniform Crossover
  • 22. GA- MUTATION ● used to maintain and introduce diversity in the genetic population ● Mutation Operators: -Bit Flip Mutation -Random Resetting -Swap Mutation
  • 23. ● Scramble Mutation ● Inversion Mutation
  • 24. GA- SURVIVOR SELECTION ● Age Based Selection
  • 25. ● Fitness Based Selection
  • 26. GA- TERMINATION CONDITION ● When there has been no improvement in the population for X iterations. ● When we reach an absolute number of generations. ● When the objective function value has reached a certain pre-defined value