Modelling With Algorithms Flashcards

1
Q

What is an objective function?

A

The main formula which will maximise or minimise (usually to do with profits)

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

Formulate this problem and solve for the objective function and regional inequalities

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

Find the solution

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

Why might a two stage simplex method be required?

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

Also write into initial tableaux form

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

What would happen is one of the constraints were an equality

A

Convert it into two inequalities

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

what is “standard linear programming form” ?

A

when the problem is formulated in terms of non negative variables as a linear objective to be maximised subject to linear constaints, each of which is less than or equal to a non-negative constant

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

question

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

what is the feasible region?

A

a set of points that satisfy all the constraints

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

what are non basic variables?

A

when at least two of the vraiables in the equation are equal to 0. Including slack variables

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

what are basic variables?

A

the value of the other variables when the rest are 0

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

what is an integer linear programming problem?

A
  • when the optimal solutuions have integer values

‘with x and y integers’

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

what are the steps to choosing a pivot?

A
  1. choose pivot column where the entry in the objcetive row is most negative
  2. do ratio test on this column
  3. choose pivot row of smallest value from the ratio test (not negative)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How do you carry out an iteration?

A
  1. each entry in pivot row is divided by value of pivot element
  2. the other rows are replaced by

current row ± multiple of pivot row
3. carry on iterations until there are no more negative values in the objective function , then th optimal solution has been found

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

use subsitution

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

when would you have to use two stage simplex method?

A
  • when there is a > = symbo,l
  • the function included minimisng
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

what are the steps to two stage simplex method augmented form?

A
  • as usual slack variables are added to <= constraints
  • non negative surplus variable is minus from the >= constraint
  • non negative atricifical variable is also added
  • all the arificial variables then make an objective function which must be minimised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

what are the steps to minimising iterations?

A
  1. choose the most positive value from the minimised object function row
  2. do ratio test
  3. choose smallest row for pivital row
  4. complete iteration
  5. repeat until there are no more positive values in the minimised objective function row
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

what is a graph?

A

no axis, just a diagram made up of edges and vertices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
what are nodes/ vertices?
circles
26
what are edges /arcs?
lines connecting the dots
27
what is the degree/order of a vertex?
how many lines are coming out of that circle
28
what is a connected graph?
it is possible to go from any vertex to any other vertex
29
what is the relationship between the total order and the number of vertices?
* total order =12 * number of arcs = 6 | total order will always be an even number
30
what is a loop?
an edge that starts and finishes at the same vertex Order of a loop =2
31
what is a simple graph?
one with no loops and no multiple edges between two vertices
32
what is a complete graph?
one where every vertex is connected to every other vertex by an edge
33
How many arcs are in K(n)?
(n*n-1)/2
34
what is a digraph?
a graph where at least one edge has direction associated with it
35
what is a bipartite graph?
where the nodes are in two distinct sets. Each edge connects a emeber of the first set to a member in the second set. Points do not connect with any point within it’s own set
36
what is an incidence matrix?
shows the arrangment of edges between each node
37
what is isomorphism?
same number of nodes and orders of each node | between2 graphs
38
what is a trail?
a sequence of joined up edges, such that no edge is repeated | nodes can be used more than once
39
what is a path?
a sequenece of edges such that the end vertex on one edge is the dtart of the next. No vertex can be visited more than once
40
what is a cycle?
a closed path- where the first and last node are the same
41
what is a tree?
a simple connected graph with the minimum number of arcs. (If a single arc is removed it will no longer be a connected graph)
42
what is a spanning tree? | of graph G
a graph which contains all the vertcies of graph G and is also a tree
43
# Q: How many arcs are there in a tree with 10 nodes?
n-1 10-1=9
44
A simple connected graph G, has 8 vertices. * what is the minimum number of edges that G could have? * what is the maximum number of edges that G could have?
* minimum: 7 * maximum: (complete graph)
45
what is a eulerian/ traversible graph?
possible to make a trail that * uses all edges once * starts and ends at the same vertex | no nodes with odd degree
46
what is a semi eulerian/ traversable graph?
possible to make a trail * uses all edges once * starts and ends at difference vertices | will have exactly two odd nodes- start and end point
47
what is a network?
a value (weight) is added to each arc
48
49
Draw the incidence matrix for the following arrangement
50
51
What are the six steps to Prims algorithm (graphically) ?
52
53
What are some common errors in doing prims algorithm graphically?
* not starting from specific node given in the question * forming a cycle by accident * not looking at all the connected vertices * not showing working out of each edge * not stating the total weight
54
What are the steps to Prims algorithm (tabular)?
55
What are some common errors when doing Prims Algorithm (tabular)
* not deleting a row * not looking down on all the avaible rows * not recording edges and weights * not showing working out * not stating the total weight of MST
56
57
What is a greedy algorithm?
it maximises the immediate rewards without considering future choices/consequences
58
Why are the steps for carrying out Kruskal’s algorithm?
59
What are the common errors in kruskals algorithm?
* not listing the order of arcs * accidentally forming cycles (constnatly look at the graph)
60
Why can kruskals algorithm not be used in tabular form?
no way of knowing when cycle will be made | ∴ cannot be used by computers
61
62
63
What are the steps for Dijkstra’s algorithm?
64