快速简单的模子集和
Fast and Simple Modular Subset Sum
摘要:
我们重新讨论了有限循环群$\mathbb{Z}_m$上的子集和问题,其中给定整数为$m$ .在强指数时间假设下,最近的一系列工作为这个问题提供了近似最优的算法。Koiliaris和Xu(SODA'17,TALG'19)给出了一个在时间上运行的确定性算法$\tilde{O}(m^{5/4})$,后来Axiotis等人将其改进为$O(m \log^7 m)$随机时间(SODA'19)。在这项工作中,我们提出了两个简单的算法的模块子集和问题运行在近线性时间$m$,都有效地实现贝尔曼的迭代$\mathbb{Z}_m$。第一个是一个随机算法运行的时间$O(m \log^2 m)$,这是完全基于滚动哈希和一个基本的数据结构的前缀和;为了说明其简单性,我们提供了一个简短而有效的实现该算法在Python中。我们的第二个解决方案是一个确定性的算法运行在时间$O(m\ \mathrm{polylog}\ m)$,它使用动态数据结构的字符串操作。我们进一步表明,在这项工作中开发的技术也可以导致简单的算法的无向图上的所有对非减路径问题(APNP),匹配的近最佳运行时间的$\tilde{O}(n^2)$在最近的工作段等。(ICALP'19)。
英文摘要:
We revisit the Subset Sum problem over the finite cyclic group $\mathbb{Z}_m$ for some given integer $m$. A series of recent works has provided near-optimal algorithms for this problem under the Strong Exponential Time Hypothesis. Koiliaris and Xu (SODA'17, TALG'19) gave a deterministic algorithm running in time $\tilde{O}(m^{5/4})$, which was later improved to $O(m \log^7 m)$ randomized time by Axiotis et al. (SODA'19). In this work, we present two simple algorithms for the Modular Subset Sum problem running in near-linear time in $m$, both efficiently implementing Bellman's iteration over $\mathbb{Z}_m$. The first one is a randomized algorithm running in time $O(m \log^2 m)$, that is based solely on rolling hash and an elementary data-structure for prefix sums; to illustrate its simplicity we provide a short and efficient implementation of the algorithm in Python. Our second solution is a deterministic algorithm running in time $O(m\ \mathrm{polylog}\ m)$, that uses dynamic data structures for string manipulation. We further show that the techniques developed in this work can also lead to simple algorithms for the All Pairs Non-Decreasing Paths Problem (APNP) on undirected graphs, matching the near-optimal running time of $\tilde{O}(n^2)$ provided in the recent work of Duan et al. (ICALP'19).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。