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

流中的字典匹配

Dictionary matching in a stream

Raphael Clifford, Allyx Fontaine, Ely Porat, Benjamin Sach, Tatiana Starikovskaya

摘要:

我们考虑流中的字典匹配问题。给定一组字符串(称为字典)和一个字符流(每次到达一个字符),任务是在我们的字典中的某个字符串出现在流中时报告。我们提出了一个随机算法,每个到达字符需要O(log log(k + m))的时间,并使用O(k log m)字的空间,其中k是字典中的字符串的数量和m是字典中最长的字符串的长度。

英文摘要:

We consider the problem of dictionary matching in a stream. Given a set of strings, known as a dictionary, and a stream of characters arriving one at a time, the task is to report each time some string in our dictionary occurs in the stream. We present a randomised algorithm which takes O(log log(k + m)) time per arriving character and uses O(k log m) words of space, where k is the number of strings in the dictionary and m is the length of the longest string in the dictionary.

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

↑