Exercise Problems
Exercise Problems
Exercise Problems
1) Which of the following sets are convex? (Hint: sketch the form of these sets in <2 )
a) A slab, i.e., a set of the form {x ∈ <n : α ≤ aT x ≤ β}.
d) The set of points closer to a given point than a given set, i.e.,
{x : ||x − x0 ||2 ≤ ||x − y||2 for all y ∈ S}
where S ⊆ <n .
Fig. 1: Problem 2.
7) Consider a network with n links and n routes as shown in Fig. 2. Each link is of unit capacity.
Let x = (x1 , x2 , · · · , xn ) denote the vector of rates where xr (r = 1, 2, · · · , n) is the rate allocated
on route r. Assume log utility functions for each route, i.e., Ur (xr ) = r log(xr ). Write the utility
maximization problem and determine the optimal rates.
1 2 3 𝑛
𝑥& 𝑥' 𝑥(
𝑥)
Fig. 2: Problem 3.
10) Consider a link shared by two flows, A and B. For simplicity, assume that the system starts at time
t = 0, and the transmission time of a packet of length S is S time units. Packets belonging to the
flows arrive at the link as follows:
• Flow A : packets of length 8 arrive at time slots 5, 25, 45, and 65
• Flow B : packets of length 5 arrive at time slots 0, 10, 20, 30, 40, and 50.
a) Assume the link is operated under GPS. For each packet sent on the outgoing link, write
down the time when the packet starts to receive service and the delay between the arrival and
departure.
b) Assume the link is operated under GPS. Calculate the percentage of the link used by each
flow up to and including time slot 59.
c) Repeat above two questions assuming WFQ is used.