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

91Ó°ÊÓ

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.

Short Answer

Expert verified

(a)The maximum flowf is11 , and a min-cut is ({S,A,B},{C,D,T}).

(b) The residual graphGf is as follows,

The vertices reachable fromS areA and B. The vertices reachable fromT areC andD .

(c)The bottleneck edges are(A,C) and (B,C).

(d)Simple example of a network that has no bottleneck edges is as follows:

(e) Algorithm to identify bottleneck edges in the network:

Procedure Bottleneck(en,em)

Input: Graph (V,E)

Output: Bottleneck edges if exist

Perform max-flow min-cut in G(V,E)

Find Residual graph role="math" localid="1657972286397" Gf

Letc be the edge capacity of Gf

Ifrole="math" localid="1657972299309" c=0 at en

If both ends have positive residual capacity

Mark as bottleneck edge

Return (en,em)

Step by step solution

01

Explain Maximum flow and Min-cut

Consider the directed graphG=(V,E) with sourceS and sink T.The maximum data must be sent from source to sink without exceeding the capacities of any other edges is the maximum flow. The maximum flow is denoted by role="math" localid="1657972699416" f . Min-cut is the partition of the vertices into two different groups and its capacity is the total capacity of the edges from the two disjoint groups.

02

Find maximum flow fand a minimum cut. 

(a)

Consider the network figure given in the question. The source isS and the sink isT in the graph G(V,E). The maximum flow does not violate the edge capacities; for all the nodes, the amount of flow entering the vertex must equal the amount leaving. The following Figure shows the Maximum flow and the minimum cut of the graph.

The flowing diagram illustrates the steps in finding the maximum flow.

Therefore, the maximum flowf is11 , and a min-cut is({S,A,B},{C,D,T}) .

03

Draw the residual graph and mark the vertices that reach from S and T . 

(b)

The residual graph captures the flow-increasing opportunities in the graph. The residual graph is represented byGf . The residual graph lists the two types of edges with residual capacities and flow.

The residual graphGf of the given network is as follows:

The vertices reachable from SareA andB . The vertices reachable fromT areC andD . The reachable vertices are represented as follows,

Therefore, the residual graph with the vertices reachable from source and sink is obtained.

04

Find the bottleneck edges.

(c)

If the maximum flow capacity increases with the edge’s capacity, then the edge is called the bottleneck edge. Here, maximum flow capacity increases at edges(A,C)and(B,C) .

Hence, the bottleneck edges in the network are(A,C) and (B,C).

05

Example graph with no bottleneck edges.

(d)

The bottleneck edges increase the maximum flow of the network with an increase in their capacity.

The following is the example graph that has no bottleneck edges.

Thus, a network without bottleneck edges is obtained.

06

Algorithm to identify all the bottleneck edges. 

(e)

An efficient algorithm to identify all the bottleneck edges in-network is as follows:

Procedure Bottleneck(en,em)

Input: Graph (V,E)

Output: Bottleneck edges if exist

Perform max-flow min-cut in G(V,E)

Find Residual graph Gf

LetC be the edge capacity of Gf

If c=0at en

If both ends have positive residual capacity

Mark as bottleneck edge

Return(en,em)

The algorithm calculates the graph’s maximum flow and the minimum cut. The residual graph is examined, and the capacity of the edges is checked. If the edge’s capacity is zero, then both the ends of the edges are checked for the positive residual capacity. The resultant edge is not a bottleneck edge.

Therefore, an algorithm to identify all the bottleneck edges is obtained.

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.

In a satisfiable system of linear inequalities

a11x1+···+a1nxn≤b1:am1x1+···+amnxn≤bm

we describe the inequality as forced-equal if it is satisfied with equality by every solution x = (x1,...,xn)of the system. Equivalently,Piajixi≤bj is not forced-equal if there exists an x that satisfies the whole system and such that Piajixi≤bj.

For example, in

x1+x2≤2-x1-x2≤-2x1≤1-x2≤0

Suppose someone presents you with a solution to the max-flow problem on some network. Give a linear-time algorithm to determine whether the solution does indeed give a maximum flow.

In a particular network G = (V, E) whose edges have integer capacities ce, we have already found the maximum flow f from node to node t. However, we now find out that one of the capacity values we used was wrong: for edge (u, v) we used cuv whereas it should have been cuv. -1 This is unfortunate because the flow f uses that particular edge at full capacity: f = c.

We could redo the flow computation from scratch, but there’s a faster way. Show how a new optimal flow can be computed inO(|V|+|E|) time.

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.

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.