Genetic Algorithms UNIT-4
Genetic Algorithms UNIT-4
Genetic Algorithms
Genetic Algorithm (GA) is a search-based optimization techni
Chromosomes
A chromosome is one such solution to the given
problem.
Ex:
GeneMosquito :6 Frogs : 26 Human : 46 Gold Fish
A gene is one element position of a chromosome.
: 94
Allele
It is the value a gene takes for a particular
chromosome.
Genotype
Genotype is the population in the computation space.
It Provides the solutions are represented in a way
which can be easily understood and manipulated
using a computing system.
Phenotype
Selection Operator
Crossover Operator
Mutation Operator
Selection operator gives preference to better
solutions, allowing them to pass on their “genes” to the
next generation of the Algorithm
This Operator may also simply pass to the Best
Solutions.
Crossover
This represents mating between individuals. Two
individuals are selected using selection operator and
crossover sites are chosen randomly. Then the genes at
these crossover sites are exchanged thus creating a
completely new individual.
https://www.youtube.com/watch?v=SBqZvFVwtvA&t=39s
Mutation
Basic Principle of GA
Inheritance Operator
Once a new generation is ready to be created, all of the
individuals that have been successful and have been chosen for
reproduction are randomly paired together .
• Single-Point Crossover
• Two-Point Crossover
• Multi-Point Cross Over
Single-Point Crossover
Two-Point
Crossover
Multi-Point Cross Over
Inversion:-
The shift right operator causes all the bits in the first operand to be
shifted to the right by the number of positions indicated by the
second operand. The right most bit in the original bit pattern is lost.
The left most bit positions that become vacant are to be filled with
0s.