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

多数据流中的模式匹配

Pattern Matching in Multiple Streams

Raphael Clifford, Markus Jalsenius, Ely Porat, Benjamin Sach

摘要:

我们研究了多个数据流中的确定性模式匹配问题。在这个模型中,一个符号一次到达,并与s个流文本之一相关联。每个时间步的任务是报告长度为m的固定模式和新更新的流之间是否存在新的匹配。与流媒体环境中的常见情况一样,目标是使用尽可能少的空间,同时仍然快速报告匹配。对于三个不同的模式匹配问题,我们给出了几乎匹配的上、下空间界。对于精确匹配,我们表明,这个问题可以解决在恒定的时间每个到达符号和O(m+s)字的空间。对于k-失配和k-差问题,我们给出了O(k)时间的解决方案,需要O(m+ks)字的空间。在所有这三种情况下,我们也给空间下界表明我们的方法是最佳的一个对数因子。最后,我们提出了一些开放的问题,这个新的模式匹配模型。

英文摘要:

We investigate the problem of deterministic pattern matching in multiple streams. In this model, one symbol arrives at a time and is associated with one of s streaming texts. The task at each time step is to report if there is a new match between a fixed pattern of length m and a newly updated stream. As is usual in the streaming context, the goal is to use as little space as possible while still reporting matches quickly. We give almost matching upper and lower space bounds for three distinct pattern matching problems. For exact matching we show that the problem can be solved in constant time per arriving symbol and O(m+s) words of space. For the k-mismatch and k-difference problems we give O(k) time solutions that require O(m+ks) words of space. In all three cases we also give space lower bounds which show our methods are optimal up to a single logarithmic factor. Finally we set out a number of open problems related to this new model for pattern matching.

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

↑