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

流中的$L_p$模式匹配

$L_p$ Pattern Matching in a Stream

Tatiana Starikovskaya, Michal Svagerka, Przemysław Uznański

摘要:

我们考虑的问题之间的距离计算模式的长度$n$和所有$n$长度的子字的文本在流模型。在流设置中,仅研究了汉明距离($L_0$)。已知计算模式和流文本之间的精确汉明距离需要$Ω(n)$空间(民间传说)。因此,要发展次线性空间的解决方案,必须放宽他们的要求。这样做的一种可能性是仅计算由阈值$k$界定的距离,参见[SODA'19,Clifford,Kociumaka,Porat]及其参考文献。这个问题的这个变体的动机是,我们感兴趣的是文本中与模式相似的子词,即子词与模式之间的距离相对较小。另一方面,流式设置的主要应用是处理大规模数据,例如生物数据。硬件技术的最新进展允许以非常高的速度生成这样的数据,但不幸的是,所产生的数据可能包含约10%的噪声~[Biol. Direct. '07,Klebanov and Yakovlev].为了分析这些数据,仅仅考虑小距离是不够的。此问题的一种可能的解决方法是使用$(1\pm\varepsilon)$近似。这条线的研究开始于[ICALP'16,Clifford和Starikovskaya]谁给了$(1\pm\varepsilon)$ -近似算法与空间~ $\tilde{O}(\varepsilon^{-5}\sqrt{n})$。在这项工作中,我们展示了一套新的流式算法计算汉明,$L_1$,$L_2$和一般$L_p$($0 < p < 2$)模式和文本之间的距离。我们的结果显着扩展了以前的结果在这种设置。特别是,对于汉明距离和$L_p$距离,当$0 < p \le 1$时,我们示出了使用$\tilde{O}(\varepsilon^{-2}\sqrt{n})$空间用于多项式大小的字母表的流算法。

英文摘要:

We consider the problem of computing distance between a pattern of length $n$ and all $n$-length subwords of a text in the streaming model. In the streaming setting, only the Hamming distance ($L_0$) has been studied. It is known that computing the exact Hamming distance between a pattern and a streaming text requires $Ω(n)$ space (folklore). Therefore, to develop sublinear-space solutions, one must relax their requirements. One possibility to do so is to compute only the distances bounded by a threshold $k$, see~[SODA'19, Clifford, Kociumaka, Porat] and references therein. The motivation for this variant of this problem is that we are interested in subwords of the text that are similar to the pattern, i.e. in subwords such that the distance between them and the pattern is relatively small. On the other hand, the main application of the streaming setting is processing large-scale data, such as biological data. Recent advances in hardware technology allow generating such data at a very high speed, but unfortunately, the produced data may contain about 10\% of noise~[Biol. Direct.'07, Klebanov and Yakovlev]. To analyse such data, it is not sufficient to consider small distances only. A possible workaround for this issue is the $(1\pm\varepsilon)$-approximation. This line of research was initiated in [ICALP'16, Clifford and Starikovskaya] who gave a $(1\pm\varepsilon)$-approximation algorithm with space~$\tilde{O}(\varepsilon^{-5}\sqrt{n})$. In this work, we show a suite of new streaming algorithms for computing the Hamming, $L_1$, $L_2$ and general $L_p$ ($0 < p < 2$) distances between the pattern and the text. Our results significantly extend over the previous result in this setting. In particular, for the Hamming distance and for the $L_p$ distance when $0 < p \le 1$ we show a streaming algorithm that uses $\tilde{O}(\varepsilon^{-2}\sqrt{n})$ space for polynomial-size alphabets.

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

↑