(W9) Network Flows Flashcards

(10 cards)

1
Q

What is a Bipartite Graph?

A

A graph where the vertices can be seperated into two disjoint subsets L and R.

every edge goes from a vertex in L to a vertex in R

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

How to do Bipirtate Matching?

A

Suppose you want to match a vertex from L to a vertex in R.

This can be sold with the FordFulkerson method

Give each edge a capacity of 1, then run the ford fulkerson method - and inspect the edge to see if the flow is 1

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

What does a circulation of demands graph look like (without modification)

A

No single source or sink, rather each vertex has a demand

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

What is the meaning of the value of the Demand

A
  • If demand > 0: then it wants to receive x more units of flow in than going out
  • If demand = 0: then inbound = outbound
  • If demand < 0: then it wants to expel x more units out than coming in
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the two constraints when dealing with Circulation of Demand problems?

A
  1. (Capacity) The flow along an edge must not exceed the capacity of that edge
  2. (Demand) Inbound - outbound = demand for each vertex
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you solve a circulation of demands problem

A

Create a super graph G’
1. Add a super-source vertex s
2. For each vertex v with demand < 0 - add an edge from super-source to v with -demand (so will be positive)
3. Add a super-sink vertex t
4. For each vertex v with demand > 0 - add an edge from v to super-sink with demand

Solve the max-flow problem on G’ to obtain the maximum flow

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

What are two other notes to consider when looking at Circulation of Demands problems?

A
  • The sum of all demands must be 0 (as otherwise - globally there would be an oversupply and an undersupply)
  • The flow of the of G’ cannot be greater than the demand
    § As the cut S = {s} has the capacity equal to D by construction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the constraints on a circulation of demands problem with lower bounds?

A
  • (Capacity) the flow along the edge must be between min and capacity
  • (Demand) Inbound - outbound = demand for each vertex
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is our approach when doing circulation of demands with lower bounds?

A
  • Reduce this to a normal circulation of demands problem - with no lower bound
  • Basically, we will shift the lower bound into the demands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the solution to a circulation of demands with lower bounds problem?

A

○ First - shift the lower bond
§ Preload the flow with f’ = fedge - lower_bound
§ Then, capacity = capacity - lower_bound
○ Second - adjust the node demands to account
§ For each edge (u,v)
□ Demand(u) += lower
□ Demand (v) -= lower
○ Then solve as a normal circulation of demands problem

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