arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1102.1746cs.DS
收藏

字符串中的混乱模式匹配算法

Algorithms for Jumbled Pattern Matching in Strings

Péter Burcsi, Ferdinando Cicalese, Gabriele Fici, Zsuzsanna Lipták

摘要:

字符串s的Parikh向量p(s)被定义为字符的多重性向量。Parikh向量q出现在s中,如果s有一个子串t,其中p(t)=q。我们提出了两个新的算法搜索查询q在文本s。一个解决了决策问题的二进制文本在恒定的时间,使用线性大小索引的文本。第二个算法,对于一般的有限字母表,找到所有出现的一个给定的Parikh向量q,并具有次线性预期的时间复杂度,我们提出了两个变种,都使用线性大小索引的文本。

英文摘要:

The Parikh vector p(s) of a string s is defined as the vector of multiplicities of the characters. Parikh vector q occurs in s if s has a substring t with p(t)=q. We present two novel algorithms for searching for a query q in a text s. One solves the decision problem over a binary text in constant time, using a linear size index of the text. The second algorithm, for a general finite alphabet, finds all occurrences of a given Parikh vector q and has sub-linear expected time complexity; we present two variants, which both use a linear size index of the text.

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

↑