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
Q

what are nodes/ vertices?

A

circles

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

what are edges /arcs?

A

lines connecting the dots

27
Q

what is the degree/order of a vertex?

A

how many lines are coming out of that circle

28
Q

what is a connected graph?

A

it is possible to go from any vertex to any other vertex

29
Q

what is the relationship between the total order and the number of vertices?

A
  • total order =12
  • number of arcs = 6

total order will always be an even number

30
Q

what is a loop?

A

an edge that starts and finishes at the same vertex
Order of a loop =2

31
Q

what is a simple graph?

A

one with no loops and no multiple edges between two vertices

32
Q

what is a complete graph?

A

one where every vertex is connected to every other vertex by an edge

33
Q

How many arcs are in K(n)?

A

(n*n-1)/2

34
Q

what is a digraph?

A

a graph where at least one edge has direction associated with it

35
Q

what is a bipartite graph?

A

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
Q

what is an incidence matrix?

A

shows the arrangment of edges between each node

37
Q

what is isomorphism?

A

same number of nodes and orders of each node

between2 graphs

38
Q

what is a trail?

A

a sequence of joined up edges, such that no edge is repeated

nodes can be used more than once

39
Q

what is a path?

A

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
Q

what is a cycle?

A

a closed path- where the first and last node are the same

41
Q

what is a tree?

A

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
Q

what is a spanning tree?

of graph G

A

a graph which contains all the vertcies of graph G and is also a tree

43
Q

Q:

How many arcs are there in a tree with 10 nodes?

A

n-1
10-1=9

44
Q

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?

A
  • minimum: 7
  • maximum: (complete graph)
45
Q

what is a eulerian/ traversible graph?

A

possible to make a trail that
* uses all edges once
* starts and ends at the same vertex

no nodes with odd degree

46
Q

what is a semi eulerian/ traversable graph?

A

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
Q

what is a network?

A

a value (weight) is added to each arc

48
Q
A
49
Q

Draw the incidence matrix for the following arrangement

A
50
Q
A
51
Q

What are the six steps to Prims algorithm (graphically) ?

A
52
Q
A
53
Q

What are some common errors in doing prims algorithm graphically?

A
  • 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
Q

What are the steps to Prims algorithm (tabular)?

A
55
Q

What are some common errors when doing Prims Algorithm (tabular)

A
  • 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
Q
A
57
Q

What is a greedy algorithm?

A

it maximises the immediate rewards without considering future choices/consequences

58
Q

Why are the steps for carrying out Kruskal’s algorithm?

A
59
Q

What are the common errors in kruskals algorithm?

A
  • not listing the order of arcs
  • accidentally forming cycles (constnatly look at the graph)
60
Q

Why can kruskals algorithm not be used in tabular form?

A

no way of knowing when cycle will be made

∴ cannot be used by computers

61
Q
A
62
Q
A
63
Q

What are the steps for Dijkstra’s algorithm?

A
64
Q
A