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

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.

Find necessary and sufficient conditions on the reals a and b under which the linear program

maxx+yax+by1x,y0

(a) Is infeasible.

(b) Is unbounded.

(c) Has a unique optimal solution.

A vertex cover of an undirected graph G = (V,E) is a subset of the vertices which touches every edge—that is, a subset SVsuch that for each edge {U,V}E, one or both of u, v are in S. Show that the problem of finding the minimum vertex cover in a bipartite graph reduces to maximum flow. (Hint: Can you relate this problem to the minimum cut in an appropriate network?)

Give an example of a linear program in two variables whose feasible region is infinite, but such that there is an optimum solution of bounded cost.

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,max1i7|axi+byic|

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