L4 - EA's in more detail Flashcards
Define Generational Algorithm type…
An algorithm in which the genetic operator is applied across all N solutions to generate a new generation of solutions.
Define Generational Elitist Algorithm type…
Take the K best solutions of N, and apply genetic operator to remainder of N to create the new generation of K + M( N-K )
Define a Steady State Algorithm Type…
An EA where we use a selection algorithm to select K solutions from N. We apply genetic operator to all solutions in K. We perform a replacement operation of mutated K back on N.
Replacement operation is either Replace Weakest or Replace First Weakest.
In Steady State Algorithms, what are the 2 replacement procedures we can use?
Replace Weakest : With our mutated set K, we iterate K and replace solutions in N with solutions in K so long as the current solution in K is no worse than the solution in N.
Replace First Weakest : With our mutated set K, we iterate K and as soon as we encounter a solution in N that is worse than k, we replace n with k.
Define what is meant by Selection Pressure?
Refers to the degree in which individuals in a population are favoured for selection. Can range between Low, Medium and High. For example, low pressure would be a random selection.
Define what is meant by Selection Process…
The Selection Process is the strategy we employ to decide which areas of the search space we should focus our efforts on.
What are the names of the 3 selection processes we are looking at?
Fitness Wheel Selection (Fitness Proportionate)
Rank-based Selection
Tournament Selection
Explain the process of Fitness Proportionate Selection…What are the problems with it? What is the name of the Selection Process the solves these problems?
For each solution, we divide its fitness by the sum of fitness. This gives us a selection pool in which solutions with higher fitness are more likely to be selected for mutation.
Problems:
- Solutions with much larger fitness scores will be chosen disproportionately.
- Negative fitness values skew sum of fitness values and thus skew the selection pool.
Solution:
Rank-Based Selection
Explain the Rank-Based Selection Process and how it solves the issues of Fitness Wheel Selection…Give an example of how it solves the issue using the fitness values {100, 0.4, 0.3, 0.2, 0.1}
N is most fit.
Rank-based selection assigns selection probabilities based on the relative ranks of individuals rather than their fitness values. This helps reduce the influence of extreme fitness values on selection.
This removes the selection discrepancy introduced by the Fitness Wheel Selection.
#1 is least fit
E.g
Fitness Wheel : S(100) is 100x more likely to be selected.
Rank-Based : S(100) is 5x more likely to be selected.
In Rank-Based Selection, what is Bias? Why do we use it?
Bias is a measure we can introduce to change the probabilities of solutions being chosen. We do this through applying some exponent do all fitness values in the set.
For example:
Low Bias : n^0.5 reduces the selection discrepancy between fitter and less fit solutions.
High Bias : n^2 increases selection discrepancy.
Explain Tournament Selection… What are its pros and cons…
Tournament Selection is a rank-based selection in which a set of size t is chosen from the solutions, and they are ranked based on their fitness scores. One or more of the fittest solutions are chosen to create the new generation.
Pros:
- Tunable : We can increase or decrease t, which in turn changes the selection pressure. For example, t = 10, p = 10000 would be very low pressure.
- Avoids issues of super-fit or super-poor solutions.
- Simple and efficient to implement
Cons:
- Requires extra parameter ( tournament size )
What are Genetic Operators?
The operators we use to mutate solutions and create new generations.
Define exploitation and exploration…
Exploitation : When we want to work with solutions we already know are good, thus a small change or combination between known good solutions are used to create the new generation of candidate solutions.
Exploration : The process of searching new areas within the search space.
What does it mean when we refer to a Solutions representation or encoding?
This is referring to the type that makes up the solution. E.g Integer, Vector.
What is meant by K-ary encoding? Give an example of when k = 20…
If we were to select candidate solutions from the population as an array of length L, this would mean that that each candidate solution would be an array of length L, where each element was between 1 and 20.
In other words, this is a 20-ary encoding of length L.