SC Genetric Algorithm PPTs-1
SC Genetric Algorithm PPTs-1
Meiosis is a type of cell division in sexually reproducing organisms that reduces the
number of chromosomes in gametes (cells, or egg ).
<BCSE0103> <Soft Computing> 8
A Brief Account on Evolution
: Natural Selection
RANKING
2. Fitness Assignment:-
• Used to determine how fit an individual is? It means the ability of an
individual to compete with other individuals.
• In every iteration, individuals are evaluated based on their fitness
function. The fitness function provides a fitness score to each
individual.
• This score further determines the probability of being selected for
reproduction.
• The high the fitness score, the more chances of getting selected for
reproduction.
In this step, the genetic algorithm uses two variation operators that are
applied to the parent population.
The two operators involved in the reproduction phase are given below:
(i) Crossover:-In this process, a crossover point is selected at random
within the genes. Then the crossover operator swaps genetic
information of two parents from the current generation to produce a
new individual representing the offspring.
(ii) Mutation:-The mutation operator inserts random genes in the offspring (new child) to
maintain the diversity in the population. It can be done by flipping some bits in the
chromosomes. Mutation helps in solving the issue of premature convergence and enhances
diversification.
PM-Probability of a mutation
Input Parameters: PC-Probability crossover
N- a population size.
Fitness Function: Also known as the Evaluation Function that evaluates how
close a given solution is to the optimum solution of the
desired problem.
At x=0, f(0)=Infinite
At x=1,f(1)=125.5
At x=2,f(2)=64.5
.
.
At x=5,f(5)=37.5(Minimum)
.
.
.
0101 .
So (5)2 =(0101)
X = 10
Y = -1
01010 10001
1.How to choose the individual in the population that will create OFFSPRING for the
next generation?
o Elitist Selection
=(fi /Σ fi) X N
i=1
=(8.2+3.2+1.4+1.2+4.2+.3)/6=18.5/6=3.08
Then
fitness(A)=fA / =8.2/3.08=2.66
fitness(B)=fB / =3.2/3.08=1.04
Mating Pool (Pick 50% of N) fitness(C)=f C / =1.4/3.08=.45
Chromosome Current Fitness Value fitness(D)=fD / =1.2/3.08=.38
A 2.66
fitness(E)=fE / =4.2/3.08=1.36
E 1.36 fitness(F)=fF / =.3/3.08=.1
B 1.04
.04
Ʃfi=23.25
Crossover is sexual reproduction. Two strings are picked from the mating pool at
random to crossover in order to produce superior offspring. The method chosen
depends on the Encoding Method.
In random resetting mutation, we select one or more genes (array indices) and
replace their values with another random value from their given ranges. Let’s
say a[i] (an array index / gene) ranges from [1, 6] then random resetting
mutation will select one value from [1, 6] and replace a[i]’s value with it.
In Swap Mutation we select two genes from our chromosome and interchange
their values.
In Scramble Mutation we select a subset of our genes and scramble their value.
The selected genes may not be contiguous (see the second diagram).
9. Financial markets:-A variety of issues can be solved using genetic optimization in the
financial market. It helps in finding an optimal combination of parameters that can affect
the trades or market rules.
10. Medical science:-Medical signs have an array of use cases for genetic optimization.
The areas of predictive analysis include protein prediction, RNA structure prediction,
operon prediction, and others. Other processes such as protein folding, gene expression
profiling analysis, bioinformatics multiple sequence alignment, or some of the process
alignment that uses genetic optimisation.
11. Task scheduling:-Genetic machine learning algorithms are used to derive optimal
schedules that satisfy certain constraints related to a problem. For instance: assume that you
have to prepare the schedule for the semester exams for University. The genetic algorithm
will find the best optimal schedule for the university considering all the constraints like the
number of classrooms, the number of students, the total number of courses and subjects,
and others.
13. Robotics: Robotics comprises the construction, design, and working of the
autonomous robot. Genetic algorithms contribute to the robotics field by
providing the necessary insight into the decisions made by the robot. It
generates optimal routes for the robot so that it can use the least amount of
resources to get to the desired position.