快速简单模子集和

Kyriakos Axiotis, A. Backurs, K. Bringmann, Ce Jin, Vasileios Nakos, Christos Tzamos, Hongxun Wu
{"title":"快速简单模子集和","authors":"Kyriakos Axiotis, A. Backurs, K. Bringmann, Ce Jin, Vasileios Nakos, Christos Tzamos, Hongxun Wu","doi":"10.1137/1.9781611976496.6","DOIUrl":null,"url":null,"abstract":"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 asymptotically 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 asymptotically optimal running time of $\\tilde{O}(n^2)$ provided in the recent work of Duan et al. (ICALP'19).","PeriodicalId":93491,"journal":{"name":"Proceedings of the SIAM Symposium on Simplicity in Algorithms (SOSA)","volume":"43 1","pages":"57-67"},"PeriodicalIF":0.0000,"publicationDate":"2020-08-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":"{\"title\":\"Fast and Simple Modular Subset Sum\",\"authors\":\"Kyriakos Axiotis, A. Backurs, K. Bringmann, Ce Jin, Vasileios Nakos, Christos Tzamos, Hongxun Wu\",\"doi\":\"10.1137/1.9781611976496.6\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"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 asymptotically 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 asymptotically optimal running time of $\\\\tilde{O}(n^2)$ provided in the recent work of Duan et al. (ICALP'19).\",\"PeriodicalId\":93491,\"journal\":{\"name\":\"Proceedings of the SIAM Symposium on Simplicity in Algorithms (SOSA)\",\"volume\":\"43 1\",\"pages\":\"57-67\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-08-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"10\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the SIAM Symposium on Simplicity in Algorithms (SOSA)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1137/1.9781611976496.6\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the SIAM Symposium on Simplicity in Algorithms (SOSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1137/1.9781611976496.6","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 10

摘要

对于给定整数$m$,我们重新讨论有限循环群$\mathbb{Z}_m$上的子集和问题。最近的一系列研究在强指数时间假设下给出了该问题的渐近最优算法。Koiliaris和Xu (SODA’17,TALG’19)给出了在时间$\tilde{O}(m^{5/4})$中运行的确定性算法,后来Axiotis等人(SODA’19)将其改进为$O(m \log^7 m)$随机时间。在这项工作中,我们提出了两种简单的算法,用于在$m$中运行的近线性时间内的模子集和问题,两者都有效地实现了$\mathbb{Z}_m$上的Bellman迭代。第一种是运行在时间$O(m\log^2 m)$上的随机算法,它完全基于滚动哈希和前缀和的基本数据结构;为了说明它的简单性,我们在Python中提供了一个简短而有效的算法实现。我们的第二个解决方案是实时运行的确定性算法$O(m\ \mathrm{polylog}\ m)$,它使用动态数据结构进行字符串操作。我们进一步表明,在这项工作中开发的技术也可以导致无向图上的所有对非递减路径问题(APNP)的简单算法,匹配Duan等人(ICALP'19)最近工作中提供的$\tilde{O}(n^2)$的渐近最优运行时间。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Fast and Simple Modular Subset Sum
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 asymptotically 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 asymptotically optimal running time of $\tilde{O}(n^2)$ provided in the recent work of Duan et al. (ICALP'19).
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信