/*! 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

The Canine Products company offers two dog foods, Frisky Pup and Husky Hound, that are made from a blend of cereal and meat. A package of Frisky Pup requires 1 pound of cereal and 1.5pounds of meat, and sells for \(7. A package of Husky Hound uses 2 pounds of cereal and 1 pound of meat, and sells for \)6. Raw cereal costs\(1per pound and raw meat costs\)2per pound. It also costslocalid="1658981348093" \(1.40to package the Frisky Pup and localid="1658981352345" \)0.60to package the Husky Hound. A total of localid="1658981356694" 240,000pounds of cereal and pounds of meat are available each month. The only production bottleneck is that the factory can only package 110,000bags of Frisky Pup per month. Needless to say, management would like to maximize profit.

(a) Formulate the problem as a linear program in two variables.

(b) Graph the feasible region, give the coordinates of every vertex, and circle the vertex maximizing profit. What is the maximum profit possible?

Hollywood. A film producer is seeking actors and investors for his new movie. There are n available actors; actori chargesSj dollars. For funding, there arem available investors. Investorj will providepj dollars, but only on the condition that certain actorsLj⊆{1,2,...,n} are included in the cast (all of these actorsLj must be chosen in order to receive funding from investorrole="math" localid="1658404523817" j ).

The producer’s profit is the sum of the payments from investors minus the payments to actors. The goal is to maximize this profit.

(a) Express this problem as an integer linear program in which the variables take on values {0,1}.

(b) Now relax this to a linear program, and show that there must in fact be an integral optimal solution (as is the case, for example, with maximum flow and bipartite matching).

In a satisfiable system of linear inequalities

a11x1+···+a1nxn≤b1:am1x1+···+amnxn≤bm

we describe the inequality as forced-equal if it is satisfied with equality by every solution x = (x1,...,xn)of the system. Equivalently,Piajixi≤bj is not forced-equal if there exists an x that satisfies the whole system and such that Piajixi≤bj.

For example, in

x1+x2≤2-x1-x2≤-2x1≤1-x2≤0

An edge of a flow network is called critical if decreasing the capacity of this edge results in a decrease in the maximum flow. Give an efficient algorithm that finds a critical edge in a network

Write the dual to the following linear program.

maxx+y2x+y⩽3x+3y⩽5x,y⩾0

Find the optimal solutions to both primal and dual LPs

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.