Reliability-Aware Algorithm Selection for the 0/1 Knapsack Problem Under Distribution Shift
Predicting heuristic solution quality prior to execution is essential for automated algorithm selection in combinatorial optimization. For the 0/1 Knapsack Problem, Dantzig's density-based greedy heuristic executes in O(n log n) time but lacks an integer optimality guarantee. Evaluating an exactly solved and computationally verified 16,000-instance Zenodo benchmark across ten hardness families and dimensions n ∈ [10, 10,000], we uncover a stark generalization paradox: while tree ensembles achieve excellent predictive performance under random splits (MAE = 0.41%, R² = 0.989), their predictive performance collapses under Leave-One-Family-Out evaluation (MAE = 11.99%, pooled R² = -1.42). Failures stem from adversarial ratio traps and capacity-bottleneck misrouting. To establish risk-averse operational deployment, we formulate an empirical reliability-aware selection policy combining pre-run features, ensemble dispersion uncertainty, and feature-range outlier checks. While empirical dispersion provides no theoretical safety guarantees, at a 1.0% tolerance, the deployed 15-feature policy achieves a 0.0370% mean realized gap with 0.83% tolerance violations (133/16,000 instances), outperforming the 13-feature baseline policy (0.0463% gap, 1.20% violations). In comparison, naive point gating yields 3.02% violations with 15 features and 8.46% with 13 features. The deployed policy saves 92.21% of wall-clock time over exact solving (12.84x speedup, 275.13s total runtime). Concurrently, an O(n log n) tri-heuristic portfolio achieves a 0.24% average gap on the benchmark with zero exact invocations.
Authors
- Akarshana S. (ORCID: https://orcid.org/0009-0003-9120-6222)
- Mithun Surya K. Y. (ORCID: https://orcid.org/0009-0007-3553-8280)
- Uma Vetri Selvi G.
Institutions
- PSG College of Technology (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24678638
- Primary Topic
- Metaheuristic Optimization Algorithms Research
- Type
- preprint