COMP 360 Lecture Notes - Lecture 9: If And Only If, Maximum Flow Problem

42 views4 pages

Document Summary

If it is positive - this is the amount i want to consume at this node. (demand > supply) If it is negative - this is the amount i want to produce at this node (supply > demand> Circulation is a function (like flow): - for each e in e: 0 <= f(e) <= c. f(e) where c = capacity. There is a way to encode the circulation problem from the max flow problem. I add edges from the source to all the "supply" nodes with edge capacities = I add edges from the "demand" nodes to the sink nodes with edge capacities = With this graph i have a circulation iff the max flow = sum of edges leaving the source. In the new graph g" all the edges leaving "s" and all edges entering "t" are satiated with the flow which is equal to the capacity of the edge.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents