Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Question: Consider the following simple network with edge capacities as shown.

a) Show that, if the Ford-Fulkerson algorithm is run on this graph, a careless choice of updates might cause it to take 1000iterations. Imagine if the capacities were a million instead of 1000.

We will now find a strategy for choosing paths under which the algorithm is guaranteed to terminate in a reasonable number of iterations.

Consider an arbitrary directed network (G=V,E,s,t,ce)in which we want to find the maximum flow.Assume for simplicity that all edge capacities are at least 1, and define the capacity of an s - t path to be the smallest capacity of its constituent edges. The fattest path from s to t is the path with the most capacity.

b) Show that the fattest s - t path in a graph can be computed by a variant of Dijkstra’s algorithm.

c) Show that the maximum flow in Gis the sum of individual flows along at most|E|paths from s to t.

d) Now show that if we always increase flow along the fattest path in the residual graph, then the Ford-Fulkerson algorithm will terminate in at mostO(ElogF) iterations, where F is the size of the maximum flow. (Hint: It might help to recall the proof for the greedy set cover algorithm in Section 5.4.)

In fact, an even simpler rule—finding a path in the residual graph using breadth-first search— guarantees that atO(V.E)most iterations will be needed.

Short Answer

Expert verified

(a) It iterates 2000 times.

(b) It can be shown that the fattest path in a graph can be computed by modifying Dijkstra’s algorithm.

(c) It can be shown that maximum flow in G is the sum of individual flows along at most Epaths from s to t.

(d) Yes, The flow can be increased along the fattest path in at most OElogFiterations.

Step by step solution

01

Explain Integer Linear Program

The principle behind the method is that the transmit flow down one of the pathways from the source (start node) to the sink (end node), as long as there is adequate capacity on all edges of the path. Then we discover a new way, and so on. An augmenting route is one that has available capacity

02

Step 2:Show that, if the Ford-Fulkerson algorithm run on the given graph.

(a)

The Ford-Fulkerson algorithm is to find the maximum flow by searching for incremental paths in the residual graph. If the incremental path found for the first time is SBATby continuing the routine, then the incremental flow would be SBAT. So that only one incremental path with flow 1 is found each time and a total of to iterate 2000 times.

Therefore, the total of 2000 iteration.

03

Show that the fattest s - t path in a graph can be computed by a variant of Dijkstra’s algorithm.

(b)

The Dijkstra’s algorithm can be used here depending on the fact that if a capacity of the path is sKrtis equal to c or greater than c.

Consider that cp(v) be the capacity value of all paths from s to v. Initialize cp(v) to 0 and then the Dijkstra’s algorithm can be modified as follows,

for all edgesu,vE:

ifcpv<mincp(u),cu,vcpv=mincp(u),cu,vK

Therefore, It has been shown that the fattest s - t path in a graph can be computed by a variant of Dijkstra’s algorithm.

04

Show that the maximum flow in   is the sum of individual flows along at most   paths from   to  .

(c)

Consider a graph G(V,E), that has a minimum cut, that each cut edge e corresponds to exactly a path pethat is equal to c(e).The sum of the peis the maximum flow because the number of cut edges Ewill not exceed the number of paths.

Therefore , it can be seen as the maximum flow that cannot be aggregated by more than Eedge paths.

05

Show that at the given condition, the Ford-Fulkerson algorithm will terminate at most O(ElogF) iterations.

(d)

Consider the graph that the graph G(V,E) with the largest flow F, that can be summed up by not more than E paths. Then the flow of the fattest path must not be less than FE. Consider the maximum flow be C co-graph after the tthiteration, the relation is obtained as follows,

ct+1-ctE

Therefore, the number of iterations are O(ElogF).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Consider the following generalization of the maximum flow problem.

You are given a directed network G=(V,E)with edge capacities {ce}. Instead of a single (s,t)pair, you are given multiple pairs (s1,t1),(s2,t2),,(sk,tk), where the siare sources of Gand tithe are sinks of G. You are also given kdemands d1,,dk. The goal is to find kflows f(1),,f(k)with the following properties:

  • f(i)is a valid flow fromSi toti .
  • For each edge e, the total flowfe(1)+fe(2)++fe(k) does not exceed the capacityce .
  • The size of each flowf(i) is at least the demand di.
  • The size of the total flow (the sum of the flows) is as large as possible.

How would you solve this problem?

Question: Duckwheat is produced in Kansas and Mexico and consumed in New York and California. Kansas produces 15 shnupells of duckwheat and Mexico 8. Meanwhile, New York consumes 10 shnupells and California 13. The transportation costs per shnupell are \(4 from Mexico to New York, \)1 from Mexico to California, \(2 from Kansas to New York, and \)3 and from Kansas to California. Write a linear program that decides the amounts of duckwheat (in shnupells and fractions of a shnupell) to be transported from each producer to each consumer, so as to minimize the overall transportation cost

Find necessary and sufficient conditions on the reals a and b under which the linear program

maxx+yax+by1x,y0

(a) Is infeasible.

(b) Is unbounded.

(c) Has a unique optimal solution.

Matching pennies. In this simple two-player game, the players (call them Rand C) each choose an outcome, heads or tails. If both outcomes are equal, Cgives a dollar to R; if the outcomes are different, Rgives a dollar to C.

(a) Represent the payoffs by a2×2 matrix.

(b) What is the value of this game, and what are the optimal strategies for the two players?

Consider the following network (the numbers are edge capacities).

(a)Find the maximum flow fand a minimum cut.

(b)Draw the residual graphGf (along with its edge capacities). In this residual network, mark the vertices reachable fromS and the vertices from whichT is reachable.

(c)An edge of a network is called a bottleneck edge if increasing its capacity results in an increase in the maximum flow. List all bottleneck edges in the above network.

(d)Give a very simple example (containing at most four nodes) of a network which has no bottleneck edges.

(e)Give an efficient algorithm to identify all bottleneck edges in a network.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free