HW 1 Soln
HW 1 Soln
CSCE 5530
Department of Computer Science
University of North Texas
September 29, 2009
1 Exercises
1.1 Ex. 2.1 [2]
Consider the formulation (2.1.2). Now suppose there is no demand between
node pair 1 and 3, i.e., ĥ13 = 0. Rewrite the complete formulation for this
modified problem in link-demand-path-identifier-based notation.
Solution Link path formulation in link-demand-path identifier based no-
tation
When ĥ13 = 0 in (2.1.1), then the paths for this demand do not need to
be considered. Thus, the formu- lation is:
minimize
F = x1 1 + 2x1 2 + x2 1 + 2x2 2
subject to (constraints)
x1 1 + x1 2 = 5
x2 1 + x2 2 = 8
x1 1 + x2 2 ≤ 10
x1 2 + x2 2 ≤ 10
x1 2 + x2 1 ≤ 15
x1 1, x1 2, x2 1, x2 2 ≥ 0.
1
1.2 Ex. 2.3 [2]
Identify another goal that can be of interest in a network and formulate the
corresponding objective function for the three-node example given by con-
straints (2.1.2). Determine the optimal solution.
Solution
Another objective for (2.1.2)
An important objective for a network is average network delay (see Model
(7.1.7) in Chapter-7 for the general formulation and derivation). Specifically,
here our objective will be:
x̂12 +x̂123 +x̂213 x̂132 +x̂13 +x̂213 x̂132 +x̂123 +x̂23
minimizeF = 10−x̂ 12 +x̂123 +x̂213
+ 10−x̂ 132 +x̂13 +x̂213
+ 10−x̂ 132 +x̂123 +x̂23
2
from s to t. At Bellman-Ford algorithm termination, algorithm has computed
for each vertex v, a value d[v], such that for each edge (u, v) ∈ E, we have
d[v]≤ d[u]+w(u, v). The source vertex receives a value d[s]= 0, which is
never changed. Thus we obtain the following linear program to compute the
shortest-path weight from s to t.
maximize d[t]
subject to
d[v]≤ d[u]+w(u, v) for each edge (u, v) ∈ E
d[s]= 0
In this linear program, there are kV k variables d[v], one for each vertex
v ∈ E. There are kEk + 1 constraints, one for each edge plus the additional
constraint that the source vertex always has the value 0.
References
[1] T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein. Introduction
to Algorithms, Second Edition. McGraw-Hill Science/Engineering/Math,
July 2001.
[2] M. Pióro and D. Medhi. Routing, Flow, and Capacity Design in Com-
munication and Computer Networks. Morgan Kaufmann Publishers Inc.,
San Francisco, CA, USA, 2004.