Professional Documents
Culture Documents
Karim Gaber Ahmed El-Naggar
Genetic Algorithm
Introduction
Genetic Algorithms are a way of solving problems by mimicking the same
processes mother nature uses to evolve a solution to a problem.
Every organism has a set of rules, a blueprint so to speak.
describing how that organism is built up.
These rules are encoded in the genes of an organism, which in turn are
connected together into long strings called chromosomes.
Genetic Algorithm
Introduction
Genetic Algorithm
Introduction
Each gene represents a specific trait of the organism, like eye color or hair
color, and has several different settings.
Goal: create the random feature
Benefits:
easily distributed
Many random parameters
Always an answer
Answer get better with time
Depend on fitness function, which we design
An Overview
Before you can use a genetic algorithm to solve a problem, a way must be
found of encoding any potential solution to the problem.
This could be as a string of binary bit string which is known as the chromosome
which may look like this:
10010101110101001010011101101110111111101
At the beginning of a run of a genetic algorithm a large population
of random chromosomes is created.
An Overview
Each one, when decoded will represent a different solution to the problem at
hand.
Then the following steps are repeated until a solution is found:
An Overview
Test each chromosome to see how good it is at solving the problem at hand
and assign a fitness score accordingly.
The fitness score is a measure of how good that chromosome is at solving the
problem to hand.
Select two members from the current population. The chance of being
selected is proportional to the chromosomes fitness
An Overview
Dependent on the crossover rate crossover the bits from each chosen
chromosome at a randomly chosen point.
Step through the chosen chromosomes bits and flip dependent on
the mutation rate
Repeat step 2, 3, 4 until a new population of N members has been created.
Random Feature
Introduction
Description: It is a unique feature for our editor which it will help you in
choosing harmonious colors which can be used for:
fashion
Décor
Art
etc.
Goal: Create an infinite set of palettes.
Two color palettes and three color palettes.
How does it work
We create 10 sets of two random colors in rgb color space.
rgb(248, 104, 50)
Then we check each set for repeated colours if there a repeated colour we
create a new one and replace it with a new random one.
How does it work