1 Introduction

In the two-dimensional strip packing problem a number of rectangles have to be packed without rotation or overlap into a strip such that the height of the strip used is minimum. The width of the rectangles is bounded by 1 and the strip has width 1 and infinite height. Baker et al. (1980) show that this problem is NP-hard.

We study the online version of this packing problem. In the online version the rectangles are given to the online algorithm one by one from a list, and the next rectangle is given as soon as the current rectangle is irrevocably placed into the strip. To evaluate the performance of an online algorithm we employ competitive analysis. For a list of rectangles L, the height of a strip used by online algorithm A and by the optimal solution is denoted by A(L) and OPT(L), respectively. The optimal solution is not restricted in any way by the ordering of the rectangles in the list. Competitive analysis measures the absolute worst-case performance of online algorithm A by its competitive ratio sup L {A(L)/OPT(L)} (cf. Pruhs et al. 2004).

Regarding the upper bound on the competitive ratio for online strip packing, recent advances have been made by Ye et al. (2009) and Hurink and Paulus (2008). Independently they show that a modification of the well-known shelf algorithm yields an online algorithm with competitive ratio \(7/2+\sqrt{10}\approx6.6623\). We refer to these two papers for a more extensive overview of the literature.

In the early 80’s, Brown et al. (1982) derived a lower bound ρ≥2 on the competitive ratio of any online algorithm by constructing certain (adversary) sequences in a fairly straightforward way (cf. Sect. 2). These sequences were further studied by Johannes (2006) and Hurink and Paulus (2008), who derived improved lower bounds of 2.25 and 2.43, resp. (Both results are computer aided and presented in terms of online parallel machine scheduling, a closely related problem.) The paper of Hurink and Paulus (2008) also presents an upper bound of ρ≤2.5 for packing such “Brown-Baker-Katseff sequences”. The purpose of our present paper is to close the gap between 2.43 and 2.5 by presenting a tight analysis, showing that Brown-Baker-Katseff sequences can be packed online with competitive ratio \(\rho = 3/2 +\sqrt{33}/6\) and that this is best possible. As a byproduct, we obtain a new lower bound ρ≈2.457 for online strip packing.

The result of this paper has been presented at the CTW 2010 (cf. Kern 2010). Meanwhile, in a joint work with R. Harren, we tried to analyze a modified version of Brown-Baker-Katseff sequences, yielding a slightly better lower bound (but no exact analysis as here), cf. Harren and Kern (2011).

2 The instance construction

In this section we describe the construction of Brown-Baker-Katseff sequences L n according to Brown et al. (1982). In addition, we present an online algorithm for packing the sequences L n online with ratio \(\hat{\rho}= 3/2+\sqrt{33}/6\). For convenience, let throughout this note \(\hat{\rho}=3/2+\sqrt{33}/6\).

We define L n as the list of rectangles (p 0,q 1,p 1,q 2,p 2,…,q n ,p n ), where p i denotes a rectangle of height p i and negligible width (no more than 1/(n+1)), and q i denotes a rectangle of height q i and width 1. The rectangle heights are defined such that, when the items are packed online, each item must be packed on top of the preceding ones. More precisely, we let

where α i p i and β i p i are distances the online algorithm has placed between earlier rectangles, and ϵ is a small positive value. The value α i p i denotes the vertical distance between rectangles p i−1 and q i , and the value β i p i denotes the vertical distance between q i and p i . This is illustrated in Fig. 1. The values α i and β i completely characterize the behavior of the online algorithm when processing L n . For consistency we define in addition α 0=0.

Fig. 1
figure 1

Online and optimal packing of L 2

By definition of the rectangles’ heights and widths, an online algorithm can only pack the rectangles one above the other in the same order as the rectangles appear in the list L n . An optimal offline packing is obtained by first packing the rectangles q i on top of each other and then pack all p i next to each other on top of the q-rectangles. The sole function of the positive term ϵ is to ensure this structure on any online packing. From now on we assume that ϵ is small enough to be omitted from the analysis.

We start with the (simpler) upper bound:

Theorem 1

Each list L n can be packed online with competitive ratio \(\hat{\rho}=\frac{3}{2}+\frac{\sqrt{33}}{6}\).

Proof

Consider the online algorithm A that chooses \(\beta_{0}=\hat{\rho}-1\), \(\alpha_{2}=1/(\hat{\rho}-1)\), and all other gaps equal to 0. So \(p_{0}=1,q_{1}=q_{2}=\hat{\rho}-1, p_{1}=\hat{\rho}\), and p 2 can be computed from p 2=p 1+α 2 p 2: We get \(p_{2}=\hat{\rho}/(1-\frac{1}{\hat{\rho}-1})=\frac{(\hat{\rho}-1)\hat{\rho}}{\hat{\rho}-2}\), or \(p_{2}= (\hat{\rho}-1)(3\hat{\rho}-2)=4\hat{\rho}-2\) by our choice of \(\hat{\rho}\).

We claim that the resulting algorithm is \(\hat{\rho}\)-competitive when presented with L n .

  • After packing p 0=1 we have \(A(L_{0})=\hat{\rho}\) and OPT(L 0)=1. Thus, the competitive ratio is exactly \(\hat{\rho}\) at this point.

  • After packing rectangle q 1 the online and optimal packing increase by the same amount. Thus the competitive ratio decreases.

  • After \(p_{1}=\hat{\rho}\) we have \(A(L_{1})=\beta_{0} p_{0} +p_{0}+q_{1}+p_{1}=\hat{\rho}-1+1+\hat{\rho} -1 +\hat{\rho}\), while OPT(L 1)=q 1+p 1=2ρ−1. Hence \({A(L_{1})}/{\mathit{OPT}(L_{1})}=(3\hat{\rho}-1)/(2\hat{\rho}-1)<\hat{\rho}\).

  • After q 2 we have \(A(L_{1}q_{2})=A(L_{1})+q_{2}+\alpha_{2}p_{2}=3\hat{\rho}-1+\hat{\rho}-1+3\hat{\rho}-2=7\hat{\rho}-4\), while OPT(L 1 q 2)=p 1+q 1+q 2=3ρ−2. So \({A(L_{1}q_{2})}/{\mathit{OPT}(L_{1}q_{2})}=(7\hat{\rho}-4)/(3\hat{\rho}-2)=\hat{\rho}\). Again the competitive ratio is exactly \(\hat{\rho}\) at this point (by definition of \(\hat{\rho}\)).

  • After p 2 we have \(A(L_{2})=A(L_{1}q_{2})+p_{2}=7\hat{\rho}-4+4\hat{\rho}-2=11\hat{\rho}-6\), while \(\mathit{OPT}(L_{2})=q_{1}+q_{2}+p_{2}=2\hat{\rho}-2+4\hat{\rho}-2=6\hat{\rho}-4\). Thus \({A(L_{2})}/{\mathit{OPT}(L_{2})}=(11\hat{\rho}-6)/(6\hat{\rho}-4)<\hat{\rho}\).

  • For i≥3 there are no more gaps introduced by online algorithm A. In particular, \(p_{2}=p_{3}=p_{4}=\cdots=(\hat{\rho}-1)(3\hat{\rho}-2) \) and \(q_{i}=\alpha_{2}p_{2}=3\hat{\rho}-2\) for all i≥3. When packing q i , the online and optimal packing increase by the same amount and, thus, ρ-competitiveness is not violated. After packing p i+1, however, we have OPT(L i+1)=OPT(L i )+q i+1 and \(A(L_{i+1})=A(L_{i})+q_{i+1}+p_{i+1}=A(L_{i})+\hat{\rho}q_{i+1}\). The height of the online packing grows exactly \(\hat{\rho}\) times as fast as the optimal packing.

So, online algorithm A is \(\hat{\rho}\)-competitive for the list of rectangles L n . □

3 Lower bound on the competitive ratio

In this section we prove a lower bound of \(\hat{\rho}={3}/{2}+{\sqrt{33}}/{6}\) on the competitive ratio for online packing Brown-Baker-Katseff sequences—and hence for online strip packing in general. The outline of the proof is as follows.

Assume that there exists a ρ-competitive online algorithm A with \(\rho<\hat{\rho}\). We present this algorithm with the list L n , with n arbitrarily large. To obtain a contradiction we define a potential function Φ i on the state of the online packing after packing rectangle p i . We argue that this potential function is both bounded from below and that it decreases to −∞, giving us the required contradiction.

After packing the rectangle p i , we measure with γ i how much online algorithm A improves upon the ρ-competitiveness bound: We define γ i through

$$A(L_i)+\gamma_ip_i=\rho \mathit{OPT}(L_i).$$

The potential function Φ i is defined (after packing rectangle p i ) by

$$\Phi_i:=\frac{\gamma_i+\beta_i-(\rho-2)\alpha_i}{1-\alpha_i}.$$

We admit that the potential function looks rather involved. Its exact form is simply motivated by the technical analysis that follows. In particular, the potential function is designed such that a certain “shift invariance” (cf. Lemma 2 below) holds, which helps a lot in simplifying the analysis. (Yet, in Harren and Kern 2011 we analyze “extended” Brown-Baker-Katseff sequences with a simpler potential Φ i =γ i +β i and considerable technical effort.)

The values of α i and β i are nonnegative by definition and γ i is nonnegative by the ρ-competitiveness of online algorithm A. Observe that shifting p i , say, upward, increases β i and decreases γ i by the same amount, so that shifting p i has actually no effect on Φ i . In Lemma 2 we will see that the same holds w.r.t. shifting q i . Thus the decisions of the online algorithm in “phase i” have no effect on Φ i , but rather on subsequent potential values. (This phenomenon is observed also elsewhere, cf., e.g. Fuchs et al. 2005 or Harren and Kern 2011.) The crucial result is Lemma 6, stating that \(\rho <\hat{\rho}\) forces a significant decrease of the potential in each step. Thus Φ i+1→−∞ for i→∞. On the other hand, in Lemma 5 we show among other things that \(\alpha_{i} < 1/(\hat{\rho}-1)\). As a consequence, Φ i >−1 for all i. This contradiction finally implies \(\rho \ge \hat{\rho}\), the main result of this note:

Theorem 2

The best possible ratio for packing Brown-Baker-Katseff sequences is \(\hat{\rho}=3/2+\sqrt{33}/6\). This value also provides a lower bound for online strip packing.

The remainder of this note is concerned with the proofs of the afore mentioned lemmata. We start by providing some basic properties (Lemmas 1 and 2 below) of the potential function Φ i . In the following, ρ is assumed to be suitably close to \(\hat{\rho}\) whenever this is necessary.

First observe that the following equation defines p i+1 according to the construction rule for the list L n . We will use it at several places during our analysis:

(1)

Lemma 1

If Φ i ρ−1 then γ i +β i +α i ρ−1.

Proof

 □

Lemma 2

The potential Φ i is invariant under shifting p i and/or q i .

Proof

Shifting rectangle p i , say, upward by one unit does not affect OPT(L i ) nor α i . Furthermore, A(L i ) increases by one unit and, hence, γ i p i decreases by one unit. At the same time β i p i increases by one unit, so that γ i +β i remains constant and Φ i is invariant under shifting p i .

To show that Φ i is invariant under shifting q i , assume w.l.o.g. that β i =0, i.e., that p i has been shifted down to q i , and that we shift the concatenated rectangles q i p i simultaneously, say, upward. This causes an increase of p i by one unit, so A(L i ) increases in total by 2 units. On the other hand, OPT(L i ) increases by just one unit, so γ i p i will increase by ρ−2 units. Clearly, α i p i increases by one unit and (1−α i )p i =(1+β i−1)p i−1 remains constant. Hence

$$\Phi_i=\frac{\gamma_ip_i-(\rho-2)\alpha_ip_i}{(1-\alpha_i)p_i}$$

will indeed remain constant. □

Clearly, shifting p i and/or q i does have an effect on subsequent values like p i+1 and Φ i+1. Furthermore, even when we are only interested in packing L i , shifting up p i or shifting down the concatenated q i p i may result in an infeasible packing. (Indeed, as we shift q i p i down, p i decreases and after a while the packing may cease to be ρ-competitive!) As long as we are only interested in the value of Φ i , however, we may well shift p i and q i as we like, disregarding the competitiveness constraints. We will make extensive use of this observation further on.

Lemma 3

$$\Phi_{i+1} = \frac{\gamma_i + (\rho-1)\beta_i - 1+ (\rho-1) {q_{i+1}}/{p_i}}{1 + \beta_i}.$$

Proof

By Lemma 2 we can shift rectangle p i+1 down, i.e. β i+1=0. Then

By (1) we can divide the left hand side by (1−α i+1)p i+1 and the right hand side by (1+β i )p i to obtain the result. □

Lemma 4

If q i+1=max{α i p i ,q i }, then we may assume w.l.o.g. that β i =0.

Proof

Shifting rectangle p i down decreases the distance β i p i and increases α i+1 p i+1. However, when we keep all other distances equal it does not affect p j with j>i. Due to the increase in α i+1 p i+1 some q j with j>i may increase, but this is only in favor of the online algorithm since the optimal value increases by exactly the same amount. So the alternative online algorithm that schedules p i earlier and leaves all other distances unchanged is also feasible. □

Lemma 5

For i≥0, Φ i ρ−1, and for i≥1, \(\alpha_{i}\leq 1/(\hat{\rho}-1)\) and \(q_{i}/p_{i}\leq 1(\hat{\rho}-1)\). In case q i =α i−1 p i−1 or q i =q i−1, we even have \(q_{i}/p_{i}\leq (1-\alpha_{i})/(\hat{\rho}-1)\).

Proof

By induction: The claim holds for i=0 since α 0=0 by definition, γ 0+β 0=ρ−1 and thus Φ0=ρ−1. We assume the lemma holds up to i, and prove it for i+1 by case distinction on the way the height of rectangle q i+1 is determined. (For i=1, case 2 applies.)

Case 1: :

q i+1=α i p i .

By Lemma 4 we may assume β i =0. By (1), this further implies p i =(1−α i+1)p i+1. Hence

$$\frac{q_{i+1}}{p_{i+1}}=\frac{\alpha_i p_i}{p_i+\alpha_{i+1}p_{i+1}} = \frac{\alpha_i(1-\alpha_{i+1})p_{i+1}}{(1-\alpha_{i+1})p_{i+1}+\alpha_{i+1}p_{i+1}} = (1-\alpha_{i+1})\alpha_i \leq \frac{1-\alpha_{i+1}}{\hat{\rho}-1}$$

by induction.

The online algorithm A is by assumption ρ-competitive after packing rectangle q i+1, which means that the distance between rectangles q i+1 and p i is not too large, i.e., α i+1 p i+1γ i p i +(ρ−1)q i+1=γ i p i +(ρ−1)α i p i . Together with Lemma 1 this gives

for \(\rho \le \hat{\rho}\). (This upper bound for α i+1, obtained by setting γ i =0 and α i =ρ−1 (cf. Lemma 1) is rather weak, but sufficient for our purposes.)

Finally, by Lemma 3, the induction assumption and Lemma 1 we get

Case 2: :

q i+1=β i p i .

By Lemma 1 we have β i ρ−1 and thus,

(2)

which is less than \(1/(\hat{\rho}-1)\) for \(\rho \le \hat{\rho}\).

The online algorithm A is by assumption ρ-competitive after packing rectangle q i+1, which means that the distance between rectangles q i+1 and p i is not too large, i.e. α i+1 p i+1γ i p i +(ρ−1)q i+1=γ i p i +(ρ−1)β i p i . This, together with β i +γ i ρ−1 (by Lemma 1) gives

for \(\rho \le \hat{\rho}\). (In the upper bound computation for α i above we assumed that γ i is as large as possible and β i is as small as possible. This is justified by the fact that \(\frac{\rho-1}{\rho}<\frac{1}{\hat{\rho}-1}\).)

For the potential, Lemma 3 gives

(3)

which is strictly less than ρ−1 for ρ sufficiently close to \(\hat{\rho}\). (Again, for the last inequality in (3), note that increasing β i as much as possible instead of γ i is justified: If we let \(f(\beta,\gamma)=\frac{\gamma+2(\rho-1)\beta -1}{1+\beta}\), then

$$\frac{\partial f}{\partial \gamma}=\frac{1}{1+\beta } < \frac{\partial f}{\partial \beta }=\frac{2(\rho -1)-\gamma +1}{(1+\beta )^2} \quad \Leftrightarrow \quad \beta + \gamma < 2 \rho -1.$$

The latter, however, is true as we assume β+γρ−1.)

Case 3: :

q i+1=q i .

Induction yields

$$\frac{q_{i+1}}{p_{i+1}}=\frac{q_i}{p_{i+1}}\le (1-\alpha_{i+1})\frac{q_i}{p_i}\leq\frac{1-\alpha_{i+1}}{\hat{\rho}-1}.$$

By Lemma 4 we can assume β i =0, and thus

To argue that \(\alpha_{i+1}\leq 1/(\hat{\rho}-1)\) we shift the concatenated rectangles q i ,p i down as far as possible, i.e., until either γ i =0 or α i =0 (thereby increasing α i+1). By shifting q i ,p i down, the length of p i decreases, therefore γ i can become 0. At the same time p i+1 increases, causing the optimal and online solution to increase by the same amount. So the online algorithm is still ρ-competitive after this shift.

If γ i =0, then α i+1 p i+1≤(ρ−1)q i+1=(ρ−1)q i p i . Thus \(\alpha_{i+1}\leq 1/2 \leq 1/(\hat{\rho}-1)\).

If α i =0, the rectangles p i−1,q i ,p i are concatenated. To show \(\alpha_{i+1}\leq 1/(\hat{\rho}-1)\) for this case, we distinguish three subcases.

Case 3a: :

q i+1=q i =α i−1 p i−1.

By Lemma 4 we can assume β i−1=0 (and hence p i =p i−1). Thus we conclude that γ i p i =γ i−1 p i−1+(ρ−1)q i p i γ i−1 p i−1. Thus (using Lemma 1 again),

and therefore

for \(\rho \le \hat{\rho}\).

Case 3b: :

q i+1=q i =β i−1 p i−1.

Since α i =0 and β i =0 we have Φ i =γ i ≤(2(ρ−1)2−1)/ρ (cf. (3)). Thus,

The latter is increasing in ρ, so we conclude (after multiplying the enumerator and denominator with ρ) that

$$\alpha_{i+1} \le \frac{(\hat{\rho}-1)^2+2((\hat{\rho}-1)^2-1)}{\hat{\rho}+(\hat{\rho}-1)^2+2((\hat{\rho}-1)^2-1)}=\frac{1}{\hat{\rho}-1}$$

by definition of \(\hat{\rho}\). (Recall that \(3\hat{\rho}^{2}-9\hat{\rho}+4=0\).)

Case 3c: :

q i+1=q i =q i−1. By Lemma 4 we may assume β i−1=0, so that actually q i−1,p i−1,q i ,p i are concatenated and p i =p i−1. Since γ i p i =γ i−1 p i−1+(ρ−1)q i p i <γ i−1 p i−1, i.e., the improvement of A upon ρ-competitiveness decreases, the value of α i+1 is smaller than α i could at most be, thus, in particular, less than \(1/(\hat{\rho}-1)\).

 □

Lemma 6

\(\Phi_{i+1} \leq \Phi_{i} - \frac{\hat{\rho}-\rho}{\hat{\rho}-1}\).

Proof

By case distinctions:

Case 1: :

q i+1=α i p i .

By Lemma 4 we can assume β i =0. Furthermore, Lemma 2 allows us to shift p i+1 resp. the concatenated q i+1 p i+1 down until α i+1=β i+1=0 without affecting Φ i+1 (although this might result in a negative value of γ i+1 in case Φ i+1 is negative). Summarizing, let us assume that q i ,p i ,q i+1,p i+1 are concatenated.

We seek to analyze how Φ i and Φ i+1 vary as the concatenated q i ,p i ,q i+1,p i+1 are shifted upward. By Lemma 2, Φ i remains unchanged. As to Φ i+1, observe that shifting q i ,p i ,q i+1,p i+1 upward by one unit will increase α i p i and hence q i+1 as well as p i and p i+1 by one unit each. Hence A(L i+1) increases by 4. On the other hand, OPT(L i+1) increases by 2, so that γ i+1 p i+1 increases by (2ρ−4). Hence shifting q i ,p i ,q i+1,p i+1 upward will increase Φ i+1 as long as Φ i+1<2ρ−4. So we are led to distinguish the following two cases:

Φ i+1>2ρ−4::

In this case, Φ i+1 will increase as we shift q i ,p i ,q i+1,p i+1 downward. Doing so, we decrease q i+1. So we eventually end up in a situation where either q i+1=q i (which will be treated in Case 3 below) or γ i becomes zero (revealing that Φ i =−(ρ−2)α/(1−α) must be negative). But γ i =0 implies

So Φ i+1=γ i+1=(ρ−1)α i −1<0, contradicting our assumption that Φ i+1>2ρ−4.

Φ i+1≤2ρ−4::

In this case Φ i+1 increases as we shift q i ,p i ,q i+1,p i+1 upward until either q i gets tight in the sense that A(L i p i )=ρ OPT(L i p i ) or Φ i+1=2ρ−4 is reached. The latter is impossible: Since γ i+1 p i+1=γ i p i +(ρ−1)q i+1p i+1, we conclude (using Lemma 1) that

contradicting our assumption that Φ i+1=2ρ−4.

Finally, assume that q i gets tight. In this case, γ i p i =ρ(p i p i−1)−p i ρα i p i p i . So γ i ρα i −1. Similarily, γ i+1 p i+1=γ i p i +(ρ−1)q i+1p i+1. Dividing by p i+1=p i , we obtain γ i+1=γ i +(ρ−1)α i −1. Hence

$$\Delta\Phi= \Phi_{i+1}-\Phi_i= \gamma_{i+1}-\Phi_i= \gamma_i+(\rho-1)\alpha_i-1-\frac{\gamma_i-(\rho-2)\alpha_i}{1-\alpha_i}$$

is maximized when γ i is as small as possible, i.e. γ i =ρα i −1. Thus

$$\Delta\Phi \le 2\rho\alpha_i-\alpha_i-2-\frac{2\alpha_i-1}{1-\alpha_i}= (2\rho-1)\alpha_i- \frac{1}{1-\alpha_i}.$$

This shows that ΔΦ is indeed strictly negative since

$$\alpha_i(1-\alpha_i) \le \frac{1}{2}\cdot\frac{1}{2} =\frac{1}{4} < \frac{1}{2\rho-1}$$

for \(\rho \le \hat{\rho}\).

Case 2: :

q i+1=β i p i .

By Lemma 3 we have

$$\Delta\Phi=\Phi_{i+1}-\Phi_i=\frac{\gamma_i+2(\rho-1)\beta_i-1}{1+\beta_i}-\frac{\gamma_i+\beta_i-(\rho-2)\alpha_i}{1-\alpha_i}.$$

The derivative with respect to γ i of the above is 1/(1+β i )−1/(1−α i )≤0, so ΔΦ is decreasing in γ i . Thus we may choose γ i =0. Additionally, we have α i β i , otherwise we are not in this case. With γ i =0 and under the constraints α i β i ρ−1,α i +β i ρ−1 we have

$$\Phi_{i+1}-\Phi_i = \frac{2(\rho-1)\beta_i-1}{1+\beta_i}- \frac{\beta_i-(\rho-2)\alpha_i}{1-\alpha_i}<-0.04.$$

Indeed, the function

$$\Delta=\Delta(\alpha,\beta)=\frac{2(\rho-1)\beta-1}{1+\beta}-\frac{\beta-(\rho-2)\alpha}{1-\alpha}$$

has partial derivative Δ α =0 for β=ρ−2. Plugging this value into Δ, we find that the resulting Δ is independent of α and equals \(\rho -2-\frac{1}{\rho-1} < -0.1\). On the boundary α=0 the function Δ=Δ(β) is less than −0.04 for β∈[0,ρ−1] and on the boundary α=β the function Δ=Δ(β) is bounded from above by −0.2 for \(\beta \in [0,\frac{\rho-1}{2}]\). (Note that α=β implies \(\beta \le \frac{\rho-1}{2}\).) We omit the details.

Case 3: :

q i+1=q i .

By definition of q i+1, we have α i p i q i+1=q i . Thus, Lemma 5 implies \(\alpha_{i} \le q_{i}/p_{i} \le \frac{1-\alpha_{i}}{\hat{\rho}-1}\) or, equivalently, \(\alpha_{i} \le 1/\hat{\rho}\). Thus we conclude that

$$\Phi_i = \frac{\gamma_i-(\rho-2)\alpha_i}{1-\alpha_i}\ge \frac{-(\rho-2)\alpha_i}{1-\alpha_i} \ge \frac{-(\rho-2)/\hat{\rho}}{1-1/\hat{\rho}} > \hat{\rho}-3 $$
(4)

for \(\rho \le \hat{\rho}\).

Now, as in Case 1, let us assume that β i =β i+1=0 and shift the concatenated q i+1 p i+1 down until α i+1 becomes zero as well. This leaves Φ i+1 (and, of course, also Φ i ) invariant, but may result in a negative value of γ i+1 in case Φ i+1 (=γ i+1 after the shift) is negative. (As we are only interested in ΔΦ, we do not care about negative values of γ i+1 here.) Thus assume that q i ,p i ,q i+1,p i+1 are concatenated.

We claim that shifting the concatenated q i ,p i ,q i+1,p i+1 down increases Φ i+1 (while leaving Φ i unchanged). Indeed moving down decreases both p i and p i+1 by one unit, so that in total A(L i+1) decreases by 3 units, while OPT(L i+1) decreases by only one unit. Thus γ i+1 p i+1 increases with 3−ρ units while p i+1 decreases with one unit. This shows that moving q i ,p i ,q i+1,p i+1 down increases Φ i+1=γ i+1 whenever Φ i+1>ρ−3.

To show that Φ decreases, we may assume that Φ i+1>ρ−3—else a significant decrease of at least \(\hat{\rho}-\rho\) follows already immediately from (4). But then, as we have seen above, we may also assume w.l.o.g. that q i ,p i ,q i+1,p i+1 is shifted down as far as possible, i.e., until α i =0. (Note that this may even result in a negative value of γ i , but we do not care, as we are only interested in Φ-values.) When α i =0, however, then

$$\Delta\Phi = \Phi_{i+1}-\Phi_i = \gamma_{i+1} -\gamma_i$$

is significantly negative since γ i+1 p i+1=γ i p i +(ρ−1)q i+1p i+1, so that \(\gamma_{i+1} \le \gamma_{i} +\frac{\rho-1}{\hat{\rho}-1} -1\).

Summarizing, in each case there is a significant decrease in the potential function, provided that \(\rho < \hat{\rho}\). □

4 Conclusions

We have solved the (30 year old) problem of analysing Brown-Baker-Katseff sequences and provided an optimal online algorithm for these sequences. Up to now all previous lower bounds for online strip packing were based on Brown-Baker-Katseff sequences. A natural question to ask is whether (or to what extent) these sequences are worst case sequences for online strip packing. In Harren and Kern (2011) we have tried to analyze more generally sequences of “thin” items p i and “blocking” items q j , which are not necessarily alternating. We suceeded in proving lower and upper bounds close to 2.6 for such sequences. Determining the exact value appears to be involved, but in any case, our results show that to close the gap between the currently best lower bound of 2.6 and the currently best upper bound of 6.6, completely new ideas are needed.