Network Design Flashcards

Longest and shortest path

1
Q

Greedy Algorithm

A

Makes the best decision “for now”

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

Postoptimality analysis

A

“What if” questions. Change paramater values, see change in result

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

Total weight of a graph

A

Sum of weights of all edges

W(G) = sum(i=1 to q) w(ei)

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

Kruskal’s Algorithm

A
  1. Pick shortest edge
  2. From remaining edges, pick shortest edge again (that doesn’t create a cycle)
  3. Repeat 2 until all vertices are connected
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Always give 2 answers:

A
Decision variables (ie set of sides) 
Value of objective function (total weight)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Prim’s algorithm

A
  1. Choose edge with minimum weight
  2. Add new edge with minimum weight that has 1 edge already selected (must be connected to what you already have)
  3. Repeat.
  4. When |S|=n-1, stop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Floyd’s Algorithm

A
  1. Number nodes 1-p and construct distance matrix D^0
  2. Let k=1
  3. Calculate new distance matrix D^k with d(jk)=min[d^(k-1) ij, d^(k-1) ik+d^(k-1) kj]
  4. Determine new values for the predecessor matrix
  5. Repeat until k=p
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Longest directed path algorithm

A

LATER

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

Dijkstra’s algorithm

A
  1. Table with columns for each node with lengths to connecting nodes
  2. All nodes are part of Bo. Ac is empty
  3. Mark starting node, Vp, with star and mark with distance 0. Bo = Bo{Vp} and Ac = AcU{Vp}
  4. Find node with shortest distance from all columns marked with a star. Let this node be V and circle the node with it’s distance (and star). Bo=Bo{V} Ac=AcU{V}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Max flow

A

FILL IN

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

Min cost flow

A

Fill in

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