Documents

Network Flow

Description
aaa
Categories
Published
of 9
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  Network Flow The network flow problem is as follows:Given a connected directed graph G with non-negative integerweights, (where each edge stands for the capacity of that edge),and two distingished vertices, s and t, called the sorce andthe sink, sch that the sorce only has ot-edges and the sink only has in-edges, find the ma!imm amont of somecommodity that can flow throgh the network from sorce tosink #ne way to imagine the sitation is imagining each edge as apipe that allows a certain flow of a li$id per second Thesorce is where the li$id is poring from, and the sink iswhere it ends p %ach edge weight specifies the ma!imalamont of li$id that can flow throgh that pipe per second Given that information, what is the most li$id that can flowfrom sorce to sink per second, in the steady state&'ere is an e!ample:  a -----* b+    . /  0 1 1 .s 1 12 t, with an edge from b-*c with . 1 / 1  capacity 34 . v 1  0 c ------*d 0is the graph, and here is an e!ample of a flow in the graph:    a -----* b    . 5   1 1 .s 1 12 t, with an edge from b-*c with . 1 / 1  flow of 0 6 . v 1  0 c ------*d 7n order for the assignment of flows to be valid, we mst havethe sm of flow coming into a verte! e$al to the flow comingot of a verte!, for each verte! in the graph e!cept the sorceand the sink This is the conservation rule.  8lso, each flow mstbe less than or e$al to the capacity of the edge This is thecapacity rule.  The flow of the network is defined as the flow from the sorce,or into the sink For the sitation above, the network flow is 3   9ts 8 ct is a partition of vertices ( s ,  t ) sch that the s  s  andt  t . An edge that goes from u to v is a forward edge if u    s and v  t . If the opposite is true, then it is a backward edge.Also let F equal the flow of a network.For any cut, define the flow across the cut to be the sum of theflows of the forward edges minus the sum of the flows of thebackwards edges. The flow across any cut equals the flow of a network. In our previous example, the flow was 19. Consider the flowacross the cut  s  = {s, a, b}. We have three forward edges withflows of 8, 4, and 15 and two backward edges with flows of 1and 7. Summing, we have 8+4+15-1-7 = 19, as desired.I will supplement the proof in the book by making thefollowing observations:1) The sum of the flows of all the vertices in  s  is the flow of thenetwork because this sum is 0 for all non-source vertices in  s ,and equal to the flow at the source.2) We need only to show that the flow NOT across  s   is / Thisis tre simply becase no edge in  s  leads into s. They all leadto each other. Thus, the net flow of all the edges within  s  is /,becase for two different vertices in  s  we add and subtract thesame flow for an edge.  We can use this to show that the flow of a network can notexceed the capacity of any cut.Simply put, our best case is if we don't have any backwardedges with flow. In this case, we are simply left with forwardedges, each with a particular capacity. The sum of thesecapacities is the capacity of the cut, and an upperbound on theflow of that cut. Maximum Flow We will use two ideas to help us determine whether or not aflow is maximum. Namely, we must show that absolutely nomore flow could be added, no matter how we adjust each edge.The ideas we will look are  residual capacity  and  augmenting paths. The residual capacity of an edge from vertex u to vertex v issimply its unused capacity - the difference between its capacityand its flow in the direction of the edge. In the oppositedirection (from v to u), this value is defined as the flow of theedge. Also, the residual capacity of a path is defined as the minimumof the residual capacities of the edges on that path. Thisparticular value is the maximum excess flow we can push down

Untitled

Jul 23, 2017
Search
Tags
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks