8.2 Applications of Ford-Fulkerson Flashcards
What is a circulation network
Problem: determine if valid circulation exists
Node value = how much it consumes
How to reduce a circulation problem to a maximum flow problem (and what algorithm to use)
Connect the source vertex to every ‘source’ (d<0), connect sink to every ‘sink’ vertex (c>0). Use Edmonds-Karp to check if sum of sources = - sum of sinks (ie valid circulation)
What is a vertex flow network
Each vertex has a capacity
How to solve a vertex flow network (using a gadget)
Split each vertex into an input and output vertex, with the edge capacity connecting them
How to transform flow networks into linear programming
Obj: max flow (out of source)
Add all constraints:
1) Inflow = outflow for each edge (except s, t)
2) Edge capacities