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

近似近似模式匹配

Approximating Approximate Pattern Matching

Jan Studený, Przemysław Uznański

摘要:

给定长度为$n$的文本$T$和长度为$m$的模式$P$,近似模式匹配问题要求计算$P$和$T$的每个$m$子串之间的特定\emph{distance}函数。我们考虑这个问题的一个$(1\pm\varepsilon)$乘性近似变量,对于$\ell_p$距离函数。在本文中,我们描述了两个$(1+\varepsilon)$近似算法的运行时间为$\widetilde{O}(\frac{n}{\varepsilon})$的所有(常数)非负值的$p$。对于常数$p \ge 1$,我们展示了一个确定性的$(1+\varepsilon)$近似算法。以前,Gawrychowski和Uznabrski [ICALP 2018]仅在$\ell_1$距离的情况下知道这种运行时间,并且仅使用随机算法。对于恒定的$0 \le p \le 1$,我们给出了$\ell_p$的随机算法,从而在汉明距离($p=0$的情况)的Kopelowitz和Porat [FOCS~2015,SOSA~2018]算法与$\ell_1$距离的Gawrychowski和Uznaprski算法之间提供了平滑的权衡。

英文摘要:

Given a text $T$ of length $n$ and a pattern $P$ of length $m$, the approximate pattern matching problem asks for computation of a particular \emph{distance} function between $P$ and every $m$-substring of $T$. We consider a $(1\pm\varepsilon)$ multiplicative approximation variant of this problem, for $\ell_p$ distance function. In this paper, we describe two $(1+\varepsilon)$-approximate algorithms with a runtime of $\widetilde{O}(\frac{n}{\varepsilon})$ for all (constant) non-negative values of $p$. For constant $p \ge 1$ we show a deterministic $(1+\varepsilon)$-approximation algorithm. Previously, such run time was known only for the case of $\ell_1$ distance, by Gawrychowski and Uznański [ICALP 2018] and only with a randomized algorithm. For constant $0 \le p \le 1$ we show a randomized algorithm for the $\ell_p$, thereby providing a smooth tradeoff between algorithms of Kopelowitz and Porat [FOCS~2015, SOSA~2018] for Hamming distance (case of $p=0$) and of Gawrychowski and Uznański for $\ell_1$ distance.

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

↑