decision 1

studied byStudied by 3 people
0.0(0)
Get a hint
Hint

first fit bin packing algorithm

1 / 39

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

40 Terms

1

first fit bin packing algorithm

put items into the first bin they will fit in

New cards
2

first fit decreasing bin packing algorithm

sort the list into descending order, then perform the first fit algorithm

New cards
3

full-bin bin packing algorithm

  • use inspection to find combinations of items that will fill bins

  • use the first fit algorithm on the items that do not form combinations

New cards
4

if the order is f(n) for n items, and its duration is t, then the duration for m items is ___

(f(m)/f(n)) x t

New cards
5

walk

a route from one vertex to the next

New cards
6

path

a walk where no vertex is revisited

New cards
7

cycle

a path that starts and ends at the same vertex

New cards
8

hamiltonian cycle

a cycle that visits every vertex

New cards
9

trail

a walk where no edge is revisited

New cards
10

eularian circuit

a trail where every edge is visited, that starts and ends at the same vertex

New cards
11

connected graph

a graph with path between any two vertices

New cards
12

simple graph

a graph with maximum one edge between vertices and no loops

New cards
13

complete graph

a graph with every vertex connected to every vertex

New cards
14

isomorphic graphs

graphs with the same information shown differently

New cards
15

planar graph

a graph which can be drawn with no crossing edges

New cards
16

steps for the planarity algorithm

  • find a hamiltonian cycle, draw this as a regular shape

  • draw in the remaining edges inside the cycle

  • select any internal edge and label it as I

  • inspect the unlabelled edges that intersect with this one

    • if any of the O edges intersect, the graph is non-planar

    • if none of the edges intersect, label them all O

  • select the next edge from any of the unlabelled edges

  • if all the edges are labelled the graph is planar

New cards
17

euler’s handshaking lemma

  • sum of vertices’ degrees = edges x 2

  • so you can never have an odd number of odd vertices

New cards
18

steps to find a MST using kruskal’s algortihm

  • order all edges by weight in ascending order

  • select the edge with the smallest weight, ‘accept‘ it if…

    • it does not form a cycle with the selected vertices

    • it connects a new vertex to the tree

  • MST is found once all vertices are connected to tree

  • show which edges are accepted and rejected

New cards
19

steps to find MST using prim’s algortihm

  • from the ‘start‘ vertex…

  • select the edge with the smallest weight that connects a new vertex to the MST

  • the selected edge must not create a cycle in the MST

  • MST is found once all vertices are connected to tree

  • show the order the edges are accepted

New cards
20

eulerian graph

all vertices have an even degree

New cards
21

shortest route to travel along all edges and return to start for an eulerian graph

the total weight of network

New cards
22

semi-eulerian graph

exactly two vertices have an even degree

New cards
23

shortest route to travel along all edges and return to start for a semi-eulerian graph

total weight of network + shortest distance between the odd vertices

New cards
24

how to handle route inspection problems where you can start/end anywhere

  • select odd vertices to start/end the route

  • this turns…

    • semi-eulerian into eulerian

    • 4 odd vertices to 2 odd vertices

New cards
25

classical travelling salesman problem

each vertex must be visited exactly once

New cards
26

practical travelling salesman problem

each vertex must be visited at least once

New cards
27

how to find the upper bound for TSP using MST

  • find MST

  • initial upper bound is MST weight x 2

  • reduce the initial upper bound by adding shortcuts

New cards
28

how to find the upper bound for TSP using Nearest neighbor algo

  • from start vertex

  • select the edge with the smallest weight that connects the current vertex to a new vertex

  • continue until all vertices are connected

  • add the weight that returns to start vertex

  • sum edges to find upper bound

New cards
29

how to find the lower bound for TSP using a residual minimum spanning tree? (RMST)

  • remove a vertex and its edges

  • find RMST using prims

  • reconnect removed vertex with its 2 shortest edges

  • lower bound = weight of RMST + 2 shortest edges

  • a higher lower bound is closer to the optimal solution

New cards
30

how to use graphical method to find a linear programming solution

  • feasible region is unshaded area

    • see which vertex maximises/minimises the objective function

    • test each vertex using substitution

New cards
31

steps to perform one stage simplex

  • select the pivot column (the one with the most negative value in the objective row)

  • calculate a θ for each row where θ = value/pivot column

  • select the pivot row (the row with the smallest positive θ)

  • make the pivot 1 by dividing the pivot row by the pivot column cell

  • replace the basic variable in the pivot row with variable from the pivot column

  • using row operations make other values in pivot column 0

  • check for negatives in objective row

    • if all values are non-negative, the optimal solution found

    • if not, repeat the process above

New cards
32

how to use simplex for minimising

negate the objective function then continue usinhg maximising approach

New cards
33

how to do two stage simplex

  • required for >= inequlaties

  • rewrite with surplus and artificial variables

  • find new objective function to minimise I

  • where I = (a1 + a2 + …)

stage 1

  • solve using simplex

  • if sum not = 0 no feasible sol

  • if sum = 0 move to stage 2

stage 2

  • [use basic feasible form from stage 1 as starting point for 2nd simplex]

New cards
34

how to do big-M method

  • rewrite constrants using surplus and artificial variables

  • modify objective function by subtracting M(a1 + …) from it

  • perform simplex function

  • ai start as basic variablesm by sum of artificial variables must be 0 for feasible solution

New cards
35

how to perform a forward pass to find early event times

  • start at source node

  • select the largest event time at each node

New cards
36

how to perform a backwards pass to find late event times

  • start at sink node

  • select the smallest event time at each node

New cards
37

how to find a critical path

  • early time = late time at each node

  • latest finish - earliest start - duration = 0 m

New cards
38

float

latest finish - earliest start - duration

New cards
39
New cards
40
New cards

Explore top notes

note Note
studied byStudied by 37 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 50 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 59666 people
Updated ... ago
4.9 Stars(331)
note Note
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 79 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(2)

Explore top flashcards

flashcards Flashcard282 terms
studied byStudied by 42 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard100 terms
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard243 terms
studied byStudied by 88 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard23 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard66 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard22 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard79 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)