arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.06440cs.DS
收藏

能力约束动态规划:快速背包和图算法

Capacitated Dynamic Programming: Faster Knapsack and Graph Algorithms

Kyriakos Axiotis, Christos Tzamos

摘要:

背包问题是计算机科学中最基本的问题之一。给定一组具有不同权重和值的n个项目,它要求选择总权重低于容量阈值T的最有价值子集。尽管它在计算机科学、运筹学和金融等各个领域都有广泛的适用性,但该问题最著名的运行时间是O(Tn)。我们的工作的主要结果是一个改进的算法运行时间O(TD),其中D是不同的权重的数量。以前,只有当权重和值分别由M和V限制时,背包才可能有更快的运行时间,运行时间为O(nMV)[Pisinger'99]。相比之下,我们的算法意味着在不依赖于V的情况下O(nM^2),或者在不依赖于M的情况下O(nV^2)。另外,对于无界背包问题,我们提供了一个时间复杂度为O(M^2)或O(V^2)的算法。我们的两个算法都匹配最近的条件下界显示背包问题[Cygan等人'17,Künnemann等人'17]。系统地研究了以背包问题为核心的一般能力约束动态规划。这个问题要求计算边或节点加权有向无环图中长度为k的最大权路径。在一个有m条边的图中,这些问题可以用动态规划在时间O(km)内解决,并且我们探索在什么条件下可以消除对k的依赖。我们确定大类的图形,这是可能的,并应用我们的研究结果,以获得线性时间算法的问题,k-稀疏三角洲分离序列。我们的研究结果背后的主要技术创新是识别和利用我们考虑的任务的松弛和子问题中出现的问题。

英文摘要:

One of the most fundamental problems in Computer Science is the Knapsack problem. Given a set of n items with different weights and values, it asks to pick the most valuable subset whose total weight is below a capacity threshold T. Despite its wide applicability in various areas in Computer Science, Operations Research, and Finance, the best known running time for the problem is O(Tn). The main result of our work is an improved algorithm running in time O(TD), where D is the number of distinct weights. Previously, faster runtimes for Knapsack were only possible when both weights and values are bounded by M and V respectively, running in time O(nMV) [Pisinger'99]. In comparison, our algorithm implies a bound of O(nM^2) without any dependence on V, or O(nV^2) without any dependence on M. Additionally, for the unbounded Knapsack problem, we provide an algorithm running in time O(M^2) or O(V^2). Both our algorithms match recent conditional lower bounds shown for the Knapsack problem [Cygan et al'17, Künnemann et al'17]. We also initiate a systematic study of general capacitated dynamic programming, of which Knapsack is a core problem. This problem asks to compute the maximum weight path of length k in an edge- or node-weighted directed acyclic graph. In a graph with m edges, these problems are solvable by dynamic programming in time O(km), and we explore under which conditions the dependence on k can be eliminated. We identify large classes of graphs where this is possible and apply our results to obtain linear time algorithms for the problem of k-sparse Delta-separated sequences. The main technical innovation behind our results is identifying and exploiting concavity that appears in relaxations and subproblems of the tasks we consider.

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

↑