Docsity

Understanding LP Complexity, Flow Splitting, and Rate Allocation in Linear Programming, Assignments of Multimedia Applications

Toggle sidebar
bg1
C H A P T E R
2Linear programming and
applications
Problems
2.1 (+2 points) In an LP, suppose that the number of variables and constraints
are Nvand Ncrespectively in the standard form. What is the complexity of
solving this problem?
Solution: An LP problem has a complexity of O(n3), where nis the num-
ber of variables in the standard form. Thus, the given LP has a complexity of
O(N3
v).
2.2 (+4 points) For flow routing in a sensor network, we allow an outgoing
flow from a node to be split into sub-flows, each routed to a different next
hop node (e.g., (2.5)). Please explain the benefits of flow splitting (1) in terms
of traffic flow in the network, and (2) in term of complexity in mathematical
formulation (when compared to single-path routing without flow splitting).
Solution: By flow splitting, a node’s data can be transmitted along multiple
paths. Thus, its data rate can be larger than that in a single-path routing solution
(no flow splitting).
Moreover, if flow splitting is not allowed, we need to model a single-path
routing solution. In particular, we need binary variables to select a next hop
node. As a result, its formulation is an integer linear programming (ILP), which
is NP-hard in general.
In summary, by flow splitting, nodes’ data rates can be increased while the
complexity to solve the optimization problem can be decreased.
2.3 (+10 points) Why does the MaxCap LP formulation lead to unfairness
in rate assignment in ri,1≤i≤N? Give an example of a small network and
construct a numerical result to illustrate this point.
Solution: If the objective is maximizing PN
i=1 ri, then the solution will favor
these nodes whose path consumes the least amount of power and will lead to
unfairness in rate assignment.
1
pf3
pf4
pf5

Partial preview of the text

Download Understanding LP Complexity, Flow Splitting, and Rate Allocation in Linear Programming and more Assignments Multimedia Applications in PDF only on Docsity!

C H A P T E R

Linear programming and

applications

Problems 2.1 (+2 points) In an LP, suppose that the number of variables and constraints are Nv and Nc respectively in the standard form. What is the complexity of solving this problem? Solution: An LP problem has a complexity of O(n^3 ), where n is the num- ber of variables in the standard form. Thus, the given LP has a complexity of O(N (^) v^3 ).

2.2 (+4 points) For flow routing in a sensor network, we allow an outgoing flow from a node to be split into sub-flows, each routed to a different next hop node (e.g., (2.5)). Please explain the benefits of flow splitting (1) in terms of traffic flow in the network, and (2) in term of complexity in mathematical formulation (when compared to single-path routing without flow splitting). Solution: By flow splitting, a node’s data can be transmitted along multiple paths. Thus, its data rate can be larger than that in a single-path routing solution (no flow splitting). Moreover, if flow splitting is not allowed, we need to model a single-path routing solution. In particular, we need binary variables to select a next hop node. As a result, its formulation is an integer linear programming (ILP), which is NP-hard in general. In summary, by flow splitting, nodes’ data rates can be increased while the complexity to solve the optimization problem can be decreased. 2.3 (+10 points) Why does the MaxCap LP formulation lead to unfairness in rate assignment in ri, 1 ≤ i ≤ N? Give an example of a small network and construct a numerical result to illustrate this point. Solution: If the objective is maximizing

∑N

i=1 ri, then the solution will favor these nodes whose path consumes the least amount of power and will lead to unfairness in rate assignment.

1

2 1 B

Figure 2.5 An example network.

Let’s see an example in Fig. 2.5. Suppose that the energy at nodes are e 1 = 3 and e 2 = 1; the transmission cost are c 21 = c 1 B = 1 and c 2 B = 16; and the receiving cost is ρ = 1. It can be verified that the optimal solution to MaxCap is [r 1 , r 2 ] = [3, 161 ]. Clearly, r 1 ≫ r 2. Let’s consider the fairest solution, the LMM-optimal rates. It can be verified that the LMM-optimal rates are [r 1 , r 2 ] = [1, 1]. Thus, the optimal solution to MaxCap is indeed not the fairest one that we can achieve.

2.4 (+2 points) Suppose that we obtain the following three sorted rate vectors for rate allocation under three different solutions: a = [0. 10 , 0. 10 , 0. 10 , 0. 15 , 0. 29 , 0. 29 , 0. 29 , 0. 29 , 0. 29 , 0 .29] b = [0. 10 , 0. 10 , 0. 10 , 0. 10 , 0. 10 , 0. 15 , 0. 15 , 0. 15 , 0. 65 , 0 .65] c = [0. 05 , 0. 06 , 0. 06 , 0. 06 , 0. 12 , 0. 16 , 0. 17 , 0. 26 , 0. 35 , 1 .23] Which two vectors are not LMM-optimal and why? Solution: Note that the elements in a, b, and c are already sorted. We now compare them from the smallest element to the largest element one by one. For the smallest element, we have a 1 = b 1 = 0. 10 > c 1 = 0. 05. Thus, a and b are better than c under the LMM-optimal criteria. Then c is not LMM-optimal. For the next two elements of a and b, we have a 2 = b 2 = 0. 10 and a 3 = b 3 = 0. 10. We cannot find which is better till now. We then compare the fourth element of a and b and find that a 4 = 0. 15 > b 4 = 0. 10. Thus, a is better than b under the LMM-optimal criteria. Then b is not LMM-optimal.

2.5 (+4 points) Discuss the similarity and the difference between the max- min rate allocation problem and the LMM rate allocation problem. Solution: The similarity between two rate allocation problems is that they both maximize the first level of the smallest rate until one or more nodes runs out of the battery, then maximize the second level of rate for the nodes with remaining energy and so forth. The difference between two problems is the data flow routing. In the max- min rate allocation problem, the data flow routing is given. Max-min addresses only the rate allocation at each rate level with the given fixed routing and yields a unique solution at each level. The LMM rate allocation problem, how- ever, implicitly couples a flow routing problem. Starting from the first itera- tion, there usually exist non-unique flow routing solutions corresponding to the same maximum rate level. Consequently, each of these flow routing solu- tions, once chosen, will yield different remaining energy levels on the nodes for future iterations and so forth, leading to a different rate vector, which usually does not coincide with the LMM-optimal rate vector.

lem and a bit rate R is given for all nodes under the LMM-lifetime problem. Having this mirror relationship, if we solve one of the two problems, the results for the other can be obtained via simple algebraic calculations.

2.10 (+10 points) For Theorem 2.1, provide a proof for the second statement: Suppose that we have solved Problem PL and obtained the LMM-optimal node lifetime ti for each node i (i = 1, 2 , · · · , N ). Then under PR, the LMM rate allocation ri for node i is

ri =

tiR T

Solution: We organize our proof into two parts. First, we show that ri are feasible rates in terms of flow balance and energy constraint on each node i (i = 1, 2 , · · · , N ). Then we show that it is indeed the LMM-optimal rate allocation. (i) Feasibility. Since we have obtained the solution to Problem PL, we have a feasible flow routing solution for sending bit streams R to the base-station from each node i during its lifetime ti, i = 1, 2 , · · · , N. Under Problem PL, the bit volumes (Vij and ViB values) must meet the following equalities:

ViB +

1 ≤j≤N

j 6 = iVij −

1 ≤k≤N

k 6 = iVki = tiR ,

∑

1 ≤k≤N

k 6 = iρVki +

1 ≤j≤N

j 6 = icij Vij + ciB ViB = ei.

Now replacing tiR by riT , we see that the same bit volume solution under PL yields a feasible bit volume solution to the rate allocation Problem PR. This verifies that ri, i = 1, 2 , · · · , N , is a feasible solution to Problem PR. (ii) Optimality. To prove that the ri, i = 1, 2 , · · · , N , obtained via (2.1) are indeed LMM-optimal for Problem PR, we sort ti, i = 1, 2 , · · · , N , under Problem PL in non-decreasing order and denote it as [τ 1 , τ 2 , · · · , τN ]. We also introduce a node index I = [i 1 , i 2 , · · · , iN ] for [τ 1 , τ 2 , · · · , τN ]. For example, i 3 = 7 means that τ 3 actually corresponds to the lifetime of AFN 7 , i.e., τ 3 = t 7. Since ri is proportional to ti in (2.1), listing ri, i = 1, 2 , · · · , N , accord- ing to I = [i 1 , i 2 , · · · , iN ] will also yield a sorted rate list (in non-decreasing order), denoted as [g 1 , g 2 , · · · , gN ]. We now prove that [g 1 , g 2 , · · · , gN ] is indeed LMM-optimal for Problem PR. Our proof is based on contradiction. Suppose that [g 1 , g 2 , · · · , gN ] is not LMM-optimal for Problem PR. Assume that the LMM-optimal rate vector to Problem PR is [ˆg 1 , gˆ 2 , · · · , gˆN ] (sorted in non-decreasing order) with the corresponding node index being Iˆ = [ˆi 1 ,ˆi 2 , · · · ,ˆiN ]. Then, by the Definition of the LMM-optimal rate allocation, there exists a k such that ˆgj = gj for 1 ≤ j ≤ k − 1 and ˆgk > gk. We now claim that since ˆgi, i = 1, 2 , · · · , N , is a feasible solution to Problem PR, ˆti obtained via ˆti = ˆg RiT , i = 1, 2 , · · · , N , is also a feasible

solution to Problem PL. The proof for this claim follows identically as above. Using this result, we can obtain a corresponding feasible solution [ˆt 1 , ˆt 2 , · · · , ˆtN ] with ˆti = ˆgi RT and the node index Iˆ for Problem PL. Hence we have ˆtj = ˆgj R^ T = gj R^ T = tj for 1 ≤ j ≤ k − 1 but ˆtk = gˆk R^ T > gk R^ T = tk. That is, [t 1 , t 2 , · · · , tN ] is not LMM-optimal and this leads to a contradiction.