• Keine Ergebnisse gefunden

Algorithmic Discrete Mathematics 5. Exercise Sheet

N/A
N/A
Protected

Academic year: 2022

Aktie "Algorithmic Discrete Mathematics 5. Exercise Sheet"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Algorithmic Discrete Mathematics 5. Exercise Sheet

Department of Mathematics SS 2013

Andreas Paffenholz 12/13 June 2013

Silke Horn

Groupwork

Exercise G1

Using the Ford-Fulkerson method, compute a maximal flow in the following network:

s

1

2

3

4

5

t 8

9 5

6

7 5

4 2

6 4

11

13

Also determine a minimal cut inG.

Exercise G2

The goal of this exercise is to show that the Ford-Fulkerson method need not terminate if we allow irrational edge capacities.

Consider the following network with capacitiesce.

s

4 3

2 1

t X

X

X X

X

X 1

1 φ

HereX is some large integral constant andφ= 12(p

5−1). (Note thatφn=φn+1+φn+2for anyn≥0.)

(a) Show by induction that for any integern≥0the residual capacities of the three horizontal edges can be brought to the valuesφn, 0,φn+1.

(b) Conclude that Ford-Fulkerson need not terminate on this network. Does it converge?

(c) Find a network where Ford-Fulkerson converges, but not to a maximal flow.

Exercise G3

Let(G= (V,E),s,t,c)be a network with integral capacitiesc(e)∈Zfor all edgeseE. Prove or refute the following assertions:

(a) If all capacities are even then there is a maximal(s−t)-flow f such that f(e)is even for alleE.

(b) If all capacities are odd then there is a maximal(st)-flow f such that f(e)is odd for alleE.

Exercise G4

Let G = (V,E) be a graph. A subset ME is a matching in G if mm0=; for all m,m0M. A matching M is perfect if2|M|=|V|.

1

(2)

In each of the following graphs determine a perfect matching or show that no perfect matching exists.

(a) (b) (c)

Homework

Exercise H1 (5 points)

Let (G= (V,E),s,t,c)be a network with integral capacitiesc(e)∈Z+ for all eE. Let f be a maximal flow in this network. We assume that the capacity of one edge e

(a) is increased by1, (b) is decreased by 1.

Describe an algorithm with complexityO(m+n)that determines a maximal flow in the new network. Improve your algorithm (or your analysis) toO(m).

Exercise H2 (5 points)

(a) An edgeein a network(G= (V,E),s,t,c)where t can be reached froms, is calledupwards critical if increasing the capacity ofeincreases the value of the maximal flow. Does every network possess an upwards critical edge?

Describe an algorithm that finds all upwards critical edges and has a considerably better running time than solvingmmax flow problems.

(b) An edgeein a network(G= (V,E),s,t,c)wheretcan be reached froms, is calleddownwards criticalif decreasing the capacity of e decreases the value of the maximal flow. Does every network possess a downwards critical edge?

Describe an algorithm that finds all downwards critical edges and analyse its running time.

Exercise H3 (5 points)

Let G= (V,E)be an undirected graph ands6=tV. A subset FEis(st)-separating if any(st)-path uses at least one edge of F. A collectionP1, . . . ,Pk of(st)-paths inG isedge-disjoint if no pair Pi,Pj,i6=j have an edge in common.

(a) Prove theedge version of the Theorem of Menger:

The maximal number of edge-disjoint paths inG equals the minimal size of an(s−t)-separating edge set.

Hint: Apply the MaxFlow-MinCut Theorem to a suitable network.

(b) (Bonus exercise – no points) A subsetUV is(st)-separating if any(st)-path uses at least one node ofU. Two(st)-paths areinternally disjoint if they only share the nodessand t.

Prove thenode version of the Theorem of Menger:

Assume{s,t} 6∈E. Then the maximal number of internally disjoint(st)-paths equals the minimal size of an (st)-separating node set.

Hint: Construct a directed graph as above, then replace each nodevV\ {s,t}by a pairv,v+and a directed edge(v,v+). Again apply the MaxFlow-MinCut Theorem.

Exercise H4 (5 points)

Let G= (V,E)be a directed graph,c:E→R+ a capacity and f :E→R a flow onG. Prove or disprove the following statements:

(a) f is maximal⇒ f(e) =0or f(e) =c(e)for alleE.

(b) There is a maximal flow such that f(e) =0or f(e) =c(e)for alleE.

(c) A minimal cut is unique if all capacities are pairwise distinct.

(d) Multiplying all capacitiesc(e)by a numberλ >0does not change the minimal cuts.

(e) Adding a numberλ >0to all capacitiesc(e)does not change the minimal cuts.

2

Referenzen

ÄHNLICHE DOKUMENTE

A walk in a connected graph G = ( V, E ) is called an Eulerian trail if it contains each edge of G exactly once?. A closed Eulerian trail is called an

To this end, we could store adjacency lists as linked lists (so that deletion works in constant time) and endow each entry v 0 of an adjacency list A ( v ) with a pointer to the

Show that a graph G = ( V, E ) is bipartite if and only if it does not contain cycles of odd length.

But participants of the Wednesday group are encouraged to also come on Friday since there will be a short discussion on Prim’s algorithm in the

(a) Devise an equal length code (i.e., every symbol is encoded with a code word of equal length) for this problem and encode the following sentence using your code (without

Nešetˇril, Invitation to Discrete Mathematics, Springer (German translation: Diskrete Mathematik, Springer,

Wednesday, 31 July 2013, 10:30 – 11:30 in S1|01 A1 (Audimax).. If you registered for the English exam, you must answer

They describe the number of possibilities to choose k objects from a given set containing n objects (without putting objects back and without respecting the order of the