Answered step by step
Verified Expert Solution
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!
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 thisStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started