Given a pattern $P$ of length $m$, a text $T$ of length $n$, and a threshold $k$, the Pattern Matching with Edits problem asks whether $T$ contains a substring that can be transformed into $P$ using at most $k$ character insertions, deletions, and substitutions. The classic $O(nm)$- and $O(nk)$-time algorithms of Sellers [J. Algorithms'80] and Landau and Vishkin [STOC'86, J. Algorithms'89] are near-optimal for $k=Θ(m)$ under the Orthogonal Vectors Hypothesis. For small $k$, Cole and Hariharan [SODA'98, SICOMP'02] achieved $O(n+k^4\cdot n/m)$ time, and Charalampopoulos, Kociumaka, and Wellnitz (CKW) [FOCS'22] improved this to $O(n+k^{3.5}\log k\cdot n/m)$, essentially halfway to the $O(n+k^3\cdot n/m)$ bound conjectured by Cole and Hariharan. This work confirms the conjecture up to a polylogarithmic factor with an $O(n+k^3\log^2 k\cdot n/m)$-time algorithm. Working in the PILLAR model [CKW; FOCS'20], which accesses strings only through a few basic operations, it extends to grammar-compressed, dynamic, quantum, and small-space read-only settings. It also closes, up to the $\log^2 k$ factor, the longstanding gap to certain aperiodic patterns, for which Cole and Hariharan achieved $O(n+k^3\cdot n/m)$ time. The alternative approach of CKW [FOCS'20] leaves one bottleneck, which the general case reduces to: $P$ and $T$ are close to periodic strings with a common period. This case amounts to many min-plus products of distance matrices, each consisting of long runs of one fixed matrix separated by $O(k)$ other matrices. We collapse every long run into a single matrix and show that this preserves the distances that determine the occurrences unless the periodicity-breaking parts of $P$ and $T$ interact strongly. Our main structural result, a planar variation theorem, confines the exact computations needed in the remaining cases to narrow regions of the alignment graph.


翻译:暂无翻译

0
下载
关闭预览

相关内容

EMNLP 2024 | 大语言模型的概念知识编辑
专知会员服务
21+阅读 · 2024年12月13日
EMNLP2023|大语言模型知识编辑问题、方法与挑战
专知会员服务
46+阅读 · 2024年1月2日
【NeurIPS 2023】图对比学习的可证训练问题
专知会员服务
25+阅读 · 2023年11月10日
EMNLP2023:MMEdit——如何编辑多模态大语言模型?
专知会员服务
39+阅读 · 2023年11月5日
重磅发布:基于 PyTorch 的深度文本匹配工具 MatchZoo-py
中国科学院网络数据重点实验室
16+阅读 · 2019年8月26日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
论文浅尝 | 基于知识图谱子图匹配以回答自然语言问题
开放知识图谱
26+阅读 · 2018年6月26日
用PyTorch实现各种GANs(附论文和代码地址)
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
8+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
6+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
3+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
7+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
7+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
15+阅读 · 11月25日
相关资讯
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员