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.

Short Answer

Expert verified

(a) and (b) can be reduced to original max-flow. Also, (c) and (d) will be reduced to linear programming.

Step by step solution

01

Step-1:Solve the variation of maximum flow in subpart (a)

(a)

Consider that, GV,E is a graph where V and E are set of vertices and edges respectively of graph G.S is Source nose or starting node. T is Terminating or sink node. I is Internal nodes which not include S or T.

The reduced graph from multi-source, multi-sink flow to single-source, single-sink flow will be G'V',E'.

Here, V'=s,t+VandE'=s,a,laS+E+b,t,lbT.

Therefore, the given variation can be solved for Maximum flow s-t on graph G'.

02

Step-2:Solve the variation of maximum flow in subpart (b)

(b)

Let there be a vertex vV and Cv be the capacity(weight) of the vertex v.

Reduce from node-capacity maximum flow to simple max flow will be:

Consider, G'V',E'withV'=ainaV+aoutaVandE'=ain,aout,CaE+aout,Bin,Ca,ba,bE,

Therefore, The given variation can be solved for maximum flow on sin- tout graph G'.

03

Step-3:Solve the variation of maximum flow in subpart (c)

(c)

Consider that i:Ne, be the bijective mapping(means every element has being matched) between the edge of the graph and set of natural numbers. Ci,Capacity of edge i, Li, lower bound of i, and F, Flow along the edge i .

Maximize the sum of fi , i.e.,

Maximize:ies,vfi

Constraints:

fiCifor alliE (Capacities)

fiLifor alliE (Lower Bounds)

iintovfi-joutofvfjfor allvV-s,t (Conservation)

Therefore, The given variation can be solved for maximum flow.

04

Step-4: Solve the variation of maximum flow in subpart (d)

(d)

Consider that, ev be the loss coefficient along each of the node, such thatout-flow=1-evinflow(v) for all internal nodes l.

Maximize the sum of all values of fi

Maximize:is,vfi

Constraints:

localid="1659791095962" fiCifor alliE (Capacities)

iintov1-eifi-joutofvfjfor allvV-s,t (Lossy Conservation).

Therefore, The given variation can be solved for maximum 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

Write the dual to the following linear program.

maxx+y2x+y3x+3y5x,y0

Find the optimal solutions to both primal and dual LPs

A cargo plane can carry a maximum weight of 100 tons and a maximum volume of 60 cubic meters. There are three materials to be transported, and the cargo company may choose to carry any amount of each, up to the maximum available limits given below.

  • Material 1 has density 2tons/cubicmeters, maximum available amount 40 cubic meters, and revenue \(1,000 per cubic meter.
  • Material 2 has density 1ton/cubicmeters,maximum available amount 30 cubic meters, and revenue \)1,200 per cubic meter.
  • Material 3 has density 3tons/cubicmeters, maximum available amount 20 cubic meters, and revenue $12,000 per cubic meter.

Write a linear program that optimizes revenue within the constraints.

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

Direct bipartite matching. We’ve seen how to find a maximum matching in a bipartite graph via reduction to the maximum flow problem. We now develop a direct algorithm.

Let G=(V1V2,E)be a bipartite graph (so each edge has one endpoint in V1and one endpoint in V2), and letMEbe a matching in the graph (that is, a set of edges that don’t touch). A vertex is said to be covered byMif it is the endpoint of one of the edges in M. An alternating path is a path of odd length that starts and ends with a non-covered vertex, and whose edges alternate between Mand E-M.

(a) In the bipartite graph below, a matching Mis shown in bold. Find an alternating path.


(b) Prove that a matchingMis maximal if and only if there does not exist an alternating path with respect to it.

(c) Design an algorithm that finds an alternating path inO(|V|+|E|)time using a variant of breadth-first search.

(d) Give a directO(|V|-|E|)algorithm for finding a maximal matching in a bipartite graph.

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.

Sign-up for free