Decision Flashcards

(30 cards)

1
Q

What is Dijkstra’s algorithm?

A
  1. Choose the starting node of order 1, permeant label 0 and 0 workings
  2. Choose the next node with the least weight and label this 2
  3. Look at the workings across the entire graph and then choose the one of least weight
  4. Remember to add the weight from connected nodes
  5. Recite the path of shortest length back through network using common sense
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the simplex algorithm?

A
  1. Rearrange maximum equation to 0
  2. Add slack variables
  3. Column it
  4. Pivot column is the smallest negative in profit row
  5. Divide other rows by the pivot column to decide pivot row
  6. The intersect of row and column is pivot element
  7. Equate all values in privity column to 0 apart from pivot element that goes to 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a tour?

A

A route that visits every vertex, returning to the starting vertex

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

What is a Hamiltonian cycle?

A

A tour that passes through every vertext once and only once returning to the original vertex

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

What is the travelling salesmen method?

A
  1. Choose a vertex and delete all connected arcs
  2. Find minimum spanning tree for remaining graph
  3. Add up tree weight then add the two shortest arcs of the deleted vertex
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the route inspection method?

A
  1. Locate all odd vertices
  2. Put them in pairs and find shortest route between them
  3. Choose pairing of shortest weight and add extra arcs to the paths
  4. Calculate total weight of graph with repeated arcs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the method from linear programming?

A
  1. Define variables
  2. Set objective
  3. Apply constraints
  4. Draw graphically with constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the point testing method?

A

Take the vertices if the region and put into the maximise or minimise equation, best value is optimum point

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

What is the objective line method?

A
  1. Take the constraints and find X and y values

2. Keep the ruler parallel and move outwards to find the optimum point

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

What are spanning trees?

A

Any graph that connects all the nodes

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

What is Prims algorithm?

A
  1. Have a starting point
  2. Choose the shortest length
  3. Choose the shortest length from the nodes already used
  4. Cannot make a cycle
  5. Write our order and total weight
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is kruskals algorithm?

A
  1. Write out lengths from smallest to largest
  2. Start with arc of least length
  3. Take next edge, checking to see if it makes a cycle
  4. Continue until a connected graph is made
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Prims algorithm using matrix form?

A
  1. Select a node and label it 1, then cross out that entire row
  2. Look down column and look for the smallest weight
  3. Identify this value and cross out that row
  4. Look down both columns and identify smallest value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a trail/ route?

A

A single sequceb with no jumps

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

What is a path?

A

A trail where no bode is used more than once

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

What is a closed trail?

A

The first and final nodes are the same

17
Q

What is a cycle?

A

A closed trail where only the first and final nodes are the same

18
Q

What is the order of a node?

A

The number of arcs leaving the node

19
Q

What does eularian mean?

A

Each node is an even order

20
Q

What is semi-eularian?

A

Exactly 2 odd nodes in the graph

21
Q

What if a graph has more than 2 odd nodes?

A

It is neither eularian or semi-eularian

22
Q

What is the first fit bin packing algorithm?

A

Place each object in the first available space

23
Q

What is the first fit decreasing algorithm?

A
  1. Write the list into decreasing order of weight

2. Use first fit algorithm

24
Q

What is a simple graph?

A

There’s no loops, no two nodes connected

25
What is a connect graph?
Every node is connected to all other nodes directly or indirectly
26
What is a complete graph?
Every node is connected to each other node by one arc only
27
What is the bubble sort algorithm?
1. Compare 1st and 2nd then swap if the 2nd is smaller 2. Compare 2nd and 3rd, then swap if 3rd is smaller 3. Continue until the whole list is gone through 4. Once through is called a pass
28
What is the shuttle sort algorithm?
1. Compare 1st and 2nd and swap if necessary 2. Compare 2nd and 3rd and swap if necessary 3. If a swap occurs then compare 1st and 2nd number 4. This once through is a pass
29
If starting and finishing at different places on a route inspection , what needs to happen?
The finishing and starting nodes need to be odd and hence the graph semi-eularian
30
What must the sum of orders of a graph must be?
Even