arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.00768cs.DSmath.OC
收藏

背包约束下的最大值和划分

Sum-of-Max Partition under a Knapsack Constraint

Kai Jin, Danna Zhang, Canhui Zhang

摘要:

序列划分问题在序列数据分析、信息传输、并行计算等领域都有广泛的应用。在本文中,我们研究了以下分区问题的变种:给定一个序列的$n$项目$1,\ldots,n$,其中每个项目$i$是与权重$w_i$和另一个参数$s_i$,分区序列分为几个连续的序列,使每个子序列的总重量不超过一个阈值$w_0$,并在每个子序列中最大的$s_i$的总和是最小的。这个问题承认一个简单的解决方案的基础上动态规划,这花费$O(n^2)$的时间,可以改善到$O(n\log n)$时间很容易。我们的贡献是一个$O(n)$时间算法,这是平凡的,但易于实现。我们还研究了相应的树划分问题。我们证明了问题的树是NP-完全的,我们提出了一个$O(w_0 n^2)$时间($O(w_0^2n^2)$时间,分别)算法的单位重量(整数重量,分别)的情况下。

英文摘要:

Sequence partition problems arise in many fields, such as sequential data analysis, information transmission, and parallel computing. In this paper, we study the following partition problem variant: given a sequence of $n$ items $1,\ldots,n$, where each item $i$ is associated with weight $w_i$ and another parameter $s_i$, partition the sequence into several consecutive subsequences, so that the total weight of each subsequence is no more than a threshold $w_0$, and the sum of the largest $s_i$ in each subsequence is minimized. This problem admits a straightforward solution based on dynamic programming, which costs $O(n^2)$ time and can be improved to $O(n\log n)$ time easily. Our contribution is an $O(n)$ time algorithm, which is nontrivial yet easy to implement. We also study the corresponding tree partition problem. We prove that the problem on the tree is NP-complete and we present an $O(w_0 n^2)$ time ($O(w_0^2n^2)$ time, respectively) algorithm for the unit weight (integer weight, respectively) case.

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

↑