Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write pseudocode or Python for a thumbs up! 2 Q2 In general, a flow network G = (V, E, s, t, c) with integer

Please write pseudocode or Python for a thumbs up!

image text in transcribed

2 Q2 In general, a flow network G = (V, E, s, t, c) with integer edge capacities may not have a unique min-cut. a) (2 points) Describe an example G that has exponentially many (non-zero) min-cuts, i.e., the number of min-cuts is at least C\V for some constant C > 1. Your graph should contain at least 100 vertices and the capacity of the min-cut should be non-zero. For each of the following problems, your algorithm should take the network G as an input and output the set S containing s in the cut (S, T). Your algorithm should have the same asymptotic running time as Ford-Fulkerson algorithm. b) (4 points) We would like to find the min-cut in G with the fewest number of edges across the cut. Write pseudocode for an algorithm which solves this problem. 2 Q2 In general, a flow network G = (V, E, s, t, c) with integer edge capacities may not have a unique min-cut. a) (2 points) Describe an example G that has exponentially many (non-zero) min-cuts, i.e., the number of min-cuts is at least C\V for some constant C > 1. Your graph should contain at least 100 vertices and the capacity of the min-cut should be non-zero. For each of the following problems, your algorithm should take the network G as an input and output the set S containing s in the cut (S, T). Your algorithm should have the same asymptotic running time as Ford-Fulkerson algorithm. b) (4 points) We would like to find the min-cut in G with the fewest number of edges across the cut. Write pseudocode for an algorithm which solves this

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

Step: 3

blur-text-image

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions