Exercise Lover

May 10, 2009

Exercise 26.5-5

Filed under: 26.5 — yuhanlyu @ 9:18 am

Because every vertex v, |V|+1 > h[v] > k can not reach sink. Hence, we can set the height to |V|+1.

Exercise 26.5-4

Filed under: 26.5 — yuhanlyu @ 9:05 am

We can prove the times we call the nonsaturating push, and we use the distance funcion d instead of height function h. Let K = \sqrt{|E|}. For a node v, let d’(v) = |{w|d(w) \leq d(v)}| / K. Set the potential function = \sum_{v is overflowing} d'(v). We divide the algorithm into phase, the phase is between consecutive change  of d* = \max d(v). We can classify the phases into two category: cheap and expensive. Cheap phase contains at most K nonsaturating push. We know there are at most |V|^2 cheap phase, and every expensive will decrease the potential function by K. The time complexity will become O(|V|^2\sqrt{E}).

Exercise 26.5-3

Filed under: 26.5 — yuhanlyu @ 9:04 am

It is valid, but the relabel operation may not create admissible edge. Hence the time complexity will increase.

Exercise 26.5-2

Filed under: 26.5 — yuhanlyu @ 8:59 am

Iit is the same as relabel to front algorithm

Exercise 26.5-1

Filed under: 26.5 — yuhanlyu @ 8:57 am

Exercise 26.4-9

Filed under: 26.4 — yuhanlyu @ 8:26 am

By the result of lemma 26.24, the total number of nonsaturating pushs is less than 4|V|^2(|V|+|E|) = 4|V|^2|E|, because |V| < |E| for all graph |V|≥4.

Exercise 26.4-8

Filed under: 26.4 — yuhanlyu @ 8:23 am

The shortest path will change only after saturated push. If the saturating push occurs, we can recalculate the shortest path by BFS.

Exercise 26.4-7

Filed under: 26.4 — yuhanlyu @ 8:21 am

If h(u)≥|V| and h(u) -|V| < δ(u,s), that is, the length of shortest path P from u to s is greater than h(u) – |V|. Because any edge in residual network has height difference one, the height of u is at least |V| + length(P) > h(u), it is a contradiction. The another argument can be proved by the same argument.

Exercise 26.4-6

Filed under: 26.4 — yuhanlyu @ 8:09 am

If we change the line 7 of INITIALIZE-PREFLOW, we need also modify the definition of height. Moreover, we must reproof the lemma 26.18 as follows. If we can find a augmenting path from s , u … t, the height of u must be greater than the s, because we saturated the edge (s,u) in the first iteration of algorithm. That is, height(u) is at least |V|-1, and we can get a contradication in the same argument of orginal proof.

Exercise 26.4-5

Filed under: 26.4 — yuhanlyu @ 8:03 am

For one edge (u,v), we can push from u or v at least one unit at a time, so after k times push the edge will become saturated and the height of u or v might be relabeled. Hence the times of push is at most O(k|V||E|), and the total complexity is O(|V|^3 + k|V||E|).

Older Posts »

Blog at WordPress.com.