WEEK 3 Flashcards

1
Q

What is generalised assignment problem

A

If you have n workers and m jobs to complete, what encoding would you use?

Minimise the total overall time to complete all jobs

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

Solutions to generalised assignment problem

A

Encoding of n integers, each with a range 1-m jobs (each index is a worker, contains a job)

The opposite, every index is a job and inside is a worker.

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

How might you encode a timetable

A

Generate a string of 8 numbers between 1 and 16 for 4x4 grid, each index is an exam, and its value is the position in the grid
Fitness is clashes + consecs.

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

How can we deal with clashes in a timetable

A

Mutation with indirect encoding
Use clash free slots for each value at each index.
i.e. if 2nd index is 10, use 10th clash-free slot for exam 2.
Have groups of clashing exams we can look up.

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

Direct vs indirect encoding

A

Direct modifies a variable in the problem e.g. exam time
Indirect modifies the variables of a constructive heuristic e.g. clash-free exam time.

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

Benefits of direct encoding

A

Straightforward genotype (encoding) -> phenotype mapping
Easy to estimate effects of mutation
Fast interpretation of chromosome

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

Benefits of indirect encoding

A

Easier to exploit domain knowledge
Possible to encode away undesirable features
Cuts down size of the search space
Slower interpretatin
Neighbourhoods are highly rugged.

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

How was the antenna genome encoded?

A

105 bit chromosome
x1, y1, z1, x2, y2, z2 ..n
each x-y-z coord is represented by 5 bits (4+sign bit)
7 points so 3x7x5 = 105

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

How do we evolve programs with EAs?

A

Generate random programs
Evaluate programs using training data
Selectively modify population of programs using crossover and mutation etc
If a good program is found, finish.

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

How do we do fitness evaluation for a genetic program?

A

The chromosome is a program, to evaluate, we have to run it and test its behaviour over a range of potential inputs.

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

What do we need to make random programs

A

Function set F + - / IF
Terminal set T X, Y, real numbers

Associated syntax rules.
+ can have 2 children from F or T

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

How do we mutate a GP?

A

Choose a subtree at random, generate a new subtree in its place (biased towards nodes with high depth)
Subtree is equivalent to choosing a node.

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

5 major preparatory steps for GP

A

Determining the set of terminals
Determining the set of functions
Determining the fitness measure
Determining the parameters for the run
Determining the criterion for terminating a run

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