Docsity

Hand in exercises block 2, Exercises of Operational Research

Toggle sidebar
bg1
Operations Research–Assignment 2
i6183723 - Gia Anh Trieu
i6147285 - Zhao Shiqi
Exercise 5.16
G= (V, E )
ce≥1 (e∈E)
We have to maximize Pe∈Tce
=⇒Maximum spanning tree
Cut optimality conditions: A spanning tree T∗is a maximum span-
ning tree if and only if it satisfies the following conditions: For every tree
arc (i, j)∈T∗, cij ≥ckl for every arc (k, l) contained in the cut formed by
deleting arc (i, j) from T∗
Proof:
(=⇒) Suppose T∗is a maximum spanning tree and (i, j)∈T∗
If cij < ckl then we can delete (i, j) from T∗and introduce (k, l ) to T∗to
create optimal maximum spanning tree (Contradiction)
(⇐=) To show if T∗satisfies cut optimality conditions, then it is optimal
Suppose T0is a maximum spanning tree and T06=T∗then T∗contains
(i, j) that is not in T0
If we delete (i, j) from T∗, we will create a cut called [S, S0]
Now if we add (i, j) to T0, we will create a cycle Wwhich contains (k, l)
where k∈Sand l∈S0
Because T∗satisfies cut optimality conditions, cij ≥ckl
Because T0is optimal maximum spanning tree, ckl ≥cij
=⇒cij =ckl
Now if we introduce arc (k, l) in the tree T∗in the place of (i, j) we will
have another maximum spanning tree. If we repeat this process several
times, we can transform T∗into T0
=⇒T∗is also a maximum spanning tree
Exercise 6.19
1S=∅,S=V\S;
2l(s) = 0;
3l(v) = ∞ ∀v∈V\ {S};
4While S6=Vdo
5u=argmin{l(v) : v∈S}
6S=S∪ {u};
7S=S\ {u};
8For all vi(u,v )∈Ado
9If l(v)> max{l(u), cuv}
10 l(v) = max{l(u), cuv}
11 return l(v)
1
pf2

Partial preview of the text

Download Hand in exercises block 2 and more Exercises Operational Research in PDF only on Docsity!

Operations Research–Assignment 2 i6183723 - Gia Anh Trieu i6147285 - Zhao Shiqi

Exercise 5.

G = (V, E) ce ≥ 1 (e ∈ E) We have to maximize

e∈T ce =⇒ Maximum spanning tree Cut optimality conditions: A spanning tree T ∗^ is a maximum span- ning tree if and only if it satisfies the following conditions: For every tree arc (i, j) ∈ T ∗, cij ≥ ckl for every arc (k, l) contained in the cut formed by deleting arc (i, j) from T ∗ Proof: (=⇒) Suppose T ∗^ is a maximum spanning tree and (i, j) ∈ T ∗ If cij < ckl then we can delete (i, j) from T ∗^ and introduce (k, l) to T ∗^ to create optimal maximum spanning tree (Contradiction) (⇐=) To show if T ∗^ satisfies cut optimality conditions, then it is optimal

Suppose T ′^ is a maximum spanning tree and T ′^6 = T ∗^ then T ∗^ contains (i, j) that is not in T ′ If we delete (i, j) from T ∗, we will create a cut called [S, S′] Now if we add (i, j) to T ′^ , we will create a cycle W which contains (k, l) where k ∈ S and l ∈ S′ Because T ∗^ satisfies cut optimality conditions, cij ≥ ckl Because T ′^ is optimal maximum spanning tree, ckl ≥ cij =⇒ cij = ckl Now if we introduce arc (k, l) in the tree T ∗^ in the place of (i, j) we will have another maximum spanning tree. If we repeat this process several times, we can transform T ∗^ into T ′ =⇒ T ∗^ is also a maximum spanning tree

Exercise 6.

1 S = ∅ , S = V \ S;

2 l(s) = 0; 3 l(v) = ∞ ∀v ∈ V \ {S}; 4 While S 6 = V do 5 u = argmin{l(v) : v ∈ S} 6 S = S ∪ {u} ; 7 S = S \ {u} ; 8 For all vi(u, v) ∈ A do 9 If l(v) > max{l(u), cuv } 10 l(v) = max{l(u), cuv } 11 return l(v)

Let S be the set of vertices that have been permanently labelled after the iteration. Then these two invariants should hold after each iteration: (i) If v ∈ S then l(v) is the length of the minimum bottleneck path from s to v and there exists a shortest path from s to v using only vertices in S. (ii) If v /∈ S then l(v) is the length of the minimum bottleneck path from s to v using only vertices in S.

For S = ∅, both (i) and (ii) are trivially true. Let (i) and (ii) be true at the beginning of the iteration. For (i), we known by (ii) that for v /∈ S, l(v) is the length of the minimum bottleneck path from s to v using only vertices in S. Now let v be the selected vertex. Then we know that l(v) ≤ l(u), ∀u /∈ S and u 6 = v. Consider a path from s to v using vertices from V \ S. So, the length of this path is at least max {l(v), cuv }. As all arcs lengths are non-negative and l(v) ≤ l(u), then this path has length of at least max {l(v), cuv } ≥ l(v).

For (ii), we assume (i) to be true and we consider vertex v ∈ V \ S. At the beginning of the iteration, if max {l(v), cuv } ≥ l(v), then the shortest path from s to v has the length l(v), using only vertices in S. So, l(v) is also the shortest minimum bottleneck path from s to v using vertices in S ∪ {u}, ∀u /∈ S and u 6 = v. If max{l(v), cuv } < l(v) update l(v) such that l(v) is again the shortest path from s to v using vertices in S ∪ {u}.