Modelling exam Qs Flashcards

1
Q

Explain why, in the worst case, both packing algorithms have the same order of complexity

A

For both algorithms (in the worst case) each number has to be compared with all previous numbers/bins (before being placed into a new bin)

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

Explain the purpose of the objective function from an LP formulation

A

Arcs AE, BD etc… form a cut in the network.

This line of formulation therefore maximises the total flow in the network, so finds the capacity.

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

Explain BD-DH=0

A

The total flow into each node must be equal to the total flow out of each node (excluding the source and sink). The only arc leading into D is BD and the only arc out of D is DH and hence BD-DH=0.

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

An algorithm has complexity O(n*). When n = 200 a computer takes 0.03s to implement
the algorithm. How long will the computer take to implement the algorithm when n = 20
000?
Explain why your answer is only an approximation.

A

It is an approximation because O(n^2) indicates an approximate relationship

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

What is a cut?

A

A partition of the set of vertices into two sets; the source and sink must be in different sets.

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