/*! 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} Q20E Consider the following generaliz... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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:

max∑i=1k∑(u,ti)ÃŽ·¡f(u,ti)(i)

Compare the flow :

∶Äe∈E:fe(1)+fe(2)+…fe(i)≤ce

∶Äv∈V:∑uv∈Efuv(i)=∑uw∈Efuw(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:

max∑i=1k∑(u,ti)∈Ef(u,ti)(i)

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

∶Äe∈E:fe(1)+fe(2)+…fe(i)≤ce

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

∶Äv∈V:∑uv∈Efuv(i)=∑uw∈Efuw(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 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

Show that the change-making problem (Exercise) can be formulated as an integer linear program. Can we solve this program as an LP, in the certainty that the solution will turn out to be integral (as in the case of bipartite matching)? Either prove it or give a counterexample.

A quadratic programming problem seeks to maximize a quadratic objective function (with terms like 3x12or5x1x2) subject to a set of linear constraints. Give an example of a quadratic program in two variables x1, x2 such that the feasible region is nonempty and bounded, and yet none of the vertices of this region optimize the (quadratic) objective.

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.

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?

You are given the following points in the plane:

(1,3),(2,5),(3,7),(5,11),(7,14),(8,15),(10,19)

.You want to find a lineax+by=c that approximately passes through these points (no line is a perfect fit). Write a linear program (you don’t need to solve it) to find the line that minimizes the maximum absolute error,max1≤i≤7|axi+byi−c|

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.