Lecture 05 - Genetic Algorithms Flashcards

1
Q

Genetic Algorithms

Who were the main 3 communities developing genetic algorithms?

A

Biologists, computer scientists/engineers, artificial-life researchers

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

Genetic Algorithms

Why is there terminology overlap within evolutionary computing?

A

Competing communities of research hasn’t properly converged on terminology.

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

Genetic Algorithms

What is an individual in GA?

A

One data point with an attached fitness, which can evolve into new offspring.

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

Genetic Algorithms

What is a population in GA?

A

A collection of individuals to be evaluated.

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

Genetic Algorithms

How are individuals represented internally?

A

Pretty much anything that can be evaluated with a fitness function.

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

Genetic Algorithms

What is direct coding?

A

Some specific representation, like a final image. Genotype == phenotype in this case.

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

Genetic Algorithms

What is indirect coding?

A

Some abstract, recipe-y way of making the individuals.

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

Genetic Algorithms

What is a genotype?

A

Genotypes are the instruction for creating an individual.

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

Genetic Algorithms

What is a phenotype?

A

A phenotype is a manifested version of a genotype. Humans are phenotypes; genes are genotypes.

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

Genetic Algorithms

Why do we use the genotype/phenotype distinction in GAs? (3)

A
  • To resemble nature
  • To ease manipulation
  • To allow reuse, hence enabling actual usage of EC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Genetic Algorithms

What is the concept of “limited resources” in GA?

A

The population size is capped; not all individuals can survive.

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

Genetic Algorithms

What’s the difference between an overlapping and non-overlapping generational model?

A
  • Overlapping model: Both parents and offspring can survive.
  • Non-overlapping model: Only offspring survive.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Genetic Algorithms

What are some problems with the overlapping model?

A

Parents can survive, so what is a “new generation?”

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

Genetic Algorithms

When using an overlapping model, how do you measure time flowing?

A

Track the number of births. A new generation happens at “#m births”.

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

Genetic Algorithms

Name the most common fitness selection methods. (FRUTT)

A
  • Fitness-proportional selection
  • Rank-proportional selection
  • Uniform (neutral) selection
  • Truncation selection
  • Tournament selection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Genetic Algorithms

Describe Fitness-proportional selection.

A

1) Given the numerical fitness of each individual
2) Randomly pick one individual with probability proportional to the fitness (the better, the larger probability)

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

Genetic Algorithms

Describe Rank-proportional selection.

A

1) Given the rank of each individual in a fitness-based ranking
2) Randomly pick one individual with probability proportional to the rank (the better, the larger probability)

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

Genetic Algorithms

Describe uniform selection.

A

Pick randomly an individual (with uniform probability)

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

Genetic Algorithms

Describe Truncation selection

A

Pick the best individual(s?) (elitism)

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

Genetic Algorithms

Describe Tournament selection

A

Given a parameter n_size (size of the tournament):
1) Randomly (with uniform probability) pick n_size individuals
2) From them, choose the one with the best fitness

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

Genetic Algorithms

How do you determine if criterion A better than criterion B?

A

Hypothesis testing

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

Genetic Algorithms

Does uniform selection prefer fit or unfit individuals?

A

No preferences for either.

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

Genetic Algorithms

Does truncation selection prefer fit or unfit individuals?

A

Strong preference for fit individuals

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

Genetic Algorithms

Does tournament selection prefer fit or unfit individuals?

A

Depends on n_size.
If 1: No preference.
As n_size grows -> stronger preference for fit individuals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
# Genetic Algorithms What does a strong preference for fit individuals lead to?
- Converges to fit individuals. - Evolutions concentrates on improving promising solutions (exploitation). - Risk of falling into local minima.
26
# Genetic Algorithms What does a weak preference for fit individuals lead to?
- Population includes unfit individuals. - Many different, possibly not promising solutions, are explored (exploration). - Risk of not finding good solutions.
27
# Genetic Algorithms What are the two most common genetic operators
Crossover and mutation.
28
# Genetic Algorithms What is n-point crossover?
See the image. Select n points and flip which parent the genes come from.
29
# Genetic Algorithms What is variable-length crossover?
Offspring can have variable length output which are concatenations of various parts of the parents.
30
# Genetic Algorithms How does mutation work on trees?
Replace a random subtree with another randomly generated subtree.
31
# Genetic Algorithms How does crossover work for trees?
Select two parents, then swap a random subtree.
32
# Genetic Algorithms How are genetic operators constrained for trees?
Usually by depth.
33
# Genetic Algorithms What is gaussian mutation?
Add parameterized gaussian noise.
34
# Genetic Algorithms What is geometric crossover/crossover for real-valued vectors?
c = p1 + C*(p1 - p2), for C ~ U(0, 1)
35
# Genetic Algorithms What's the drawback of geometric crossover?
It lacks the ability to explore outside of the hyperrectangle enclosing the population
36
# Genetic Algorithms What's the hypothesized role of mutation and crossover?
- Mutation = exploitation - Crossover = exploration (Debated)
37
# Genetic Algorithms What techniques can you use to solve multiobjective problems?
- Linearization - Lexicographical order - Pareto dominance
38
# Genetic Algorithms What is linearization for multiobjective problems?
Weight and sum each objective value.
39
# Genetic Algorithms What is lexicographical order for multiobjective problems?
Check each pair of objectives in turn. 1) Check f1(i1) > f1(i2). Select winner or advance to (2). 2) Check f2(i1) > f2(i2). Select winner or advance to (3). ...
40
# Genetic Algorithms What is the drawback of too little diversity?
Too much exploitation → local minimum
41
# Genetic Algorithms What is the drawback of too much diversity?
No exploitation, just coarse exploration (random walk)
42
# Genetic Algorithms What is Expressiveness?
Whether good solutions can be expressed as phenotypes, e.g. the number of dimensions.
43
# Genetic Algorithms What's the problem with Low expressiveness?
Good/optimal solution might not be representable, or might not be reachable
44
# Genetic Algorithms What's the problem with Large expressiveness?
Large search space → very long or infiniti convergence time
45
# Genetic Algorithms What is Grammatical Evolution?
Evolutions of strings given a grammar. See the image for an example.
46
# Genetic Algorithms What does the Φ operator do?
Maps a genotype to a phenotype.
47
# Genetic Algorithms What is ⊥?
An invalid solution.
48
# Genetic Algorithms What is an invalid solution?
An illegal phenotype.
49
# Genetic Algorithms What is f(i_j)?
The fitness function applied to the j-th individual.
50
# Genetic Algorithms What is ≺?
A partial ordering of fitness values, i.e. fitness values can be compared and sorted.
51
# Genetic Algorithms What is the distance dG?
A distance measure between two genotypes. (See image)
52
# Genetic Algorithms What is the distance dP?
The distance measure between two phenotypes. (See image)
53
# Genetic Algorithms What is invalidity?
The proportion of genotypes that are mapped to invalid phenotypes.
54
# Genetic Algorithms What is Degeneracy?
The ratio of genotypes that are mapped to the same phenotype.
55
# Genetic Algorithms What's a synonym for degeneracy?
Redundancy
56
# Genetic Algorithms What is Uniformity of degeneracy?
The degree to which the sizes of different sets of genotypes mapping to the same phenotype differ:
57
# Genetic Algorithms What is Redundancy?
Parts of the genotype might not "agree" when being mapped to phenotypes, e.g. redundant genes might map to the same phenotype.
58
# Genetic Algorithms What is locality?
The degree to which close genotypes are mapped to close phenotype
59
# Genetic Algorithms What is evolvability?
The likelihood of obtaining a better individual after the application of a genetic operator
60
# Genetic Algorithms Describe pareto dominance
1) Start with a graph with points. 2) While the graph has unselected points, repeat 3-6. 3) Select one of the outermost points on the graph that doesn't belong to a pareto frontier. 4) Sweep a (hyper)plane around that point. 5) If you hit a point, select that as the next point. 6) If you hit an axis, assign a new pareto frontier to the selected points and move to step 2.