/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q31E Question: Consider the following... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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 S→B→A→Tby continuing the routine, then the incremental flow would be S→B→A→T. 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 s→K→r→tis 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,v∈E:

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 91Ó°ÊÓ!

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

Question: A linear program for shortest path. Suppose we want to compute the shortest path from node s to node t in a directed graph with edge lengths le>0.

a) Show that this is equivalent to finding an s - tflow fthat minimizes ∑elefesubject to size (f) = 1. There are no capacity constraints.

b) Write the shortest path problem as a linear program.

c) Show that the dual LP can be written as

role="math" localid="1659250472483" maxxs-xtxu-xv≤luvforall(u,v)∈E

d) An interpretation for the dual is given in the box on page 223. Why isn’t our dual LP identical to the one on that page?

Consider the following linear program.

maximize 5x+3y

5x-2y≥0x+y≤7x≤5x≥0y≥0

Plot the feasible region and identify the optimal solution.

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

There are many common variations of the maximum flow problem. Here are four of them.

(a) There are many sources and many sinks, and we wish to maximize the total flow from all sources to all sinks.

(b) Each vertex also has a capacity on the maximum flow that can enter it.

(c) Each edge has not only a capacity, but also a lower bound on the flow it must carry.

(d) The outgoing flow from each node u is not the same as the incoming flow, but is smaller by a factor of (1-∈U), whererole="math" localid="1659789093525" ∈u is a loss coefficient associated with node u.

Each of these can be solved efficiently. Show this by reducing (a) and (b) to the original max-flow problem, and reducing (c) and (d) to linear programming.

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?

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.