Maximum Flow-Theory of Complexity and Algorithms-Assignment, Exercises of Advanced Algorithms

This assignment was given by Manju Nripendra at West Bengal State University for Theory of Complexity and Algorithms course. It includes: Flow, Min, Cut, Matchings, Algorithm, Design, Edge, Vertices, Capacity, Maximum

Typology: Exercises

2011/2012

Uploaded on 07/17/2012

padmaghira
padmaghira ๐Ÿ‡ฎ๐Ÿ‡ณ

3.2

(5)

53 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Max Flow, Min Cut, and Matchings
NB: Some problems below were taken from, or inspired by, exercises in the
book Algorithm Design by Jon Kleinberg and ยด
Eva Tardos (Pearson Interna-
tional Edition, 2006).
1. The figure below shows a flow network on which an s-tflow is shown.
The capacity of each edge appears as a label next to the edge, and the
numbers in boxes give the amount of flow sent on each edge. (Edges
without boxed numbers have no flow being sent on them.)
(a) What is the value of this flow?
(b) Is this a maximum s-tflow in this graph? If not, find a maximum
s-tflow.
(c) Find a minimum s-tcut. (Specify which vertices belong to the
sets of the cut.)
llll
l
l
- - -
๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜
๎˜1
PPPPPPPPPPPPP
Pq
PPPPPPPPPPPPP
Pq
๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜๎˜
๎˜1
๎˜€๎˜€๎˜€๎˜€๎˜’
@@@@R
@@@@R
๎˜€๎˜€๎˜€๎˜€๎˜’
s tx y
w
z
44
77
10 6
2
2
2
2
10 7
10 4
77
66
2. Find all minimum s-tcuts in the following graph. The capacity of
each edge appears as a label next to the edge.
s
u
w
t
2
2
2
2
2
3. Consider the flow network Hbelow with source sand sink t. The edge
capacities are the numbers given near each edge.
1
docsity.com
pf3

Partial preview of the text

Download Maximum Flow-Theory of Complexity and Algorithms-Assignment and more Exercises Advanced Algorithms in PDF only on Docsity!

Max Flow, Min Cut, and Matchings

NB: Some problems below were taken from, or inspired by, exercises in the book Algorithm Design by Jon Kleinberg and Eva Tardos (Pearson Interna-ยด tional Edition, 2006).

  1. The figure below shows a flow network on which an s-t flow is shown. The capacity of each edge appears as a label next to the edge, and the numbers in boxes give the amount of flow sent on each edge. (Edges without boxed numbers have no flow being sent on them.)

(a) What is the value of this flow? (b) Is this a maximum s-t flow in this graph? If not, find a maximum s-t flow. (c) Find a minimum s-t cut. (Specify which vertices belong to the sets of the cut.)

l l l l

l

l

 - - -  





^1

PP PP PPP PPP PPP Pq

PPP PPP PPP PPP PPq

 





^1



@ @ @ @R

@ @ @ @R



s x y t

w

z

  1. Find all minimum s-t cuts in the following graph. The capacity of each edge appears as a label next to the edge.

s

u

w

t

  1. Consider the flow network H below with source s and sink t. The edge capacities are the numbers given near each edge.

(a) Find a maximum flow in this network. Once you have done this, draw a copy of the original network H and clearly indicate the flow on each edge of H in your maximum flow. (b) Find a minimum s-t cut in the network, i.e. name the two (non- empty) sets of vertices that define a minimum cut.

s c (^) d

a

b

t

3

  1. Network flows come up in dealing with natural disasters and other crises, since treatment of injured people and/or evacuation of large numbers of people without overloading hospitals and roads is neces- sary. So consider the following scenario: Due to large-scale flooding in a region, paramedics have identified a set of n injured people distributed across the region who need to be rushed to hospitals. There are k hospitals in the region, and each of the n people needs to be brought to a hospital that is within a half-hourโ€™s drive to their current location. (So different patients will be able to be served by different hospitals depending upon the patientsโ€™ locations.) However, overloading one hospital with too many patients at the same time is undesirable, so we would like to distribute the patients as evenly as possible across all the hospitals. So the paramedics (or a centralised service advising the paramedics) would like to work out whether they can choose a hospital for each of the injured people in such a way that each hospital receives at most

โŒˆ (^) n k

โŒ‰ patients. Describe a procedure that takes the given information about the pa- tientsโ€™ locations (hence specifying which hospital each patient could go to) and determines whether a balanced allocation of patients is possible (i.e. each hospital receives at most

โŒˆ (^) n k

โŒ‰ patients). What is the asymptotic running time of your procedure (in terms of n and k)?