From Approximate to Optimal Solutions: Constructing Pruning and Propagation Rules

Ian P. Gent, Toby Walsh

Introduction

In the field of combinatorial optimization, a persistent challenge exists in bridging the gap between fast, "good enough" approximation algorithms and computationally expensive "perfect" optimal solutions. This paper by Ian P. Gent and Toby Walsh presents a systematic framework for constructing powerful exact solvers. The core idea involves transforming existing heuristics into branching rules and leveraging modular arithmetic to prune the search space effectively.

Problem Statement

Many critical real-world problems, such as Bin Packing or Number Partitioning, are NP-complete. Traditionally, these are approached via:

  1. Approximation Algorithms: Polynomial-time methods that offer no optimality guarantees.
  2. Exact Search: Methods that guarantee optimality but often suffer from exponential time complexity.

While previous research demonstrated how to turn heuristics into "branching rules" (guiding the search path), Gent and Walsh argue that efficient search requires more. Specifically, it necessitates pruning rules to terminate unproductive search branches and propagation rules to enforce mandatory decisions when only a single valid option remains.

Methodology: The CDBF Algorithm

The authors focus on the Bin Packing Problem, introducing the Complete Decreasing Best Fit (CDBF) algorithm. This approach integrates three key components:

1. Branching Rule

The algorithm utilizes the "Decreasing Best Fit" heuristic. Objects are sorted by weight and placed into the fullest bin first. If a placement fails, the algorithm backtracks to explore the next best fit.

2. Modular Pruning

The central innovation is the use of modular arithmetic to verify the mathematical possibility of a subproblem. By checking constraints such as $w \pmod m$, the algorithm can detect "impossible" states early. For instance, if the remaining capacity is odd but only even-weighted objects are available, the branch can be immediately pruned. This "parity check" is generalized using various bases, typically powers of 2.

3. Look-ahead Propagation

Pruning rules are extended into propagation rules. If a pruning rule identifies that all but one placement for an object are impossible, the algorithm "forces" that placement, further narrowing the search space.

Experimental Evaluation

The approach was evaluated using synthetic datasets of pseudo-random integer weights. The authors focused on "hard instances" characterized by zero spare capacity—the "phase transition" region where bin packing problems are most computationally difficult. Experiments scaled from $n=8$ to $n=20$ objects.

Key Results and Analysis

The inclusion of modular pruning led to significant performance gains. On the most difficult instances, runtime was reduced by an order of magnitude. For example, a problem instance requiring 1,258 seconds without pruning was solved in just 80 seconds with it.

Mean nodes searched vs. problem constraints for various $n$, showing the reduction in search space with modular pruning.

A critical observation is the relationship between computational overhead and search reduction. While modular pruning requires additional CPU cycles per node, this cost is a constant factor (typically 2x to 5x). In contrast, the reduction in the number of nodes searched can be exponential, resulting in a substantial net improvement in efficiency.

CPU time vs. nodes searched, illustrating the constant-factor overhead of modular pruning.

Conclusion

Gent and Walsh demonstrate that modular pruning and propagation are versatile tools for solving hard combinatorial problems. Beyond bin packing, the authors successfully applied these techniques to Subset Sum, Number Partitioning, and the Knapsack Problem. While future work remains in optimizing the selection of modular bases and scaling to massive problem sizes, this framework provides a robust path from heuristic approximation to optimal search.

Summary updated

BibTeX
@inproceedings{gent1997from,
  author = {Ian P. Gent and Toby Walsh},
  title = {{From Approximate to Optimal Solutions: Constructing Pruning and Propagation Rules}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1997},
}
Figure