1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
SVETLANKA909090 [29]
3 years ago
8

Let G = (V, E) be a flow network with source s, sink t, and integer capacities. Suppose that we are given a maximum flow in G. (

a) Suppose that the capacity of a single edge (u, v) ∈ E is increased by 1. Give an O(V + E)-time algorithm to update the maximum flow. (b) Suppose that the capacity of a single edge (u, v) ∈ E is decreased by 1. Give an O(V + E)-time algorithm to update the maximum flow.
Mathematics
1 answer:
Tema [17]3 years ago
6 0

Answer and explanation:

a) Just executive one iteration of the ford —Fulkerson algorithm. The edge (u, v) in E with increased capacity ensures that the edge (u,v) is in the residual graph. So look for an augmenting path and update the flow if a path is found. Time: 0 (V + E) = 0(E) if we find the augmenting path with either depth — first or breadth — first search.

To see that only one iteration is needed, consider separately the cases in which (u,v) is or is not an edge that crosses a minimum cut, then increasing its capacity does not change the capacity of any minimum cut. And hence the values of the maximum flow does not change. If (u,v)does cross a minimum cut, then increasing its capacity by 1 increases the capacity of that minimum cut by 1, and hence possibly the value of the maximum flow by 1. In this case, there is either no augmenting path, or the augmenting path increases flow by 1. No matter what, one iteration of ford —Fulkerson suffices.  

b) Let f be the maximum flow before reducing C(u,v).

If f (u,v) = 0, we don't need to do anything.

If f (u,v)> 0, we will need to update the maximum flow assume from now on that f (u,v) > 0, which in turn implies that f (u,v) \ge 1  

Define f' (x,y) = f (x,y) for all x,y ∈ V , except that f f(u,v) = f (u,v) - 1, although f' obeys all capacity constraints even after C(u,v) has been reduced. It is not a legal flow as it violates skew symmetry and flow conservation at u and v. f ' has one more unit of flow entering u then leaving u, and it has on more unit of flow leaving v than entering v. The idea is to try to reroute this unit of flow so that it goes out of u and into v via some other path. If that is not possible, we must reduce the flow from s to u and from v to t by one unit.  

Look for an augmenting path from u to v.If there is such a path, augment the flow along that path. If there is no such path reduce the flow from s to u by augmenting the flow from u to s. That is, find an augmenting path it and augment. The flow along that path similarly, reduce the flow from v to t by finding an augmenting path I and augmenting the flow along that path.  

Time: 0 (V + E) = O(E) if we find the paths with either DFS or BFS.  

You might be interested in
Hello plss help me ahhhhh help me *shrieks* because i only have 10 minutes left
qaws [65]

Answer:

The 2 Option Is Correct

f(x) = 2(x+3)(x-7)

Step-by-Step Explanation:

Factor.

6 0
2 years ago
Read 2 more answers
Which statement describes the total amount a rewards customer pays for 10 ounces and 12 ounces of yogurt?
romanna [79]

Answer:

can you put the statement

3 0
3 years ago
There are 16 books on a shelf. Four sixteenths of the books are about animals. Two and adventure. The rest are mystery. How many
lutik1710 [3]

Answer:

10 mystery books

Step-by-step explanation:

Animals:

Multiply the total number of books by the fraction of animal books

4/16*16

4 animal books

Adventure:

2 adventure books

Mystery:

Subtract the number of adventure and animal books from the total number of books

16-4-2

10

10 mystery books

Hope this helps! :)

4 0
4 years ago
Which number line represents the solution set for the inequality 3(8 - 4x) < 6(x - 5)?
svp [43]

Answer:

-5

-4

-3

-2

3

-5

-4

-3

-2

-1

0

this one

8 0
3 years ago
Sqrt45a^5 simplified
Anestetic [448]

\sqrt{45a^5}

[scomposition of 45]

\sqrt{9*5*a^5}

[9 = 3^2, must use this notation (not 3*3)]

\sqrt{3^2*5*a^5}

[We appy one of the proprieties of square roots]

\sqrt{3^2}* \sqrt{5}*\sqrt{a^5}

[now we semplify: we must take out as much as possible all the elements under roots]

[to do that, we must divide the esponent of each element with the index of square roots (2)]

so

\sqrt{3^2}, 2/2 = 1

\sqrt{5}, 1/2 = 0 with 1 of rest

\sqrt{a^5}, 5/2 = 2 with 1 rest

[well, after do that, we can take out the elements under tbhe square roots!]

The quotient of each division is the esponent of the element out of the root

The rest of each division is the esponent of the element under the root

so:

3^{1} (quotient = 1, see the first operation) * \sqrt{5} (rest = 1, see the second operation) * a^{2} (quotient = 2, see the third operation) * \sqrt{a^1} (rest = 1, see the third operation)

The final result is:

3 (=3^1) * a² * √5 * √a

3a²√5a

It's more intuitive and easy, but the explanation (necessary) is very long. If you have other questions, ask me here in the comments! Also sorry for my english, not so good!

8 0
4 years ago
Other questions:
  • Janice is asked to solve0=64x^2+16x-3 what is x
    15·1 answer
  • Given below, the arcs AB and CD must be congruent.
    13·1 answer
  • A tree's root is 9 feet below ground and spans a radius of 6 feet. If the total length of the tree from root tip to top is 23 fe
    14·1 answer
  • 382.993 rounded to the nearest hundredth?
    11·2 answers
  • A bakery packages 868 muffins into 32 boxes how many muffins in each box?
    14·2 answers
  • What is the solution to the system shown here? x + y ≥ 5 x + y ≤ 5 no solution points in shaded area between two parallel lines
    6·2 answers
  • Need help ASAP! Due in 15 minutes
    8·2 answers
  • Evaluate 32 + (7- 2.4<br> .<br> (1 point)<br> 3<br> 24<br> 28<br> 54<br> 27
    10·1 answer
  • a store sells skis buys them from a manufacturer at a wholesale price of $57. the stores markup rate is 35%. what price does the
    13·1 answer
  • I NEED A 100% ACCURATE ANSWER FOR THIS QUESTION ASAP NO LINKS !!!
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!