Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (4 points) Slow case of the Ford-Fulkerson algorithm. In class we mentioned that the Ford-Fulkerson algorithm takes O(F) iterations, where F is the value

image text in transcribed

3. (4 points) Slow case of the Ford-Fulkerson algorithm. In class we mentioned that the Ford-Fulkerson algorithm takes O(F) iterations, where F is the value of the maximum flow. Note that the value of F can be much larger than n and m. In this problem we will see that this can happen, even when we push as much flow as possible along the s t path found in the residual graph. Let Z be an arbitrarily large integer. Consider the directed network on 4 vertices, s, a, b, and t with (capacitated) edges #5 a with capacity Z. s b with capacity Z. a t with capacity Z. b t with capacity Z. a b with capacity 1. The maximum flow is 27: sending Z units each along the two paths s a t and s b t. Furthermore, if we return s a t as our first augmenting path, we willroute Z units on it, so the Ford-Fulkerson algorithm can potentially terminate in 2 iterations (plus 1 more to output the minimum cut) , Instead, suppose our path finding algorithm in the residual graphs always finds a path involving a-> b or b a if it exists. Draw the first 2 residual graphs, and infer from them (with a brief justification) the number of iterations (in terms of Z) that the Ford-Fulkerson algorithm may take on this graph. 3. (4 points) Slow case of the Ford-Fulkerson algorithm. In class we mentioned that the Ford-Fulkerson algorithm takes O(F) iterations, where F is the value of the maximum flow. Note that the value of F can be much larger than n and m. In this problem we will see that this can happen, even when we push as much flow as possible along the s t path found in the residual graph. Let Z be an arbitrarily large integer. Consider the directed network on 4 vertices, s, a, b, and t with (capacitated) edges #5 a with capacity Z. s b with capacity Z. a t with capacity Z. b t with capacity Z. a b with capacity 1. The maximum flow is 27: sending Z units each along the two paths s a t and s b t. Furthermore, if we return s a t as our first augmenting path, we willroute Z units on it, so the Ford-Fulkerson algorithm can potentially terminate in 2 iterations (plus 1 more to output the minimum cut) , Instead, suppose our path finding algorithm in the residual graphs always finds a path involving a-> b or b a if it exists. Draw the first 2 residual graphs, and infer from them (with a brief justification) the number of iterations (in terms of Z) that the Ford-Fulkerson algorithm may take on this graph

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What is a lookback period?

Answered: 1 week ago