Abstract
The Two-Bar Charts Packing Problem (2-BCPP) is a generalization of the classic Bin Packing Problem where items consist of two bars that must be placed in consecutive unit-capacity bins. This paper investigates the "big" variant ($2\text{-BCPP}^>$), where every item has at least one bar with a height greater than 1/2. We prove that $2\text{-BCPP}^>$ remains strongly NP-hard. To address this, we propose a hybrid $O(n^{2.5})$ algorithm that combines greedy lexicographic ordering with maximum matching techniques. We demonstrate that this approach yields a packing length of at most $4/3 \cdot OPT + 2/3$, providing a tight approximation for this complex scheduling problem.
Introduction
In many industrial scheduling scenarios, tasks consist of sequential operations that must be executed without interruption. The Two-Bar Charts Packing Problem (2-BCPP) models this by representing each job as a pair of bars $(a_i, b_i)$. The primary constraint is spatial-temporal: if the first bar $a_i$ is assigned to bin $k$, the second bar $b_i$ must occupy bin $k+1$. The goal is to minimize the total number of bins used.
This problem is a significant extension of the standard Bin Packing Problem. While Bin Packing is trivial when all items are "big" (height $> 1/2$), the 2-BCPP remains challenging because the "small" bar of one job can potentially share a bin with the "big" bar of another, or two jobs can be interleaved across consecutive bins.
Complexity and the "Big" Case
The authors focus on $2\text{-BCPP}^>$, where for every job $i$, $\max(a_i, b_i) > 1/2$. Through a reduction from the Numerical 3-Dimensional Matching problem, the paper establishes that $2\text{-BCPP}^>$ is strongly NP-hard. This result highlights that the no-wait constraint between consecutive bins introduces structural complexity that persists even when individual items consume significant resources.
Algorithmic Approach
The paper introduces two primary strategies to tackle the problem:
- GALO (Greedy Algorithm with Lexicographic Ordering): This $O(n^2)$ heuristic sorts jobs lexicographically based on their bar heights before applying a greedy packing rule. The authors prove that if all first bars (or all second bars) are big, GALO is nearly optimal, achieving a solution within $OPT + 1$.
- Matching-Based Algorithm: For the general big case, the problem is modeled as a graph where jobs are vertices. An edge exists between two jobs if they can be efficiently "paired" into two consecutive bins. Finding a maximum matching in this graph ($O(n^{2.5})$) identifies the optimal set of such pairs.
The final proposed solution, Algorithm App, executes both GALO and the Matching-based algorithm, selecting the packing that uses the fewer bins.
Performance Bounds and Insights
The core theoretical contribution is the proof of the $4/3 \cdot OPT + 2/3$ bound for Algorithm App. This bound is "tight," meaning there exist instances where the algorithm performs exactly at this ratio.
The success of the hybrid approach stems from the realization that an optimal packing for $2\text{-BCPP}^>$ consists of two types of structures:
- Linear sequences: Jobs packed one after another, which the greedy GALO handles well.
- Paired packings: Two jobs sharing the same two bins, which the matching algorithm optimizes.
By combining these, the algorithm effectively covers the search space of the optimal solution's structure.
Conclusion
This work provides a robust approximation for a difficult variant of the bin packing problem. By establishing a $4/3$ approximation ratio with a polynomial-time algorithm, the authors offer a practical tool for resource-constrained scheduling. Future work may extend these techniques to $n$-bar charts or seek to improve the approximation ratio for the general case where items can be arbitrarily small.
Summary updated