Differences
This shows you the differences between two versions of the page.
| courses:cs211:winter2018:journals:holmesr:section_7.1 [2018/04/02 15:27] – created holmesr | courses:cs211:winter2018:journals:holmesr:section_7.1 [2018/04/03 03:37] (current) – holmesr | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Section 7.1 The Maximum-Flow Problem and the Ford-Fulkerson Algorithm ====== | ====== Section 7.1 The Maximum-Flow Problem and the Ford-Fulkerson Algorithm ====== | ||
| + | To begin our discussion of the Maximum-Flow problem and the Ford-Fulkerson algorithm (FF), we must first lay down some terminology. The network on which we will be measuring flow can be represented as a graph with nodes and edges. Each edge e has a non-negative capacity, which will be referred to as c< | ||
| + | There are also two properties that a flow must have to be reasonable for us to examine. The first of these conditions are the capacity conditions, which state that for each edge in our set of edges, the flow carried by the edge must be between zero and the capacity of the edge, inclusive. We also have the conservation conditions, which state that for each node in our set of nodes, the sum of the flows into the node must be equal to the sum of the flows out of the node. | ||
| + | |||
| + | After some consideration, | ||
| + | |||
| + | Now we are able to discuss " | ||
| + | |||
| + | Since our algorithm will only run on integer values for capacities and the capacity will increase by at least 1 during each iteration, then the loop driving the algorithm will run for at most the number of times which is the sum of the capacities of the edges coming out of the source node. Extending this, we can say that, since the residual graph which is the product of the augment function inside the loop, runs in O(m) time, the entire FF algorithm will run in O(mC) time. | ||
