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

For the following network, with edge capacities as shown, find the maximum flow from S to T, along with a matching cut.

Short Answer

Expert verified

The maximum flow is obtained with the residual capacity 13 and the matching cut is{S,C,F} and {A,B,D,E,G,T}

Step by step solution

01

Step 1:

Choose the augmenting path as S -> A -> D -> G -> T and the edge, which has the lowest capacity along the path, is A -> D andit has the capacity 4.

The following diagram represents it:

In the above diagram,

Left side is the current path and right side is the residual path.

The residual capacity is 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 6 now becomes 2 and the capacity of the reverse edge becomes 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 4 now becomes 0 and the capacity of the reverse edge becomes 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 5 now becomes 1 and the capacity of the reverse edge becomes 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 12 now becomes 8 and the capacity of the reverse edge becomes 4.

02

Step 2:

Choose the augmenting path as S -> A -> B -> E -> G -> T and the edge, which has the lowest capacity along the path, and it has the capacity 2.

The following diagram represents it:

In the above diagram,

Left side is the current path and right side is the residual path.

The residual capacity is 2.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 2 now becomes 0 and the capacity of the reverse edge becomes 6 from 4.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 2 i now becomes 0 and the capacity of the reverse edge becomes 2.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 20 now becomes 18 and the capacity of the reverse edge becomes 2.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 10 now becomes 8 and the capacity of the reverse edge becomes 2.

03

Step 3:

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 8 now becomes 6 and the capacity of the reverse edge becomes 6 from 4.

Choose the augmenting path as S -> B -> E -> G -> T and the edge, which has the lowest capacity along the path, and it has the capacity 1.

The following diagram represents it:

In the above diagram,

Left side is the current path and right side is the residual path.

The residual capacity is 1.

Subtract 1 from the capacity of the forward edge. Therefore, its capacity 1 now becomes 0 and the capacity of the reverse edge becomes 1.

Subtract 1 from the capacity of the forward edge. Therefore, its capacity 18 now becomes 17 and the capacity of the reverse edge becomes 3 from 2.

Subtract 1 from the capacity of the forward edge. Therefore, its capacity 8 now becomes 7 and the capacity of the reverse edge becomes 3 from 2.

Subtract 1 from the capacity of the forward edge. Therefore, its capacity 6 now becomes 5 and the capacity of the reverse edge becomes 7 from 6.

04

Step 4:

Choose the augmenting path as S-> C -> F -> T and the edge, which has the lowest capacity along the path, and it has the capacity 4.

The following diagram represents it:

In the above diagram,

Left side is the current path and right side is the residual path.

The residual capacity is 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 10 now becomes 6 and the capacity of the reverse edge becomes 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 5 now becomes 1 and the capacity of the reverse edge becomes 4.

Subtract 4 from the capacity of the forward edge. Therefore, its capacity 4 now becomes 0 and the capacity of the reverse edge becomes 4.

05

Step 5:

Choose the augmenting path as S -> C -> B -> E -> G -> T and the edge, which has the lowest capacity along the path, and it has the capacity 2.

The following diagram represents it:

In the above diagram,

Left side is the current path and right side is the residual path.

The residual capacity is 2.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 6 now becomes 4 and the capacity of the reverse edge becomes 6 from 4.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 2 now becomes 0 and the capacity of the reverse edge becomes 2.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 17 now becomes 15 and the capacity of the reverse edge becomes 5 from 3.

06

Step 6:

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 7 now becomes 5 and the capacity of the reverse edge becomes 5 from 3.

Subtract 2 from the capacity of the forward edge. Therefore, its capacity 5 now becomes 3 and the capacity of the reverse edge becomes 9 from 7.

The maximum flow is obtained with the residual capacity 4+2+1+4+2=13

Then cut the partition into two, let it be “M” and “N”. Both should be a disjoint group where “S” should be in “M” and “T” should be in “N”.

LetM={S,C,F}andN={A,B,D,E,G,T}

Cut “M” is shown below:

Cut “N” is shown below:

Therefore, the maximum flow is obtained with the residual capacity 13 and the matching cut is {S,C,F} and {A,B,D,E,G,T}

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

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?

Hall’s theorem. Returning to the matchmaking scenario of Section 7.3, suppose we have a bipartite graph with boys on the left and an equal number of girls on the right. Hall’s theorem says that there is a perfect matching if and only if the following condition holds: any subset sof boys is connected to at least |s|girls.

Prove this theorem. (Hint: The max-flow min-cut theorem should be helpful.)

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.

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.

Question: Duckwheat is produced in Kansas and Mexico and consumed in New York and California. Kansas produces 15 shnupells of duckwheat and Mexico 8. Meanwhile, New York consumes 10 shnupells and California 13. The transportation costs per shnupell are \(4 from Mexico to New York, \)1 from Mexico to California, \(2 from Kansas to New York, and \)3 and from Kansas to California. Write a linear program that decides the amounts of duckwheat (in shnupells and fractions of a shnupell) to be transported from each producer to each consumer, so as to minimize the overall transportation cost

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