/*! 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} Q10E For the following network, with ... [FREE SOLUTION] | 91影视

91影视

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 鈥淢鈥 and 鈥淣鈥. Both should be a disjoint group where 鈥淪鈥 should be in 鈥淢鈥 and 鈥淭鈥 should be in 鈥淣鈥.

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

Cut 鈥淢鈥 is shown below:

Cut 鈥淣鈥 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 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

Question: A linear program for shortest path. Suppose we want to compute the shortest path from node s to node t in a directed graph with edge lengths le>0.

a) Show that this is equivalent to finding an s - tflow fthat minimizes elefesubject to size (f) = 1. There are no capacity constraints.

b) Write the shortest path problem as a linear program.

c) Show that the dual LP can be written as

role="math" localid="1659250472483" maxxs-xtxu-xvluvforall(u,v)E

d) An interpretation for the dual is given in the box on page 223. Why isn鈥檛 our dual LP identical to the one on that page?

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鈥檒l 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.

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.

Hall鈥檚 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鈥檚 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 Canine Products company offers two dog foods, Frisky Pup and Husky Hound, that are made from a blend of cereal and meat. A package of Frisky Pup requires 1 pound of cereal and 1.5pounds of meat, and sells for \(7. A package of Husky Hound uses 2 pounds of cereal and 1 pound of meat, and sells for \)6. Raw cereal costs\(1per pound and raw meat costs\)2per pound. It also costslocalid="1658981348093" \(1.40to package the Frisky Pup and localid="1658981352345" \)0.60to package the Husky Hound. A total of localid="1658981356694" 240,000pounds of cereal and pounds of meat are available each month. The only production bottleneck is that the factory can only package 110,000bags of Frisky Pup per month. Needless to say, management would like to maximize profit.

(a) Formulate the problem as a linear program in two variables.

(b) Graph the feasible region, give the coordinates of every vertex, and circle the vertex maximizing profit. What is the maximum profit possible?

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.