arXiv:2611.08792cs.DSNov 2026

Manuscript Offprint

arXiv:2611.08792

Online Bin Packing with Dispatch Deadlines

Pei-Lin Chiang, Wing-Kai Hon, Kazuo Iwama, Li-Tzu Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study a generalization of online bin packing by introducing dispatch deadlines. Items arrive over time in an online fashion. Each item has an arrival time, a size in (0,1](0,1], and a deadline, all of which are revealed only when the item arrives. The algorithm must immediately and irrevocably assign the item to a unit-capacity bin that has not yet been dispatched. Each bin must be dispatched no later than the earliest deadline of the items assigned to it, and once it is dispatched, it cannot be used for future items. The goal is to minimize the number of bins used.

Applications arise naturally in logistics. Additionally, the offline version of this problem has appeared under several names, including the clique partition problem in weighted interval graphs and the BinSchedule problem. This problem is also a special case of online bin packing with conflicts and is closely related to online bin packing models with delay costs.

We study the competitive ratios of several classical online bin packing algorithms when applied to this problem, and show that a similar hierarchy of competitive ratios carries over. Our main technical results are that the competitive ratio of FIRST-FIT is exactly 16/7≈2.2857116/7 \approx 2.28571, and that no deterministic online algorithm has a competitive ratio less than 11/5=2.211/5 = 2.2, showing that FIRST-FIT is quite close to best possible. In addition, NEXT-FIT and WORST-FIT have competitive ratio exactly 3, and every algorithm in the ANY-FIT class has competitive ratio between 16/716/7 and 3.

2012 ACM Subject Classification Theory of computation →\rightarrow Online algorithms

Keywords and phrases Bin packing, scheduling, competitive analysis

Funding Wing-Kai Hon: Supported by NSTC, Taiwan, under Grant 113-2221-E-007-139-MY3.

Kazuo Iwama: Supported by NSTC, Taiwan, under Grants 114-2223-E-007-016 and NSTC 115-2223-E-007-012.

Acknowledgements We thank the anonymous reviewers for their helpful comments on improving the presentation and for pointing us to additional related work. ChatGPT was used to assist with literature searches and with improving the authors' existing text.

1 Introduction

Online bin packing is one of the central problems in online algorithms. In this problem, items arrive one by one, each with a size in (0,1](0,1]. Upon arrival, an item must be immediately and irrevocably assigned to a unit-capacity bin, and the goal is to minimize the number of bins used. Finding optimal algorithms for this problem has been a long-standing line of work [5, 3, 4], and classical algorithms such as FIRST-FIT and BEST-FIT have been well-studied since the early work on bin packing [13, 15, 14].

Classical online bin packing has no notion of deadlines: once a bin is opened, it remains available forever. To add deadlines, at least two different approaches have appeared in the

Online Bin Packing with Dispatch Deadlines

literature. One is the dynamic bin packing problem, where items depart and are removed from their bins at their deadlines, while the bins remain available for future items [16, 9, 8, 20]. The other is the bin dispatch model: when an item's deadline is reached, the entire bin containing the item, which one may think of as a truck, must be dispatched and cannot be used for future items. This feature creates a tradeoff. Suppose that an item pp, with arrival time aa and deadline dd, is relatively tight, meaning that d−ad-a is relatively small. Assigning pp to an existing bin BB may save a bin now, but it may also force BB to be dispatched earlier, before later items that could have been packed into BB arrive.

While there has been considerable work on this model [6] and its equivalent formulation [17, 10, 18], all existing work studies the offline version. However, the tradeoff described above is also, and arguably even more, interesting in the online setting, where each packing decision must be made without knowing future items. In this paper, we study this online setting, which, to the best of our knowledge, has not appeared in the literature. We call this problem Online Bin Packing with Dispatch Deadlines (OBP-DD). An input is a finite sequence I=(p1,p2,…)I = (p_1, p_2, \ldots) of items, where each item is represented as a tuple pi=(ai,si,di)p_i = (a_i, s_i, d_i). Here, ai∈Ra_i \in \mathbb{R} is the arrival time, si∈(0,1]s_i \in (0,1] is the size, and di∈Rd_i \in \mathbb{R} is the deadline, with ai≤dia_i \leq d_i. For convenience, we write arr(pi)=ai\text{arr}(p_i) = a_i, s(pi)=sis(p_i) = s_i, and dl(pi)=di\text{dl}(p_i) = d_i. The input is revealed in an online fashion. When an item arrives, its arrival time, size, and deadline are revealed, and the algorithm must immediately and irrevocably assign it to a unit-capacity bin that is not yet dispatched. That is, for every bin BB, we require ∑p∈Bs(p)≤1\sum_{p \in B} s(p) \leq 1 and arr(p)≤min⁡q∈Bdl(q)\text{arr}(p) \leq \min_{q \in B} \text{dl}(q) for every p∈Bp \in B. The goal is to minimize the number of bins used.

The offline version has appeared under several names. If all items are known in advance, each item pp can be viewed as an interval [arr(p),dl(p)][\text{arr}(p), \text{dl}(p)] with weight s(p)s(p). A bin then corresponds to a set of intervals with a common intersection and total weight at most 1. Thus, the bin packing problem is equivalent to the clique partition problem in weighted interval graphs [17, 10, 18], where the goal is to partition the weighted intervals into the minimum number of bounded-weight cliques. This problem is strongly NP-hard and cannot be approximated within a factor of 3/2−ε3/2 - \varepsilon in polynomial time for any ε>0\varepsilon > 0 unless P=NPP = \text{NP} [17, 10]. A 2-approximation algorithm for general weights and an exact algorithm for the identical-weight case were later given in [18]. The same offline problem also appears as BinSchedule, where items have weights, arrival times, and deadlines; Berman et al. [6] gave a 3-approximation algorithm in general and a 3/2-approximation algorithm when the difference between the deadline and the arrival time is the same for all items.

As for the online version, note that OBP-DD is equivalent to classical online bin packing if all deadlines are sufficiently large. Furthermore, OBP-DD is a special case of online bin packing with conflicts. In this problem, a conflict graph specifies which pairs of items cannot share a bin, and each item reveals its size and its conflict edges to previous items upon arrival. Epstein and Levin [12] studied the problem for interval conflict graphs, giving a 4.7-competitive algorithm and a lower bound of 155/36≈4.30556155/36 \approx 4.30556 for any online algorithm. In contrast, OBP-DD corresponds to the special case in which two items conflict exactly when their intervals [arr(p),dl(p)][\text{arr}(p), \text{dl}(p)] are disjoint (i.e., the conflict graph is co-interval), and the items arrive in the order of left endpoints.

Closely related to deadline models are delay models. In the online bin packing with delay and holding costs problem [1], each item pp has a nondecreasing continuous delay-cost function Dp(t)D_p(t), where tt is the time elapsed from the arrival of pp until its bin is released; open bins may additionally incur holding costs. If discontinuous delay-cost functions taking values in the extended reals are allowed, then OBP-DD is equivalent to the special case with no holding costs and Dp(t)=0D_p(t) = 0 for t≤dl(p)−arr(p)t \leq \text{dl}(p) - \text{arr}(p) and Dp(t)=∞D_p(t) = \infty otherwise. Another delay model is the bin packing with delays problem [2, 11], where the packing of an item may be delayed, incurring a nondecreasing continuous delay cost until the item is packed; whenever a set of items is packed into a bin, that bin is closed and cannot be used for future items. Similarly, deadlines can be represented using the same delay-cost function as above; however, since the packing of an item may be deferred, this is not equivalent to OBP-DD.

Real-world applications of OBP-DD arise in logistics, in particular in cross-docking. In traditional logistics, storage and order picking are often the most costly warehouse operations. Cross-docking reduces these costs by consolidating freight from different origins into outbound vehicles with minimal handling and little or no storage between unloading and loading [19]. In our abstraction, items are pieces of freight, bins are outbound trucks or containers, item sizes are capacity requirements, and deadlines are latest departure times.

Our Results. In this paper, we study the following natural question: how robust are classical online bin packing algorithms in the presence of dispatch deadlines? We address this question by directly applying these algorithms to OBP-DD and analyzing their performance. Several classical algorithms are considered: NEXT-FIT, FIRST-FIT, WORST-FIT, and the ANY-FIT class, which includes FIRST-FIT and WORST-FIT but not NEXT-FIT. In the classical setting, the following asymptotic competitive ratios are well known [13, 15, 14]: NEXT-FIT has ratio 2; every ANY-FIT algorithm has ratio at least 1.7 and at most 2; the lower bound 1.7 is matched by FIRST-FIT, while the upper bound 2 is matched by WORST-FIT. We extend these algorithms to OBP-DD in the most direct way. The packing rule is unchanged; the only difference is that bins are no longer available once they are dispatched. Thus, when an item arrives, the algorithm applies its usual rule only to the bins that are still open, and, unless the algorithm explicitly closes a bin earlier, each bin is kept open until it is forced to be dispatched by a deadline. Our results show that the same hierarchy of competitive ratios carries over from classical online bin packing to OBP-DD, but with larger ratios.

In Section 3, we first present rather straightforward results, which also illustrate fundamental differences between classical online bin packing and OBP-DD. We show that NEXT-FIT has competitive ratio exactly 3 (Theorem 1), every algorithm in the ANY-FIT class has competitive ratio at least 16/7 and at most 3 (Theorem 2), and WORST-FIT has competitive ratio exactly 3 (Theorem 3). The result for WORST-FIT also shows that the upper bound of 3 for the ANY-FIT class is tight. In Section 4, we show that FIRST-FIT has competitive ratio exactly 16/7 (Theorem 4), which implies that the lower bound of 16/7 for the ANY-FIT class is tight. In particular, FIRST-FIT has the best possible worst-case performance among all ANY-FIT algorithms. This implies that BEST-FIT, another classical online bin packing algorithm often compared with FIRST-FIT, performs no better than FIRST-FIT in the worst case in OBP-DD, since BEST-FIT is in the ANY-FIT class.

The upper bound for FIRST-FIT is our main technical result. Its proof is based on an input-reduction method. One challenge here is that FIRST-FIT does not use deadline values when deciding where to pack an item. In classical bin packing, the bins opened by FIRST-FIT remain available forever, so one can deduce bounds on the cumulative sizes of bins in their opening order; this is the basis of the standard area arguments used in bin packing analysis. In OBP-DD, however, bins may be dispatched and later bins may be opened in a highly interleaved way. This makes it difficult to deduce bounds on the cumulative sizes over a sequence of FIRST-FIT bins. To handle this, we give an input-reduction algorithm: given any input, it constructs another input on which FIRST-FIT uses the same number of bins, while the optimal offline solution uses no more bins, and the bins opened by FIRST-FIT are dispatched according to a more regular pattern. It then suffices to prove the upper bound

Online Bin Packing with Dispatch Deadlines

based on inputs with this regular pattern instead.

Note that FIRST-FIT achieves competitive ratio 16/7 without using the deadline information at all, which one might expect to severely lower the power of the algorithm. It turns out, however, that this is not the case, as 16/7 ≈ 2.28571 is quite close to the best possible ratio for any deterministic online algorithm: in Section 5, we show that no deterministic online algorithm can attain a competitive ratio less than 11/5 = 2.2 (Theorem 5). The trick is that our adversary can disrupt the online algorithm's decision-making ability: when a new item arrives, the online algorithm cannot tell whether the item's deadline is "early" or "late". This lower bound also separates OBP-DD from classical online bin packing, for which a 5/3-competitive algorithm is known [5].

References (25)