Professional Documents
Culture Documents
Then only focuses on promotion of good ones and stop to Bad Ones for
population production.”
OOOOOOOOOOOOOOOOOOOO
Good Peoples OOOOOOOOOOOOOOOOOOOOO
XXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Bad Peoples
Only allow to Good ones for population growth. One day whole
population becomes good and Bad one removes from that country.
INTIALIZATION
Selection
“fitness function”
crossover
mutation
If True
Stop
Select Chromosomes according to the fitness (in computer science only
binary digits will be used).
Cromosomes
0 0 1 0 1 1 1 1
0 0 1 1 00 1 1
After Selection
Poppulation BoX
crossover:
0 0 1 1 0 1 1
Reproduction after Crossover
0 0 1 1 0 1 1 1
0 0 1 0 1 1 1 1
0 0 1 1 0 1 1 1
0 0 1 0 1 1 1 1
Now,
0 0 1 1 1 1 1 1
After mutation it will be our new population and this cycle will repeat
again and again. Cycle repeate until true condition does not matched.