Lecture 5 - Evolutionary Algorithms I Flashcards

1
Q

What is an Evolutionary Algorithm?

A

Evolutionary algorithms simulate natural evolution of individual structures at the genetic level using the idea of survival of the fittest via processes of selection, mutation, and reproduction.
An individual represents a candidate solution
A collection of individuals currently ‘alive’, called population is evolved from one generation to another (iterations) depending on the fitness of individuals in a given environment, indicating how fit an individual is (how close to the optimal solution)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the basic components of a GA (Genetic Algorithm)?

A

A genetic representation for candidate solutions
An initialisation scheme to generate the first population of solutions
A fitness function that plays the role of environment, rating solutions in terms of their fitness.
A scheme for selecting mates (parents) for recombination
Crossover (recombination) exchanges genetic material between mates producing offspring (children)
Mutation perturbs an individual creating a new one
Replacement strategy to select the surviving individuals for the next generation
Termination criteria
Values for various parameters that GA uses (population size, probabilities of applying genetic operators, etc…)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the features of GA representation?

A

Each individual contains one chromosome, and has an associated fitness value
Chromosomes contain a fixed number of genes - chromosome length
Traditionally, binary encoding is used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the features of GA initialisation?

A

Population size - number of individuals are created randomly (random initialisation)
Each gene at a locus of an individual is assigned an allele value of 0 or 1 randomly, decided by flipping a coin
Length of chromosomes is determined by the amount of different variables in the MAX-SAT problem i.e. length of 6 if variables = {a,b,c,d,e,f}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the features of GA fitness calculation?

A

Fitness value indicates how fit the individual is to survive and reproduce under the current conditions, and how much the current solution meets the requirements of the objective function
Fitness value is obtained by applying the fitness function to the individual’s chromosome

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the features of GA reproduction?

A

Reproduction consists of:
Selecting individuals - apply selection pressure considering the fitness of individuals in the population e.g. Roulette Wheel Selection
Usually 2 parents are selected using the same method, which will go under the crossover operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Roulette Wheel Selection?

A

Fitness level is used to associate a probability of selection with each individual chromosome
While candidate solutions with a higher fitness will be less likely to be eliminated, there is still a chance that they may be
Expected number of representatives of each individual in the pool is proportional to its fitness.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Tournament Selection?

A

This method involves running a number of ‘tournaments’ among randomly chosen individuals (of tour size) selecting the one with best fitness at the end - this process is repeated for selecting each parent to be recombined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the features of recombination - crossover?

A

Selected pairs are recombined to form new individuals - this is exchange of genetic material
Crossover is applied with a crossover probability Pc, which in general is chosen close to 1.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different types of crossover (GA)?

A

One point crossover - generate a random number in [0,1], if it is smaller than a crossover probability, then select a random crossover site in [1, chromosome length], split individuals at the selected site, and then exchange segments between pairs to form two new individuals
2 Point crossover - same as above, except selects two different points, thus splitting it three ways, and then swaps them around
Uniform Crossover - Goes through each bit of the parent string, and exchanges the two if the random number between [0,1] is greater than 0.5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is mutation within GAs?

A

Loop through all the alleles of all the individuals one by one, and if that allele is selected for mutation with a given probability Pm, you can either change it by a small amount or replace it with a new value - for binary representation, this is actually just flipping a bit
Mutation rate is typically very small (0.001). Choosing Pm as (1/chromosome length) implies on average a single gene will be mutated for an individual.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What features of replacement are there for GAs?

A

Generation gap (alpha) controls the fraction of the population to be replaced in each generation, where alpha is a number between [1/N, 1.0] - number of offspring produced at each generation is g = alpha*N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Steady-State GA replacement?

A

g=2, that is alpha = 2/N
Two offspring replace two individuals from the old generation, choosing one of four methods:
Two offspring replace two parents
Two offspring replace worst two of population
Best two of parents and offspring replace two parents (called elitism)
Best two of parents and offspring replace worst two of the population (strong elitism)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the features of termination criteria in GAs?

A

The evolution continues until a termination criteria is met, possibly until:
A predefined number of generations has been exceeded
A goal is reached
Best fitness does not change for a while
A condition is satisfied depending on a combination of above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is convergence?

A

Defined as the progression towards uniformity (individuals become alike):
Gene convergence - a location on a chromosome is converged when 95% of the individuals have the same gene value for that location
Population convergence - a population is converged when all the genes have converged
Phenotypic convergence - average fitness of the population approaches to the best individual in the population

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a Memetic Algorithm?

A

MAs make use of exploration capabilities of GAs and exploitation capabilities of local search - MAs have an explicit mechanism to balance exploitation and exploration
Memetic Algorithms shown to be much faster and more accurate than GAs on some problems, and are the ‘state of the art’ on many problems

17
Q

What is the difference between a GA and an MA?

A

MAs use hill climbing after their mutation stage, whereas GAs do not.