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?

Short Answer

Expert verified

The problem is solved by the linear program for max flow as follows:

Maximize the flow of the network:

maxi=1k(u,ti)ÎEf(u,ti)(i)

Compare the flow :

eE:fe(1)+fe(2)+fe(i)ce

vV:uvEfuv(i)=uwEfuw(i)

f(i)=(u,t)Ef(u,ti)(i)dife(i)0

Step by step solution

01

Explain the demands in the given problem

The generalization of the maximum flow problem considers the directed network with the edge capacities {ce}. Multiple pairs of sources and sinks are given. There is a demandd1,,dk for each flow.

The maximum flow aims to send as much data as possible from source to sink without exceeding the edge weights.

02

Give the solution to determine the maximum flow problem.

The maximum flow with the demands and to maximize the flow the solution is found by the linear program as follows.

Maximize the flow of the network:

maxi=1k(u,ti)Ef(u,ti)(i)

Compare the flow with the edge capacity, that the total flow does not exceed the edge capacity.

eE:fe(1)+fe(2)+fe(i)ce

The number of the entering and the leaving edges are equal.

vV:uvEfuv(i)=uwEfuw(i)

The size of the flow is at least the demand.

f(i)=(u,t)Ef(u,ti)(i)dife(i)0

The size of the total flow is greater than zero.

Therefore, the problem is solved by the linear program for max flow.

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

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

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).

Moe is deciding how much Regular Duff beer and how much Duff Strong beer to order each week. Regular Duff costs Moe \(1 per pint and he sells it at \)2 per pint; Duff Strong costs Moe $1.50 per pint and he sells it at per pint. However, as part of a complicated marketing scam, the Duff company will only sell a pint of Duff Strong for each two pints or more of Regular Duff that Moe buys. Furthermore, due to past events that are better left untold, Duff will not sell Moe more than 3,000 pints per week. Moe knows that he can sell however much beer he has. Formulate a linear program for deciding how much Regular Duff and how much Duff Strong to buy, so as to maximize Moe’s profit. Solve the program geometrically.

Write the dual to the following linear program.

maxx+y2x+y3x+3y5x,y0

Find the optimal solutions to both primal and dual LPs

Suppose someone presents you with a solution to the max-flow problem on some network. Give a linear-time algorithm to determine whether the solution does indeed give a maximum flow.

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