Grammatical Evolution Flashcards

1
Q

What is Grammatical Evolution an extension of?

A

A GP
Still searches in the program space
Each gene is called a codon (8 bit string)

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

Gram E ALG:

A

create initial pop of variable length binary strings
map vie a BNF grammar
eval fitness
while(termination cond not met){
select fitter individuals for reproduction
recombine selected indivs
mutate offspring
eval fitness of offspring
replace all indivs in the pop with offspring
end
return best indiv

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

How does a context free grammar look like?

A

G = <N, T, P, S>

G = Grammar
N = non-terminals denoted by <> (whatever is inside can be simplified by other attributes)
T = terminal final values
P = Production rules
S = Starting value

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

How is the initial population generated?

A

Random generate a population of variable length binary strings (indivs)

Lengths are determined randomly from a lower bound and upper bound range(8 - 20)

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

What does mapping involve?

A

converting binary strings to decimal and using them to select production rules to apply. (Derivation i.e genotype to phenotype)

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

Mapping equation:

A

Rule = (colon decimal value)%(no of production rules)

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

What is a phenotype?

A

A derivation tree that is evolved by iterating and mapping through the sequence of codons

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

How is the derivation process performed?

A

left->right starting with the left-most non-terminal

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

What is wrapping?

A

If the iteration process reaches the end of the sequence of codons before the derivation tree is evolved. the procedure continues by looping to the start of the codon sequence

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

How is the fitness of a phenotype evaluated?

A

By applying it to a problem

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

What are the 2 selection types in GE?

A

Tournament selection / Fitness proportionate

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

What are the genetic operators?

A

Crossover mutation Reproduction Elitism

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

What is the most common crossover and how does it work?

A

Single point crossover.
Crossover point is randomly selected from the shortest parent.

Other methods are possible but need to consider the lengths

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

Mutation for GE:

A

Similar to GA (bit mutation)

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

How is the population replaced in GE?

A

It is either replaced generationally or steady state (find out difference)

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

When does a GE terminate?

A

When termination objective function is met / number of gens achieved