Flow network Flashcards

1
Q

What is a flow network and what is the capacity of each arc?

A

Weighted, directed graph with nodes s, t where s is the source and t is the destination.
* s has only out neighbours
* t has only in neighbours
Capacity of arc = weight

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

What is the maximal flow problem?

A

Find max flow F from s -> t subject to:
- flow along arc does not exceed capacity
- Flow into vertex = flow out of vertex

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

What are the 3 variables defined for each arc?

A

cij = capacity
fij = flow
eij = excess capacity (c - f)

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

How do we find the maximum flow through a network?

A

Max flow = capacity of min cut

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

What is the goal of the minimum cost flow?

A

Let dij = unit cost of flow through arc
Goal is to minimise cost (flow * cost) subject to capacity restrictions and total flow = F

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

What are the steps for the minimum cost flow?

A
  1. Initialse total flow G = 0 and cost T = 0
  2. Create labels on each arc (f, e, d)
  3. P = shortest path from source to sink using cost, p = length of path
  4. b minimum of excess capacity on the arcs in P and F-G (flow needed - current flow) (This is the minimum between excess capacity in shortest path and how much flow is still needed to push.)
  5. Assign b uunits of flow to each arc in P and add bp to T.
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