Questions Wrong Flashcards
How would you modify a network to let prims find a solution with some particular arcs?
- make those arcs lower than all the rest around their node
How to layout worst case
In worst case, total number of comparisons in the first n-1 passes is = 1 + 2 + 3 + 4 + … (n-1)
Sum = 0.5n(n-1)
= quadratic
Explain purpose of ‘minimise’ objective function 2 marks
‘(Insert objective function)’ is the total cost of transporting all the required stock, calculated by finding sum
We wish total cost of transporting all required stock to be as small as possible, so ‘minimise’ is used
Transportation problem - explain purpose of one of the ‘subject to’ lines
The line ‘_’. Constrains the total stock that can be shipped from supplier _ to each of the depots until the _ stock is cleared
Interpret output to give solution to transportation problem
E.g. - value, AW = 9.00000
AW = 9
For transportation problems
Check units of pounds - e.g. hundreds of pounds
In a simplex q, what significance does the surplus variable have related to the range of constraint
Surplus variable imply the level that the constraint is being under used, so the size of the s = added potential range which wouldn’t affect final solution
Explain why in the worst case, both packing algorithms have the same order of complexity
For both, each number has to be compared with all previous numbers/ bins before bein placed in a new on
How to work out minimum number of workers needed
Total hours/ minimum completion time
For cascade diagram
Add a third column on table for the time interval for each Activity
To make a 3D LP into 2D
Rearrange for z = and substitute values into all constraints as well as objective function
Why is first fit an example of an heuristic algorithm
Heuristic can find solution efficiently but no guarantee it will be optimal
Why can’t simplex algorithm sometimes not be applied to solve the LP problem
If objective function = minimise, gotta switch up the vibe
Let -P = Q and maximise
Explain why two of shortest path LP formulation = 1
- indicator variables take value of 1 if corresponding arc is in shortest path, 0 otherwise
- two constraints = 0 to signify that one arc out of A and one arc into G must be in the shortest path
Explain why many constraints = 0 in shortest path LP formulation
- consider both cases of a vertex being either in or not in the shortest path
- if in, flow in = 1, flow out = 1, so 1-1 = 0
- if out, flow in = 0, flow out = 0, so 0-0 = 0