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

更快的近似(d)文本到模式的L1距离

Faster Approximate(d) Text-to-Pattern L1 Distance

Przemysław Uznański

摘要:

在长度为$m$的\emph{pattern}和长度为$n$的\emph{text}之间找到\emph{distance}的问题是将模式匹配推广到结合相异性分数的典型方式。对于汉明距离和$L_1$距离,只有一个超线性上限$\widetilde{O}(n\sqrt{m})$是已知的,这提示了放松问题的问题:或者通过询问$(1 \pm \varepsilon)$近似距离(每个距离被报告为乘法因子),或者$k$近似距离(超过$k$的距离被报告为$\infty$)。我们专注于$L_1$距离,我们展示了新的算法实现的复杂性分别$\widetilde{O}(\varepsilon^{-1} n)$和$\widetilde{O}((m+k\sqrt{m}) \cdot n/m)$。这是对Lipsky和Porat的运行时$\widetilde{O}(\varepsilon^{-2} n)$的先前算法的显著改进[Amica 2011]以及Amir、Lipsky、Porat和Umanski的$\widetilde{O}(n\sqrt{k})$ [CPM 2005]。

英文摘要:

The problem of finding \emph{distance} between \emph{pattern} of length $m$ and \emph{text} of length $n$ is a typical way of generalizing pattern matching to incorporate dissimilarity score. For both Hamming and $L_1$ distances only a super linear upper bound $\widetilde{O}(n\sqrt{m})$ are known, which prompts the question of relaxing the problem: either by asking for $(1 \pm \varepsilon)$ approximate distance (every distance is reported up to a multiplicative factor), or $k$-approximated distance (distances exceeding $k$ are reported as $\infty$). We focus on $L_1$ distance, for which we show new algorithms achieving complexities respectively $\widetilde{O}(\varepsilon^{-1} n)$ and $\widetilde{O}((m+k\sqrt{m}) \cdot n/m)$. This is a significant improvement upon previous algorithms with runtime $\widetilde{O}(\varepsilon^{-2} n)$ of Lipsky and Porat [Algorithmica 2011] and $\widetilde{O}(n\sqrt{k})$ of Amir, Lipsky, Porat and Umanski [CPM 2005].

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

↑