arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.07852cs.ITcs.DSmath.IT
收藏

基于稀疏傅里叶变换的亚线性时间子串/模式匹配

Sub-string/Pattern Matching in Sub-linear Time Using a Sparse Fourier Transform Approach

Nagaraj T. Janakiraman, Avinash Vem, Krishna R. Narayanan, Jean-Francois Chamberland

摘要:

我们考虑查询长度为$N$位的字符串(或数据库)的问题,以确定长度为$M$的子串(查询)出现的所有位置,或者恰好在$K$与查询的汉明距离内。我们假设原始信号的草图可以离线计算并存储。使用稀疏傅立叶变换计算为基础的方法介绍了Pawar和Ramchandran,我们表明,所有这样的匹配可以确定在次线性时间的高概率。具体来说,如果查询长度$M = O(N^μ)$和匹配$L=O(N^λ)$的数量,我们表明,$λ< 1-μ$的所有匹配的位置可以确定的概率接近1的$N \rightarrow \infty$为$K \leq \frac{1}{6}M$。更重要的是,我们的方案具有仅为$O\left(\max\{N^{1-μ}\log^2 N, N^{μ+λ}\log N \}\right)$的最坏情况的计算复杂度,这意味着对于$λ<1-μ$,我们可以在{ \it次线性}时间内恢复所有匹配位置。这是对Andoni { \em et al.}的用于恢复一个匹配位置的$O\left(N^{1-0.359 μ} \right)$的最佳已知计算复杂度的实质性改进。\cite{andoni2013shift}。此外,需要计算、存储和访问的傅立叶变换系数的数量,即,该算法的绘制复杂度仅为$O\left(N^{1-μ}\log N\right)$。几个扩展的主要主题也进行了讨论。

英文摘要:

We consider the problem of querying a string (or, a database) of length $N$ bits to determine all the locations where a substring (query) of length $M$ appears either exactly or is within a Hamming distance of $K$ from the query. We assume that sketches of the original signal can be computed off line and stored. Using the sparse Fourier transform computation based approach introduced by Pawar and Ramchandran, we show that all such matches can be determined with high probability in sub-linear time. Specifically, if the query length $M = O(N^μ)$ and the number of matches $L=O(N^λ)$, we show that for $λ< 1-μ$ all the matching positions can be determined with a probability that approaches 1 as $N \rightarrow \infty$ for $K \leq \frac{1}{6}M$. More importantly our scheme has a worst-case computational complexity that is only $O\left(\max\{N^{1-μ}\log^2 N, N^{μ+λ}\log N \}\right)$, which means we can recover all the matching positions in {\it sub-linear} time for $λ<1-μ$. This is a substantial improvement over the best known computational complexity of $O\left(N^{1-0.359 μ} \right)$ for recovering one matching position by Andoni {\em et al.} \cite{andoni2013shift}. Further, the number of Fourier transform coefficients that need to be computed, stored and accessed, i.e., the sketching complexity of this algorithm is only $O\left(N^{1-μ}\log N\right)$. Several extensions of the main theme are also discussed.

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

↑