Genetic Programs Flashcards

1
Q

Evolutionary algorithms work by generating new solutions to a problem and evaluating them. Genetic programs, instead…

A

Generate new programs using a set of rules and evaluate them

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

Genetic programs follow the exact same structure as evolutionary algorithms, except…

A

We evolve programs instead

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

Genetic programs could be used in future to generate… (pick 2)

A

Operating systems, word processors, websites, mobile apps

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

Search-based software engineering is a type of genetic program in which…

A

We solve optimisation-based software engineering problems using genetic programs

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

Genetic programs are used nowadays for tasks such as… (pick 2)

A

Navigation code for robots, curve fitting, antenna design

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

In evolutionary algorithms, our fitness function can be taken as a result of the output. However, this is not the case in genetic programs. For genetic programs, our fitness needs to be measured [after/before] runtime.

A

After

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

Genetic programs are defined as a tree of…

A

Rules

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

A genetic program is defined using two sets, the […] set, representing actions, and the […] set, representing variables.

A

Function, terminal

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

Each member of the function set has both an action and a […].

A

Syntax (rule), defining how input data must be formatted

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

The algorithm used to generate a program tree is to first choose a random function for the root, then enter the following loop:

A

Choose a function node that does not have children yet, and randomly choose values from either the function set or the terminal set (given we are not at max depth yet)

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

In the case that our genetic program generation algorithm has reached the maximum depth, we cannot use any items from the […] set.

A

Function set

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

To mutate a genetic algorithm, the standard approach is to…

A

Choose a subtree at random, remove it, then generate a new subtree in its place

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

To crossover a genetic algorithm, the standard approach is to…

A

Choose a node in the tree, and replace it with the other program’s tree in its entirety

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