This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Lower bounds on the performance of online algorithms for relaxed packing problems

János Balogh Institute of Informatics, University of Szeged, Szeged, Hungary. [email protected].    György Dósa Department of Mathematics, University of Pannonia, Veszprém, Hungary. [email protected].    Leah Epstein Department of Mathematics, University of Haifa, Haifa, Israel. [email protected].    Łukasz Jeż Institute of Computer Science, University of Wrocław, Wrocław, Poland. [email protected]. Ł. Jeż was supported by the Polish National Science Center grant 2020/39/B/ST6/01679.

Lower bounds on the performance of online algorithms
for relaxed packing problems

János Balogh Institute of Informatics, University of Szeged, Szeged, Hungary. [email protected].    György Dósa Department of Mathematics, University of Pannonia, Veszprém, Hungary. [email protected].    Leah Epstein Department of Mathematics, University of Haifa, Haifa, Israel. [email protected].    Łukasz Jeż Institute of Computer Science, University of Wrocław, Wrocław, Poland. [email protected]. Ł. Jeż was supported by the Polish National Science Center grant 2020/39/B/ST6/01679.
Abstract

We prove new lower bounds for suitable competitive ratio measures of two relaxed online packing problems: online removable multiple knapsack, and a recently introduced online minimum peak appointment scheduling problem. The high level objective in both problems is to pack arriving items of sizes at most 11 into bins of capacity 11 as efficiently as possible, but the exact formalizations differ. In the appointment scheduling problem, every item has to be assigned to a position, which can be seen as a time interval during a workday of length 11. That is, items are not assigned to bins, but only once all the items are processed, the optimal number of bins subject to chosen positions is determined, and this is the cost of the online algorithm. On the other hand, in the removable knapsack problem there is a fixed number of bins, and the goal of packing items, which consists in choosing a particular bin for every packed item (and nothing else), is to pack as valuable a subset as possible. In this last problem it is possible to reject items, that is, deliberately not pack them, as well as to remove packed items at any later point in time, which adds flexibility to the problem.

keywords: Bin packing, online algorithms, competitive ratio

1 Introduction

We study two online problems, for which the offline version is a classic problem, with well-known efficient near-optimal solutions [15, 12, 18]. Our online problems are not the most natural variants that one can define, but they are more relaxed. This models reality in the sense that often there is some flexibility even in online environments. Flexibility obviously allows the design of better online algorithms, though such algorithms typically cannot find optimal solutions. Here, we focus on the limitations of online algorithms for relaxed models.

We use the competitive ratio and asymptotic competitive ratio measures for analysis of online algorithms. The competitive ratio for minimization problems is the worst-case ratio between the cost of an online algorithm and the cost of an optimal offline algorithm for the same input. For maximization problems, the roles of the algorithm and an optimal offline solution are reversed. The asymptotic competitive ratio is the supreme limit of the competitive ratio for inputs with optimal costs or profits growing to infinity.

In offline bin packing [17, 12, 18], there are items of indices 1,2,,n1,2,\ldots,n, where item jj has a rational size sj(0,1]s_{j}\in(0,1]. The goal is to partition the items into the minimum number of sets called bins, where the total size for every bin does not exceed 11. One can see this as a scheduling problem where items are assigned to machines that are available during the time interval [0,1)[0,1), but it is not necessary to assign the specific time slots in advance, since this can always be done. The length of the time slot for item jj is required to be of length sjs_{j}, where the interval has the form [x,x+sj)[x,x+s_{j}) for x0x\geq 0 and x1sjx\leq 1-s_{j}. Alternatively, one can assign the time slots, and not the bins, where the assignment to bins can be done by a simple process of coloring an interval graph. In the standard online bin packing problem [6, 2, 5] items are to be assigned to bins sequentially, and it is assumed that items just receive consecutive time slots in the bin, starting from time zero. An alternative online model was defined recently by Escribe, Hu, and Levi [11], where the online feature is the assignment to time slots rather than the bins. The problem is called minimum peak appointment scheduling (MPAS). In both models, items are presented one by one, such that each item is assigned irrevocably before the next item arrives.

In the work by Escribe, Hu, and Levi [11], a randomized algorithm with asymptotic competitive ratio at most 1.51.5 was designed, which was recently improved to 16111.455\frac{16}{11}\approx 1.455 by Smedira and Shmoys [20]. A lower bound of 1.51.5 on the competitive ratio of deterministic algorithms was proved [11], while Smedira and Shmoys [20] proved a lower bound of 1.21.2 for the asymptotic competitive ratio of all randomized (and deterministic) algorithms. These results contrast with those known for the standard online bin packing. While the best known lower bound of 1.54278 [5] holds only for deterministic algorithms, earlier results hold for randomized algorithms, where the best such result is 1.5403 [6]. The current best upper bound for standard online bin packing [2] is 1.57829. A simple way to see the difference between the problems is the following. Consider a large even number of items of size 0.40.4, possibly followed by the same number of items of size 0.60.6. A bin packing algorithm has to decide how many pairs of items of size 0.40.4 to create in order to have a good performance in both cases. However, in the case of MPAS, one can assign half of the items of size 0.40.4 to the time interval [0,0.4)[0,0.4) and the other half to [0.6,1)[0.6,1). This is optimal if there are no further items, but if there are such items, half of them is assigned to [0,0.6)[0,0.6) and the other half to [0.4,1)[0.4,1), also obtaining an optimal solution. The problem is not meaningful as a separate offline problem, though generalizations were recently studied as offline problems [19, 14, 10].

A related problem is the so called dual bin packing [8, 1], which may also be seen as a variant of the knapsack problem with multiple knapsacks available [9, 16]: The processing of arriving items is similar, except here the number of available bins (or knapsacks) is fixed in advance, and the goal is rather to maximize the profit associated with those items that are successfully packed. In the multiple knapsack as studied originally, the profit associated with a set of packed items was the maximum over all the bins of the total value of all items packed in the bin [16], but later studies [9, 7] extended this to the sum of values of all the items packed, which is in line with dual bin packing. We are interested in this objective, so we will not specify the results concerned solely with the single bin of maximum value. The packing consists in assigning an item to a particular bin, which is in contrast to MPAS, where instead a “position” or “interval” (on a horizontal axis) within a bin (which is yet to be determined) is specified. An item may also be rejected by an algorithm, i.e., not packed at all. Moreover, in the so called removable online variant of the knapsack problem it is allowed to remove a previously packed item (e.g., to accommodate the one arriving ), which from then on counts as rejected. As is the case in vast amount of literature, we will consider two restricted settings, in which there is a particular natural relation between the profit associated with an item and its size (or processing time); note that as we focus on lower bounds, considering these makes our results stronger. The two cases, which we call as in [9], are proportional, in which the value of an item equals its size, and unit, in which every item is worth 11 regardless of its size.

The dual bin packing problem corresponds to the unit case with no removals, for which no algorithm can attain constant competitive ratio [8]. Thus the studies of this problem focused on “accommodating” instances, in which all items can be packed by the offline solution, for which constant-competitive algorithms were designed. Moreover, it is known that whether an algorithm is allowed to reject an item that it could pack in some bin (thus being “unfair”) affects what ratio can be attained [1]. In the later studies of the multiple knapsack problem, it was noted that proportional instances, even non-accommodating, allow constant-competitive ratio, which was eventually determined to be exactly 1+ln21.69031+\ln 2\approx 1.6903 [9, 7]. Moreover, with removals allowed, a deterministic algorithm of asymptotic competitive ratio at most 33 is known even for general instances, and the proportional and unit instances admit algorithms with much better competitive ratios of 1.61.6 and 1.51.5 respectively [9]. The corresponding lower bounds for these two settings, applicable even to randomized algorithms are only 871.14\frac{8}{7}\approx 1.14 [9] and 761.17\frac{7}{6}\approx 1.17 [1] respectively. No better lower bounds are known for general instances. For special cases with a small number of bins and the proportional case, lower bounds of 43\frac{4}{3} and 65\frac{6}{5} are known for the competitive ratio of deterministic algorithms with two and three bins, respectively [9], and in some special cases the lower bound on the competitive ratio as a function of the number of bins is slightly inferior to the bounds of 87\frac{8}{7} and 76\frac{7}{6} [9, 1]. This problem is also not of interest as a separate offline problem, though the knapsack problem and its variants are being studied continuously, and a near-optimal solution is known for almost fifty years [15].

1.1 Our results

In this work, we prove the following lower bounds on the performance of online algorithms:

  • A lower bound of 1.22871.2287 on the competitive ratio for deterministic algorithms for either the proportional or the unit case of the removable knapsack problem, improving upon the previous bounds of 871.14\frac{8}{7}\approx 1.14 [9] and 761.17\frac{7}{6}\approx 1.17 [1] respectively,

  • A lower bound of 1.21.2 on the competitive ratio for randomized algorithms for the proportional case of the removable knapsack problem, also improving upon the previous bound of 871.14\frac{8}{7}\approx 1.14 [9],

  • A lower bound of 1.26911.2691 on the asymptotic competitive ratio for randomized algorithms for the minimum peak appointment scheduling problem, improving upon the previous bound of 1.21.2 [20].

We also consider some special cases for the online removable knapsack problem. For example, our results improve the known lower bound for three bins and deterministic algorithms.

1.2 Adaptive item sizing in designing hard instances for online algorithms

Those of our lower bounds that are designed specifically for deterministic algorithms employ the “adaptive item sizing” technique [5], which we now describe. This approach and more advanced approaches (in particular, one where there is a multiplicative gap between sizes) were used for other online bin packing problems [13, 4, 3].

This is a procedure in which a sequence SS of items arrives, all with sizes in a predetermined interval [α,β][\alpha,\beta], where α\alpha and β\beta are parameters. This allows the items from SS to be partitioned into a set of smallish items with sizes in the interval [α,θ)[\alpha,\theta) and largish items with sizes in the interval (θ,β](\theta,\beta]. The threshold θ\theta satisfies α<θ<β\alpha<\theta<\beta, and the classification of each item as either smallish or largish occurs immediately after its packing by the deterministic algorithm, but the value of θ\theta is determined later.

Such classification and partitioning can be ensured by a procedure resembling the binary search. Let aa and bb be variables such that αa<bβ\alpha\leq a<b\leq\beta. All items thus far classified as smallish have sizes in [α,a][\alpha,\ a], and all items thus far classified as largish have sizes in [b,β][b,\ \beta]. Initially, we let a=αa=\alpha and b=βb=\beta. Then, the next item to arrive can have any size in (a,b)(a,b), e.g., a+b2\frac{a+b}{2}. Once it is dealt with (packed or rejected) by the algorithm, and hence classified as either smallish or largish, the value of aa or bb respectively is set to this item’s size. Once all items in SS are processed, θ\theta can take any value that could be the size of a next item in the sequence and thus separates the sizes of smallish and largish items, e.g., θ=a+b2\theta=\frac{a+b}{2} for the final values of the variables aa and bb.

2 Online removable knapsack

In our lower bound proofs, we assume without loss of generality that the online algorithm is lazy in that it defers removing (or rejecting) items as long as the packing is valid. Namely, we assume that upon the arrival of an item ee, the algorithm decides to either reject it outright without packing it or chooses any bin BB to which ee is packed. If the bin BB then overflows, the algorithm chooses a subset of items from BB, excluding ee, for removal; this subset has to be minimal such that its removal makes the total size of the items remaining in bin BB at most 11. Additionally, the algorithm is only allowed to reject the item ee outright if there is no bin where it fits without removals; note that this does not mean no removals take place when such bin exists, as the algorithm can choose to pack ee in another bin.

2.1 Deterministic online algorithms for the proportional and unit cases

We start with a deterministic lower bound.

Theorem 2.1

Any deterministic online algorithm that works for any number of bins k2k\geq 2, has competitive ratio of at least 1.2287131.228713.

Proof. We focus on the proportional case, and remark that the proof also applies to the unit case because all items in the strategy have sizes that deviate from 12\frac{1}{2} only by negligible amounts.

The input consists of two phases. The first phase employs the adaptive sizing framework for kk items, with 12ε<α<β<12\frac{1}{2}-\upvarepsilon<\alpha<\beta<\frac{1}{2} for arbitrarily small ε>0\upvarepsilon>0. As there are kk bins, the algorithm is lazy, and item sizes are slightly below 12\frac{1}{2}, every item will be packed upon arrival (though possibly causing removal of another item), every non-empty bin at all times will contain either one or two items, and the number of items in any bin cannot decrease over item. The items are classified as follows upon packing: The first item to be placed in a bin is largish, the second one to be placed in a bin is smallish, and an item that replaces another inherits the replaced item’s class.

As a result, at the end of the first phase, each bin has at most two items, if is it non-empty, then it contains one largish item, and if it contains another one, then that item is smallish. Let Γ\Gamma denote the number of bins with two items, where Γk2\Gamma\leq\lfloor\frac{k}{2}\rfloor, since kk items were presented. If Γ=0\Gamma=0, there are no smallish items, but the threshold θ\theta is still well defined.

In the second phase, there are two possible continuations of the input, and the adversary’s choice depends on Γ\Gamma. The first one, applied when Γ\Gamma is suitably large, is to issue kk items of size 1β>121-\beta>\frac{1}{2} each. Since all previous items have sizes at most β\beta, the optimal offline solution packs these items in pairs, and its profit is at least k(12ε)+k(1β)>k(1ε)k\cdot(\frac{1}{2}-\upvarepsilon)+k\cdot(1-\beta)>k\cdot(1-\upvarepsilon). Now consider the algorithm’s packing. As each item in the second phase has size strictly larger than 12\frac{1}{2}, any bin that was empty at the beginning of this phase, may contain at most one item at its end. The number of bins for the algorithm with exactly one item before the arrival of the new items is at most k2Γk-2\cdot\Gamma, and therefore the profit of the algorithm is below

(1β)(k+Γ+(k2Γ))<(12+ε)(2kΓ).(1-\beta)\cdot(k+\Gamma+(k-2\cdot\Gamma))<(\frac{1}{2}+\upvarepsilon)\cdot(2k-\Gamma)\ .

For ε0\upvarepsilon\to 0, the competitive ratio in this case tends to 2k2kΓ\frac{2k}{2k-\Gamma}.

The other strategy for the second phase, applied when Γ\Gamma is suitably small, is to issue Γ+kΓ2\Gamma+\lfloor\frac{k-\Gamma}{2}\rfloor items of size 1θ1-\theta. Each such item has size slightly above 12\frac{1}{2}, and can be packed together with a smallish item but not with a largish item. Clearly, no bin can have more than one such item. Note that the number of smallish items in the input is at least Γ\Gamma, and thus the number of largish items is at most kΓk-\Gamma, because exactly kk items were issued in the first phase. It is possible that the number of smallish items is larger than Γ\Gamma if the algorithm removed a smallish item to pack another, which is then smallish as well. Offline, it is possible to pack Γ\Gamma bins by placing one smallish item together with one of size 1θ1-\theta in each bin, kΓ2\lfloor\frac{k-\Gamma}{2}\rfloor bins with the remaining items of size 1θ1-\theta, one per bin, and packing all the now remaining items, i.e., largish and yet unpacked smallish ones in pairs into kΓ2\lceil\frac{k-\Gamma}{2}\rceil bins; note that if kΓk-\Gamma is odd, one of those last bins will contain only a single item. Again assuming that ε0\upvarepsilon\to 0, in the limit the total size of items packed this way is

Γ+12kΓ2+kΓ2+12(kΓmod2).\Gamma+\frac{1}{2}\left\lfloor\frac{k-\Gamma}{2}\right\rfloor+\left\lfloor\frac{k-\Gamma}{2}\right\rfloor+\frac{1}{2}(k-\Gamma\mod 2)\ .

For the online algorithm, an item of size 1θ1-\theta cannot be added to a bin with only a single item, since such item is largish by the adaptive item sizing used by the adversary. So the algorithm has only Γ\Gamma bins with total size approximately 11, and its profit is approximately k+Γ2\frac{k+\Gamma}{2} (up to negligible terms). Routine inspection of the cases of odd and even kΓk-\Gamma yields that the competitive ratio is at least

3k+Γ(kΓmod2)2k+2Γ.\frac{3k+\Gamma-(k-\Gamma\mod 2)}{2k+2\Gamma}\ .

If Γk3352\Gamma\geq k\cdot\frac{\sqrt{33}-5}{2}, we have 2k2kΓ0.75+33/121.228713\frac{2k}{2k-\Gamma}\geq 0.75+\sqrt{33}/12\approx 1.228713, and otherwise, 3k+Γ2k+2Γ0.75+33/121.228713\frac{3k+\Gamma}{2k+2\Gamma}\geq 0.75+\sqrt{33}/12\approx 1.228713. Since for large kk, the fraction 12k+2Γ12k\frac{1}{2k+2\Gamma}\leq\frac{1}{2k} tends to zero, the lower bound follows.

In the cases k=2,3,4,5,6,7,8,9,10k=2,3,4,5,6,7,8,9,10 we get:

43,54,65,54,54,119,1613,54, and 1613,\frac{4}{3},\ \frac{5}{4},\ \frac{6}{5},\ \frac{5}{4},\ \frac{5}{4},\ \frac{11}{9},\ \frac{16}{13},\ \frac{5}{4},\mbox{ \ and \ }\frac{16}{13}\ ,

by testing all values of 0Γk20\leq\Gamma\leq\lfloor\frac{k}{2}\rfloor, the bounds of the first case and the suitable bound for the second case.

Again, we note that as all items have sizes almost equal to 12\frac{1}{2}, the proofs works also for unit profits (where these profits are approximately twice as large as the proportional profits).   

2.2 Randomized online algorithms for the proportional case

In this section we provide an alternative easier construction, which in general provides weaker bounds, though with the exception of two values of kk, for which it improves the result of Theorem 2.1 (which was for deterministic online algorithms). Unlike that theorem, this one applies to randomized algorithms as well. Another difference is that here the input sequence is not “accommodating”, i.e., the optimal offline solution does not always pack all the items. The advantages of this construction are that it is fairly simple, and that it provides a lower bound for the case of randomized online algorithms.

Theorem 2.2

Any randomized online algorithm for k2k\geq 2 bins has competitive ratio of at least 1.21.2.

Proof. Let ε>0\upvarepsilon>0 be a very small constant. The input starts with 2k2k items of each of the two sizes: 23ε\frac{2}{3}-\upvarepsilon, 13+3ε\frac{1}{3}+3\upvarepsilon. Since items are removable, and since there are sufficiently many items, we can assume that every bin will either have one item of size 23ε\frac{2}{3}-\upvarepsilon or two items of sizes 13+3ε\frac{1}{3}+3\upvarepsilon.

Let XX be the expected number of bins with one item of size 23ε\frac{2}{3}-\upvarepsilon. The input continues in one of two ways. The first one is kk items of sizes 13+ε\frac{1}{3}+\upvarepsilon, and the second one is kk items of sizes 233ε\frac{2}{3}-3\upvarepsilon. The optimal offline solution has kk full bins in either case. Consider the online algorithm. In the first case, its best approach is to add one item to each bin with an item of size 23ε\frac{2}{3}-\upvarepsilon. These bins are full, so there is no better packing for them. For each bin of the other kind, even if some replacements are made, the total size of the items it holds is at most 23+6ε\frac{2}{3}+6\upvarepsilon. By linearity of expectation, the expected profit of the algorithm is kkX3k-\frac{k-X}{3} (letting ε\upvarepsilon tend to zero and neglecting those terms).

In the other case, there is no reason for the algorithm to replace items of size approximately 23\frac{2}{3}. (Besides, such replacements change only the negligible ε\upvarepsilon terms.) Every bin without such an item can become full when the algorithm replaces one item of size 13+3ε\frac{1}{3}+3\upvarepsilon with the item of size 233ε\frac{2}{3}-3\upvarepsilon). The expected profit of the algorithm is kX3k-\frac{X}{3}.

The threshold for XX is k2\frac{k}{2}. The first input is used if Xk2X\leq\frac{k}{2}, and the second one is used otherwise, if X>k2X>\frac{k}{2}. The competitive ratio is at least 1.21.2.

For odd values of kk, in the deterministic case we can use the integrality of XX. The first input is used if Xk12X\leq\frac{k-1}{2}, and the second one is used otherwise, i.e., for Xk+12X\geq\frac{k+1}{2}. The ratio is at least

kkk+16=6k5k1>1.2.\frac{k}{k-\frac{k+1}{6}}=\frac{6k}{5k-1}>1.2\ .

For k=3,5,7,9k=3,5,7,9 we get lower bounds of 97\frac{9}{7}, 1.251.25, 2117\frac{21}{17}, and 2722\frac{27}{22}, which improves slightly upon the lower bound from Theorem 2.1 for k=3k=3 and k=7k=7.   

3 The online minimum peak appointment scheduling problem

In this section we study the problem MPAS. On high level, the aim in this problem is the same as in the multiple knapsack problem, i.e., to pack the items efficiently, which possibly explains why our results are similar in spirit and techniques. However, the setup is rather different, and it is a minimization problem rather than maximization. Here, every item has to be packed, and the goal is to minimize the number of the bins. The algorithm is not required to specify the bin for packing, but it has to specify the item’s position in any bin it will eventually be packed in, i.e., for an arriving item of size γ\gamma (where 0<γ10<\gamma\leq 1), the algorithm has to specify an interval of the form [x,x+γ)[x,x+\gamma) such that 0x1γ0\leq x\leq 1-\gamma.

3.1 Warm-up: deterministic online algorithms for MPAS

We start with a simple construction for deterministic algorithms that uses the adaptive item sizing technique. Afterwards, we improve it into a lower bound for randomized algorithms.

Theorem 3.1

The asymptotic competitive ratio for deterministic online algorithms for MPAS is at least 1.251.25.

Proof. The input consists of one or two phases, depending on the algorithm. In the first phase, for sufficiently large N>0N>0, 12N12N items arrive with sizes chosen adaptively using α=132ε\alpha=\frac{1}{3}-2\upvarepsilon and β=13ε\beta=\frac{1}{3}-\upvarepsilon for an arbitrarily small value ε>0\upvarepsilon>0. We define the partition into smallish and largish items now. Those items whose intervals after packing contain the point 12\frac{1}{2} are classified as smallish, and the remaining items (whose intervals do not contain the point 12\frac{1}{2}) are classified as largish. Recall that the adaptive sizing guarantees that there exists a threshold θ(α,β)\theta\in(\alpha,\beta) such that smallish items have sizes in [α,θ)[\alpha,\theta) and largish items have sizes in (θ,β](\theta,\beta]. Let QQ denote the number of smallish items.

We further classify the largish items as either “low” or ”high”, depending on whether their intervals lie completely to the left or to the right of the point 12\frac{1}{2}, if the positions are defined on the horizontal axis. Note that all high items contain the point 34\frac{3}{4} in their intervals and similarly all low items contain the point 14\frac{1}{4}. If Q5NQ\geq 5N or Q2NQ\leq 2N, then a solution that distributes the items evenly, i.e., places 4N4N items in each of the intervals

[0,13), [13,23), [23,1),\left[0,\frac{1}{3}\right),\mbox{ \ \ \ \ }\left[\frac{1}{3},\frac{2}{3}\right),\mbox{ \ \ \ \ }\left[\frac{2}{3},1\right)\ ,

and thus has cost of 4N4N, proves that the algorithm’s competitive ratio is at least 54\frac{5}{4}: For Q5NQ\geq 5N, there are Q5NQ\geq 5N smallish items, all containing the point 12\frac{1}{2}, whereas for Q2NQ\leq 2N, there are must be at least 5N5N low or at least 5N5N high items (by the pigeonhole principle), which then all contain the point 14\frac{1}{4} or 34\frac{3}{4} respectively. Otherwise, when Q(2N,5N)Q\in(2N,5N), there is a second phase, which depends on QQ’s relation to 3N3N.

If Q3NQ\geq 3N, 12N12N items of size 23\frac{2}{3} each are issued. An optimal offline solution places the first phase items in the interval [0,13)[0,\frac{1}{3}), and it places the second phase 12N12N items in the interval [13,1)[\frac{1}{3},1), yielding optimal cost of 12N12N. For the algorithm, all 12N12N second phase items must have the point 12\frac{1}{2} as an internal point of their intervals, as do the QQ smallish items, so the cost of the algorithm is at least 15N15N. Thus the asymptotic competitive ratio is at least 1.251.25 in this case.

Finally, if Q3NQ\leq 3N, QQ^{\prime} items of size 1θ1-\theta are issued, where QQ^{\prime} is divisible by 33 and Q2QQQ-2\leq Q^{\prime}\leq Q. Note that all low items have the point θ\theta as an internal point of their intervals, and similarly, all high items have the point 1θ1-\theta as an internal point. We find that the second phase items have a common point with every interval of the low and high items from the first phase. By the pigeonhole principle, there are at least 12NQ2\frac{12N-Q}{2} low items or at least this many high items. Thus, for at least one of the points θ\theta and 1θ1-\theta, there are at least 12NQ2+Q\frac{12N-Q}{2}+Q^{\prime} items whose intervals contain it, for a cost of at least 12N+Q21\frac{12N+Q^{\prime}}{2}-1 for the algorithm. An optimal offline solution has QQ^{\prime} intervals of [0,θ)[0,\theta) for smallish items, QQ^{\prime} intervals of [θ,1)[\theta,1) for items of size 1θ1-\theta, and for the remaining 12NQ12N-Q^{\prime} items (where this number is divisible by 33) there are 4NQ34N-\frac{Q^{\prime}}{3} intervals of every form out of [0,13)[0,\frac{1}{3}), [13,23)[\frac{1}{3},\frac{2}{3}), [23,1)[\frac{2}{3},1). Note that all smallish items have sizes not exceeding θ\theta, and the intervals assigned to such items by an optimal offline solution are sometimes slightly too long (because they have lengths of θ\theta).

The cost of an optimal offline solution is therefore at most 12N+2Q3\frac{12N+2Q^{\prime}}{3}. For large value of NN, we can neglect the additive term and find a lower bound on the ratio

(12N+Q)/2(12N+2Q)/3\frac{(12N+Q^{\prime})/2}{(12N+2Q^{\prime})/3}

for QQ<3NQ^{\prime}\leq Q<3N. This ratio is indeed at least 54\frac{5}{4} for Q<3NQ^{\prime}<3N since

3(12+QN)2(12+2QN)\frac{3(12+\frac{Q^{\prime}}{N})}{2(12+2\frac{Q^{\prime}}{N})}

is a monotonically decreasing function of QN\frac{Q^{\prime}}{N}, and for Q3NQ^{\prime}\leq 3N it is minimized for QN=3\frac{Q^{\prime}}{N}=3, in which case

(12N+Q)/2(12N+2Q)/3=1.25.\frac{(12N+Q^{\prime})/2}{(12N+2Q^{\prime})/3}=1.25\ .

As in each of the four cases analyzed in the proof, the competitive ratio is at least 1.251.25, possibly in the limit as NN grows to infinity, 1.251.25 is a lower bound on asymptotic competitive ratio.   

3.2 A lower bound for randomized algorithms for MPAS

Now, instead of using an adaptive classification of items, we show how to use very small items instead. This construction, which yields a superior bound, also applies to randomized algorithms.

Theorem 3.2

The deterministic and randomized asymptotic competitive ratios for the peak problem are at least 1.26915341.2691534.

Proof. Let N,M>0N,M>0 be large integers, such that NN is even, and MM is divisible by N!N!.

To prove the lower bound for randomized algorithms, we use Yao’s approach, where one considers the best deterministic online algorithm for a known probability distribution over inputs.

Each input starts with a fixed prefix of NMN\cdot M items of size 1N\frac{1}{N} each. For every point zz such that 0z<10\leq z<1, define f(z)f(z) to be the number of items whose assigned intervals contain the point zz as an interior point or the left endpoint of the interval. Since the length of every interval is 1N\frac{1}{N}, its contribution to the definite integral 01f(z)dz\int_{0}^{1}f(z)\ \textrm{d}z is 1N\frac{1}{N}, and therefore

01f(z)dz=MNN=M.\int_{0}^{1}f(z)\ \textrm{d}z=\frac{MN}{N}=M\ .

The integration is possible since the number of discontinuity points of ff is at most 2MN2MN, i.e., a constant for every fixed pair (N,M)(N,M). In fact, ff is constant between every two consecutive discontinuity points, including the boundary points 0 and 11 among those. This implies that we can find the total length of intervals where ff has the integer value ii for 0iMN0\leq i\leq MN, which we denote by βi\beta_{i}. Clearly, i=0MNβi=1\sum_{i=0}^{MN}\beta_{i}=1. Imagine sorting the intervals with fixed values of ff, so that, going from right to left along the [0,1)[0,1) interval, we have, in this order, a sequence of intervals, the i+1i+1-th of which, where 0iMN0\leq i\leq MN, has length βi\beta_{i} and associated value ii. This is captured by a non-increasing step function gg defined as follows: For every point zz where 0z<10\leq z<1, let g(z)g(z) the unique ii such that

j=i+1MNβjz and j=iMNβj>z;\sum_{j=i+1}^{MN}\beta_{j}\leq z\ \ \mbox{ and \ \ \ }\sum_{j=i}^{MN}\beta_{j}>z\ ;

the function gg is well-defined, since naturally j=MN+1MNβj=0\sum_{j=MN+1}^{MN}\beta_{j}=0. Moreover, it holds that

01g(z)dz=i=0MNiβi=01f(z)dz=M.\int_{0}^{1}g(z)\ \textrm{d}z=\sum_{i=0}^{MN}i\beta_{i}=\int_{0}^{1}f(z)\ \textrm{d}z=M\enspace. (1)

We further note that it follows from the definition of gg that any (left-closed) interval of length at least \ell contains a point zz such that g(z)f(1)g(z)\geq f(1-\ell), i.e., a point zz which is contained in at least f(1)f(1-\ell) intervals assigned by the algorithm to the items from the input prefix.

Next, the input may continue in one of many ways. Specifically, consider an eventually fixed tt such that 1tN211\leq t\leq\frac{N}{2}-1. Then, for every q=t,t+1,,N21q=t,t+1,\ldots,\frac{N}{2}-1, there is an input IqI_{q} which continues after the prefix with MNq\frac{MN}{q} items of length 1qN1-\frac{q}{N}. Since qN21q\leq\frac{N}{2}-1, we have

1qN1N21N=12+1N>12.1-\frac{q}{N}\geq 1-\frac{\frac{N}{2}-1}{N}=\frac{1}{2}+\frac{1}{N}>\frac{1}{2}\ .

An optimal offline solution assigns all these items the interval [qN,1][\frac{q}{N},1], and it partitions the MNMN items of size 1N\frac{1}{N} from the prefix into qq subsets of MNq\frac{MN}{q}, to be assigned the intervals [j1N,jN)[\frac{j-1}{N},\frac{j}{N}) for j=1,2,,qj=1,2,\ldots,q, i.e., all items from a jj-th subset are assigned the jj-th interval. Clearly, the cost of such solution is MNq\frac{MN}{q}, i.e.,

OPT(Iq)=MNq.\text{OPT}(I_{q})=\frac{MN}{q}\enspace. (2)

As for the algorithm, no matter what intervals it assigned to the items of size 1qN1-\frac{q}{N}, they must all contain the interval Jq=[qN,1qN)J_{q}=[\frac{q}{N},1-\frac{q}{N}), whose length is 12qN1-\frac{2q}{N}. Thus, by aforementioned properties of the function gg, there is a point zJqz\in J_{q} such that f(z)g(2qN)f(z)\geq g\left(\frac{2q}{N}\right), which implies that

ALG(Iq)g(2qN)+MNq.\text{ALG}(I_{q})\geq g\left(\frac{2q}{N}\right)+\frac{MN}{q}\enspace. (3)

In addition, we consider the prefix of items by itself, i.e., with no further items released, and denote such instance IN/2I_{N/2}. The optimal offline solution partitions items into NN subsets and uses all intervals [j1N,jN)[\frac{j-1}{N},\frac{j}{N}) for qjNq\leq j\leq N, so

OPT(IN/2)=M,\text{OPT}(I_{N/2})=M\enspace, (4)

while by definition and properties of the function gg, for the online algorithm we have

ALG(IN/2)g(0).\text{ALG}(I_{N/2})\geq g\left(0\right)\enspace. (5)

Suppose that the algorithm is asymptotically RR-competitive. Then, for some additive constant CC, the following inequality holds for any probability distribution {pq}q=tN/2\{p_{q}\}_{q=t}^{N/2} over the instances {Iq}q=tN/2\{I_{q}\}_{q=t}^{N/2}:

𝔼q[ALG(Iq)]R𝔼q[OPT(Iq)]+C.\mathbb{E}_{q}\left[\text{ALG}(I_{q})\right]\leq R\cdot\mathbb{E}_{q}\left[\text{OPT}(I_{q})\right]+C\enspace. (6)

Plugging in the upper bounds on OPT, i.e., (2) and (4), as well as the lower bounds on ALG, i.e., (3) and (5), we get

pN2g(0)+q=tN21pq(g(2qN)+MNq)R(pN2M+q=tN21pqMNq)+C,p_{\frac{N}{2}}\cdot g(0)+\sum_{q=t}^{\frac{N}{2}-1}p_{q}\left(g\left(\frac{2q}{N}\right)+\frac{MN}{q}\right)\leq R\left(p_{\frac{N}{2}}\cdot M+\sum_{q=t}^{\frac{N}{2}-1}p_{q}\frac{MN}{q}\right)+C\enspace,

which after moving the terms without gg to the right hand side becomes

pN2g(0)+q=tN21pqg(2qN)RpN2M+(R1)q=tN21pqMNq+C.p_{\frac{N}{2}}\cdot g(0)+\sum_{q=t}^{\frac{N}{2}-1}p_{q}\cdot g\left(\frac{2q}{N}\right)\leq R\cdot p_{\frac{N}{2}}\cdot M+\left(R-1\right)\sum_{q=t}^{\frac{N}{2}-1}p_{q}\frac{MN}{q}+C\enspace.

Letting pN2=2tNp_{\frac{N}{2}}=\frac{2t}{N} and pi=2Np_{i}=\frac{2}{N} for ti<N/2t\leq i<N/2, the left hand side becomes an upper bound on the integral of gg over [0,1)[0,1), so by (1),

M=01g(t)dt2tNg(0)+2Nq=tN21g(2qN)2N(tRM+q=tN21(R1)Nq)+C.M=\int_{0}^{1}g(t)\ \textrm{d}t\leq\frac{2t}{N}\cdot g(0)+\frac{2}{N}\sum_{q=t}^{\frac{N}{2}-1}g\left(\frac{2q}{N}\right)\leq\frac{2}{N}\cdot(t\cdot R\cdot M+\sum_{q=t}^{\frac{N}{2}-1}(R-1)\frac{N}{q})+C\enspace.

Dividing by 2M2M, the term C2M\frac{C}{2M} tends to 0 for MM\to\infty, so letting τ=tN\tau=\frac{t}{N}, this inequality becomes

τR+(R1)q=τNN211q12.\tau\cdot R+(R-1)\sum_{q=\tau\cdot N}^{\frac{N}{2}-1}\frac{1}{q}\geq\frac{1}{2}\enspace.

With NN growing to infinity, the sum q=τNN211q\sum_{q=\tau\cdot N}^{\frac{N}{2}-1}\frac{1}{q} tends to ln(2τ)-\ln(2\tau). Rearranging, we have

(R1)(τln(2τ))12τ,\left(R-1\right)\left(\tau-\ln\left(2\tau\right)\right)\geq\frac{1}{2}-\tau\enspace,

where finally letting τ0.212072\tau\approx 0.212072 yields the desired lower bound on RR.

We note that the even though we did not specify the probability distribution over instances upfront, it is fixed, and in particular it does not depend on the deterministic online algorithm, which thus may know the distribution a priori, as stipulated by Yao’s principle.   

References

  • [1] Y. Azar, J. Boyar, L. M. Favrholdt, K. S. Larsen, M. N. Nielsen, and L. Epstein. Fair versus unrestricted bin packing. Algorithmica, 34(2):181–196, 2002.
  • [2] J. Balogh, J. Békési, G. Dósa, L. Epstein, and A. Levin. A new and improved algorithm for online bin packing. In Proc. of the 26th European Symposium on Algorithms (ESA2018), pages 5:1–5:14, 2018.
  • [3] J. Balogh, J. Békési, G. Dósa, L. Epstein, and A. Levin. Lower bounds for several online variants of bin packing. Theory of Computing Systems, 63(8):1757–1780, 2019.
  • [4] J. Balogh, J. Békési, G. Dósa, L. Epstein, and A. Levin. Online bin packing with cardinality constraints resolved. Journal of Computer and System Sciences, 112:34–49, 2020.
  • [5] J. Balogh, J. Békési, G. Dósa, L. Epstein, and A. Levin. A new lower bound for classic online bin packing. Algorithmica, 83(7):2047–2062, 2021.
  • [6] J. Balogh, J. Békési, and G. Galambos. New lower bounds for certain classes of bin packing algorithms. Theoretical Computer Science, 440:1–13, 2012.
  • [7] M. Bienkowski, M. Pacut, and K. Piecuch. An optimal algorithm for online multiple knapsack. In Proc. of the 47th International Colloquium on Automata, Languages, and Programming (ICALP2020), LIPIcs, pages 13:1–13:17, 2020.
  • [8] J. Boyar, L. M. Favrholdt, K. S. Larsen, and M. N. Nielsen. The competitive ratio for on-line dual bin packing with restricted input sequences. Nordic Journal of Computing, 8(4):463–472, 2001.
  • [9] M. Cygan, L. Jez, and J. Sgall. Online knapsack revisited. Theory of Computing Systems, 58(1):153–190, 2016.
  • [10] M. A. Deppert, K. Jansen, A. Khan, M. Rau, and M. Tutas. Peak demand minimization via sliced strip packing. In Proc. of the 24th International Conference on Approximation Algorithms for Combinatorial Optimization Problems (APPROX2021), pages 21:1–21:24, 2021.
  • [11] C. Escribe, M. Hu, and R. Levi. Competitive algorithms for the online minimum peak appointment scheduling. Available at SSRN, 3787306, 2021. 31 pages.
  • [12] W. Fernandez de la Vega and G. S. Lueker. Bin packing can be solved within 1+ε1+\varepsilon in linear time. Combinatorica, 1(4):349–355, 1981.
  • [13] H. Fujiwara and K. M. Kobayashi. Improved lower bounds for the online bin packing problem with cardinality constraints. Journal of Combinatorial Optimization, 29(1):67–87, 2015.
  • [14] W. Gálvez, F. Grandoni, A. J. Ameli, and K. Khodamoradi. Approximation algorithms for demand strip packing. In Proc. of the 24th International Conference on Approximation Algorithms for Combinatorial Optimization Problems (APPROX2021), pages 20:1–20:24, 2021.
  • [15] O. H. Ibarra and C. E. Kim. Fast approximation algorithms for the knapsack and sum of subset problems. Journal of the ACM, 22(4):463–468, 1975.
  • [16] K. Iwama and S. Taketomi. Removable online knapsack problems. In Proc. of the 29th International Colloquium on Automata, Languages, and Programming (ICALP2002), pages 293–305, 2002.
  • [17] D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey, and R. L. Graham. Worst-case performance bounds for simple one-dimensional packing algorithms. SIAM Journal on Computing, 3:256–278, 1974.
  • [18] N. Karmarkar and R. M. Karp. An efficient approximation scheme for the one-dimensional bin-packing problem. In Proceedings of the 23rd Annual Symposium on Foundations of Computer Science (FOCS1982), pages 312–320, 1982.
  • [19] A. Ranjan, P. P. Khargonekar, and S. Sahni. Offline first-fit decreasing height scheduling of power loads. Journal of Scheduling, 20(5):527–542, 2017.
  • [20] D. Smedira and D. B. Shmoys. Scheduling appointments online: The power of deferred decision-making. CoRR, abs/2111.13986, 2021.