arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.06808cs.DSquant-ph
收藏

近似模式匹配的近最优时间量子算法

Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching

Tomasz Kociumaka, Jakob Nogler, Philip Wellnitz

AI总结:

该研究针对错配和编辑两种近似模式匹配问题,提出了查询复杂度达$\u00d6(\sqrt{nk})$、时间复杂度近最优的量子算法,在特定参数范围下优于经典算法,还支持以等差数列形式报告匹配起始位置。

摘要:

近似模式匹配是最基础的字符串处理任务之一。给定长度为$n$的文本$T$、长度为$m$的模式$P$以及阈值$k$,该任务的目标是找出$T$中与$P$的距离不超过$k$的片段。我们研究两种最常用的距离度量:错配模式匹配中的汉明距离(即字符替换的数量),以及编辑模式匹配中的编辑距离(即字符插入、删除和替换的最小次数)。本文重新探讨了这两个问题在量子计算场景下的复杂度。\n我们近期发表于STOC'24的研究表明,$\u00d6(\sqrt{nk})$次量子查询足以解决编辑模式匹配的判定版本问题,但该解决方案的量子时间复杂度并未比经典计算带来任何提升。另一方面,由Jin和Nogler提出、发表于SODA'23的错配模式匹配最优算法,查询复杂度为$\u00d6(\sqrt{nk^{3/2}})$,时间复杂度为$\tilde{O}(\sqrt{nk^2})$,未达到$Ω(\sqrt{nk})$次查询的无条件下界。\n在本研究中,我们提出的量子算法中,错配模式匹配的时间复杂度为$\tilde{O}(\sqrt{nk}+\sqrt{n/m}\cdot k^2)$,编辑模式匹配的时间复杂度为$\u00d6(\sqrt{nk}+\sqrt{n/m}\cdot k^{3.5})$;两种解决方案均使用$\u00d6(\sqrt{nk})$次查询。当分别满足$k\ll m^{1/3}$和$k\ll m^{1/6}$时,二者的运行时间均达到近最优;当分别满足$k\ll (mn)^{1/4}$和$k\ll (mn)^{1/7}$时,二者相比经典算法均具有优势。我们的解决方案还可以报告$P$在$T$中近似出现的起始位置(以等差数列集合的形式表示);在这种情况下,无条件下界以及我们算法的复杂度都会增加$Θ(\sqrt{n/m})$倍。

英文摘要:

Approximate Pattern Matching is among the most fundamental string-processing tasks. Given a text $T$ of length $n$, a pattern $P$ of length $m$, and a threshold $k$, the task is to identify the fragments of $T$ that are at distance at most $k$ to $P$. We consider the two most common distances: Hamming distance (the number of character substitutions) in Pattern Matching with Mismatches and edit distance (the minimum number of character insertions, deletions, and substitutions) in Pattern Matching with Edits. We revisit the complexity of these two problems in the quantum setting. Our recent work [STOC'24] shows that $\hat{O}(\sqrt{nk})$ quantum queries are sufficient to solve (the decision version of) Pattern Matching with Edits. However, the quantum time complexity of the underlying solution does not provide any improvement over classical computation. On the other hand, the state-of-the-art algorithm for Pattern Matching with Mismatches [Jin and Nogler; SODA'23] achieves query complexity $\hat{O}(\sqrt{nk^{3/2}})$ and time complexity $\tilde{O}(\sqrt{nk^2})$, falling short of an unconditional lower bound of $Ω(\sqrt{nk})$ queries. In this work, we present quantum algorithms with a time complexity of $\tilde{O}(\sqrt{nk}+\sqrt{n/m}\cdot k^2)$ for Pattern Matching with Mismatches and $\hat{O}(\sqrt{nk}+\sqrt{n/m}\cdot k^{3.5})$ for Pattern Matching with Edits; both solutions use $\hat{O}(\sqrt{nk})$ queries. The running times are near-optimal for $k\ll m^{1/3}$ and $k\ll m^{1/6}$, respectively, and offer advantage over classical algorithms for $k\ll (mn)^{1/4}$ and $k\ll (mn)^{1/7}$, respectively. Our solutions can also report the starting positions of approximate occurrences of $P$ in $T$ (represented as collections of arithmetic progressions); in this case, the unconditional lower bound and the complexities of our algorithms increase by a $Θ(\sqrt{n/m})$ factor.

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

↑