Abstract
This paper presents two significant enhancements to the bin-completion algorithm for solving the NP-complete bin-packing problem optimally. By improving the efficiency of generating undominated bin completions and introducing "nogood pruning" to eliminate redundant search paths, the proposed algorithm achieves substantial speedups. Experimental results on high-precision uniform data show a 14.6x speedup for $N=90$ compared to previous state-of-the-art methods, pushing the boundaries of solvable problem sizes within reasonable timeframes.
Introduction
The bin-packing problem is a fundamental challenge in combinatorial optimization: given a set of items with specific weights and bins of a fixed capacity, the goal is to find the minimum number of bins required to accommodate all items. While approximation algorithms like First-Fit Decreasing are commonly used, they are insufficient for high-stakes applications where minimizing bin count is critical. Because finding an optimal solution is NP-complete, research focuses on developing more efficient search algorithms to handle larger problem instances.
Methods
The proposed algorithm builds upon the bin-completion framework, which branches on different ways to completely fill a single bin rather than assigning items one by one. Two primary improvements are introduced:
1. Efficient Generation of Undominated Completions
A "dominated" set is a combination of items that is strictly less efficient than another possible combination. By utilizing a recursive binary tree traversal with upper and lower bounds, the algorithm generates only "undominated" sets. This refinement significantly reduces the computational effort required at each search node.
2. Nogood Pruning
Nogood pruning identifies and eliminates redundant search paths. If the algorithm encounters a combination of items it has previously explored in a different branch, it "remembers" this as a "nogood" set. Subsequent branches containing this subset are pruned, preventing the algorithm from re-solving identical sub-problems.
Experimental Evaluation
The algorithm was tested against two main datasets:
- Uniform High-Precision Data: One million instances for each size $N$ (from 5 to 95), with values chosen uniformly from 1 to 1,000,000. High precision was used to minimize duplicate values and increase problem difficulty.
- Standard Benchmarks: 160 problems from the OR-Library, including uniform and "triplet" instances.
Results
The enhancements led to dramatic improvements in search efficiency, particularly as problem size increased. As shown in Table 1, the benefits of nogood pruning scale with $N$. At $N=90$, the new algorithm is approximately 14.6 times faster than the original bin-completion method. For $N=95$, the algorithm solved one million instances with an average time of just 1.343 seconds per problem.
While the algorithm performed exceptionally well on high-precision data, its performance on low-precision standard benchmarks was mixed. It outperformed previous methods on smaller instances (size 120 and 250) but struggled with larger sets (size 500+) where duplicate numbers are common, as the current implementation does not yet optimize for these symmetries.
Discussion and Future Work
The power of the improved algorithm lies in its ability to prune the search space effectively through dominance and nogood sets. However, the "heavy-tail" nature of NP-complete problems remains a challenge; while average performance is high, specific outlier instances can still require vast amounts of time (e.g., one $N=100$ instance remained unsolved after 43 days).
Future work will focus on optimizing the algorithm for datasets with many duplicate numbers and implementing more sophisticated data structures for set manipulation to further reduce the overhead of nogood pruning.
Summary updated