Genetic algorithm
- Evolutionary pace of learning algorithm is genetic algorithm
- The higher degree euguency can be achieved with new paradigm of AI called genetic algorithm
- Genetic algorithm is a rich flavour of stochastic beam search
- In the genetic algorithm two parent states are combined by which a good successor state will be generated
- In genetic algorithm, we are dealing with sexual and asexual reproduction
Mechanisms used in genetic algorithm:
- Population
- Individual
- Fitness function
- Crossover
- Mutation
- Schema
Population:
Population is a set of states which are generated randomly
Individual:
It is a state or individual and it is represented as string over a finite alphabets
Example
A string of 0'sand 1's
Fitness function:
- It is evaluation function
- A fitness function should return higher values for better states
- In 8-queen the fitness function has 28 value for number of non attacking pairs
Crossover:
- Selection of state is dependent on fitness function
- If fitness function value is above limit then only state is selected Otherwise discarded
- Each pair or state is divided
- The division point or meeting point called as crossover point
Mutation:
- Mutation is one of the genetic operator
- Mutation works on random selection or changes
- The pattern switching 0 to 1 or 1 to #
Schema:
Schema is a substring
Position of some bit can be unspecified
Example:
8-Queen Problem
Working of genetic algorithm:
Input
- State population
- Fitness function
- Create an individual X by using selection with fitness function A
- Create an individual why by using selection with fitness function B
- Child with good fitness is created for X + Y
.png)
.png)
0 Comments