arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.12214math.OC
收藏

着色背包问题:结构特性与精确算法

The colored knapsack problem: structural properties and exact algorithms

Sapienza University of Rome(罗马大学);RWTH Aachen University(亚琛工业大学)

Fabio Ciccarelli, Alexander Helber, Erik Mühmer

AI总结:

本文提出了一种新的着色背包问题,通过两种精确动态规划算法解决,并证明其线性规划松弛可以在O(n)时间内求解,同时在实例上优于现有MIP求解器。

摘要:

我们介绍并研究了一个经典背包问题(KP)的新泛化形式,称为着色背包问题(CKP)。在该问题中,物品被划分为颜色类,所装物品需要按顺序排列,使得不连续的物品颜色不同。我们证明该问题是弱NP难的,并提出两种精确动态规划算法,时间复杂度分别为O(bn⁴)和O(b²n³)。为了提高实际性能,我们为两种方法推导了各种支配和剪枝规则。从理论角度看,我们分析了自然CKP公式的线性规划松弛,证明存在一个最优解,其中最多有两个分数物品。我们还证明该松弛可以在O(n)时间内解决,与经典KP的复杂度相同。最后,我们建立了一个全面的CKP实例基准,来源于着色装箱问题。广泛的计算实验表明,所提出的动态规划算法在大多数这些实例上显著优于最先进的MIP求解器。

英文摘要:

We introduce and study a novel generalization of the classical Knapsack Problem (KP), called the Colored Knapsack Problem (CKP). In this problem, the items are partitioned into classes of colors and the packed items need to be ordered such that no consecutive items are of the same color. We establish that the problem is weakly NP-hard and propose two exact dynamic programming algorithms with time complexities of $\mathcal{O}(bn^4)$ and $\mathcal{O}(b^2n^3)$, respectively. To enhance practical performance, we derive various dominance and fathoming rules for both approaches. From a theoretical perspective, we analyze the linear programming relaxation of the natural CKP formulation, proving that an optimal solution exists with at most two fractional items. We also show that the relaxation can be solved in $\mathcal{O}(n)$ time, matching the complexity of the classical KP. Finally, we establish a comprehensive benchmark of CKP instances, derived from the Colored Bin Packing Problem. Extensive computational experiments demonstrate that the proposed dynamic programming algorithms significantly outperform state-of-the-art MIP solvers on most of these instances.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑