Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

The dual of maximum flow. Consider the following network with edge capacities

(a) Write the problem of finding the maximum flow from StoTas a linear program.

(b) Write down the dual of this linear program. There should be a dual variable for each edge of the network and for each vertex other than S,T.

Now we’ll solve the same problem in full generality. Recall the linear program for a general maximum flow problem (Section 7.2).

(c) Write down the dual of this general flow LP, using a variableyefor each edge and xufor each vertexus,t.

(d) Show that any solution to the general dual LP must satisfy the following property: for any directed path from in the network, the sum of the yevalues along the path must be at least 1.

(e) What are the intuitive meanings of the dual variables? Show that anystcut in the network can be translated into a dual feasible solution whose cost is exactly the capacity of that cut.

Short Answer

Expert verified

a)The maximum flow fromStoT as a linear program is given below.

b)The dual of this linear program is defined below.

c)The dual of this general flow LP, using a variableye for each edge andxu for each vertexus,t. is proved.

d)For any directed path fromStoT in the network, the sum of the valuesye along the path must be at least one is proved.

e) The network can be translated into a dual feasible solution whose cost is exactly the capacity of that cut is given below.

Step by step solution

01

Maximum Flow Diagram of Following Network

a).

There are different graph show the different network connectivity base of figures but calculation show all diagram is concern with same theory of flow which is LP. The final and the maximum flow of the directed graph is defined asSABT:

And its flow is defined as,Flow=flow+1

Here, the problem of finding the maximum flow fromStoTas a linear program

In this graph given a directed graph contain minimal spanning tree (MST as a minimum spanning tree) is a subgroup of something like a tree that has the shortest packets from the source to all of its vertex points. A graph G=(V,E)Some minimum spanning tree is shown, along with edge weights that are positive. T=(V,E) such as relation to all of these weights. Take a look at the clustering lists. GraphG andT are supplied. After this step suppose that a particular edge’s weight is altered fromw(e) to w'(e).

Here, the source or the starting vertex is s and the sink called as the end vertex is T here the shortest path covered in the graph is defined below, the second graph is called as residual graph. in the first graph a network is defined from source vertex to the sink node.

The final and the maximum flow of the directed graph is defined as:

SABT

Flow=flow+1

02

Dual of this linear program.

b)

The dual of this linear program, And here should be a dual variable for each edge of the network and for each vertex other than S,T.

The dual problem of this graph is defined as, And here should be a dual variable for each edge of the network and for each vertex other than A,Bvertices.

The networks we are dealing with consist of a directed graph G=(V,E);

Two special nodes s,tV, which are, respectively, a source and sink of G; and capacities ce>0on the edges. We would like to send as much oil as possible without exceeding the capacities of any of the edges.

A particular shipping scheme is called a flow and consists of a variable for each edge e of the network, satisfying the following two properties:

  1. It doesn’t violate edge capacities:

0feceforalleE.

For all node the amount of flow entering u equals the amount leaving :

X(w,u)Efwu=X(u,z)Efuz.

In other words, flow is conserved. The size of a flow is the total quantity sent from s to t and, by the conservation principle, is equal to the quantity leaving

s:size(f)=X(s,u)Efsu.

In short, our goal is to assign values to that will satisfy a set of linear constraints and maximize a linear objective function. But this is a linear program .The maximum-flow problem reduces to linear programming.

The dual problem of this graph is defined as, And here should be a dual variable for each edge of the network and for each vertex other than vertices

Dual Problem:

MinCeye

s:size(f)=X(s,u)Efsu.

s.tzw-zv+ye>0 ,

0feceforalleE.

Zs=1 ,Zs=0 ,

ye0

03

Step 3: The general flow LP.

c)

The dual of this general flow LP, by using a variable yefor each edge and xufor each vertexus,t.is defined as, in the graph four vertices and five edges are given where the maximum flow path is evaluated as SABTand the flow is given as, Flow=flow+1

.

Analyse how minimum spanning t until one of the edges is heavier than the othereE'. And itis increased Lete=(u,v)and just let the subtrees that were created by deleting themebe Tvand.Tu With BFS (breadth first search )(ignoring weights of edges) , It really is possible to detect whichever vertices are all in theTu and which are inTv .

Assume each node is marked with its membership.

Each edge is checked and edge e'with having one endpoint TuandTvhaving the other only are kept.

Hence, the general flow is defined as,

.Flow=flow+1

In the manner of SABT.

04

This statement is proved.

d)

A solution to the general dual LP must satisfy the following property: for any directed path fromstot in the network, the sum of the yevalues along the path must be at least 1.

And here no more path left :

Implementation :

An augmenting path in residual graph can be follow using DFS (depth first search) and BFS (breadth first search). Duality of Linear programming:

Prinet problem:

zp=max{Ctx|AxSb,xRn}

Dual Problem:

Wo=min{btu|Atu=c,uo}

Maximum Flow and Duality:

Primal problem:

Maxe.source(a)=xeS-e.taged(a)=xeS

s.te.source(a)V-e.taged(e)=XeV=0

0xeCe

05

Step 5: Network into a dual feasible solution.

e).

The intuitive meanings of the dual variables that any s-tcut in the network can be translated into a dual feasible solution whose cost is exactly the capacity of that cut.

Dual Problem:

MinCeye,s.tzw-zv+ye>0

Zs=1,Zs=0

ye0

Maximum Flow & Duality:

1). Let (yu,zu) be an optimal solution of dual

2). (S,T) is a minimum cut.

3). Max flow min cut there is special case of LP duality.

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

The pizza business in Little Town is split between two rivals, Tony and Joey. They are each investigating strategies to steal business away from the other. Joey is considering either lowering prices or cutting bigger slices. Tony is looking into starting up a line of gourmet pizzas, or offering outdoor seating, or giving free sodas at lunchtime. The effects of these various strategies are summarized in the following payoff matrix (entries are dozens of pizzas, Joey’s gain and Tony’s loss).




TONY




Gourmet

Seating

Freesoda

JOEY

Lower price

+2

0

-3


BiggerSlices

_1

-2

+1

For instance, if Joey reduces prices and Tony goes with the gourmet option, then Tony will lose 2 dozen pizzas worth of nosiness to Joey.

What is the value of this game, and what are the optimal strategies for Tony and Joey?

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.

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.

Consider the following linear program.

maximize 5x+3y

5x-2y0x+y7x5x0y0

Plot the feasible region and identify the optimal solution.

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.

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