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

弹性退化字符串中的高效模式匹配

Efficient Pattern Matching in Elastic-Degenerate Strings

Costas Iliopoulos, Ritu Kundu, Solon Pissis

摘要:

本文将缺弦的概念推广到弹性退化弦。弹性简并字符串可以被看作是由弹性简并符号交织的k > 1个种子(子字符串/子模式)的有序集合,使得每个弹性简并符号对应于两个或更多个可变长度字符串的集合。本文提出了一种求解(实心)模式和弹性退化文本的模式匹配问题的算法,该算法的时间复杂度为O(N+αγnm),其中m为给定模式的长度,n和N分别为给定弹性退化文本的长度和总大小,m为给定模式的长度,n为给定模式的长度,N为给定模式的长度,m为给定模式的长度,n为给定模式的长度。α和γ是小常数,分别表示文本的任何弹性退化符号中的串的最大数目和弹性退化符号中的最大数目,在文本中出现的任何模式所跨越的退化符号。对于文本中恒定数量的弹性退化符号,该算法所使用的空间在输入的大小上是线性的; α和γ在实际应用中非常小,因此该算法在实践中有望非常有效地工作。

英文摘要:

In this paper, we extend the notion of gapped strings to elastic-degenerate strings. An elastic-degenerate string can been seen as an ordered collection of k > 1 seeds (substrings/subpatterns) interleaved by elastic-degenerate symbols such that each elastic-degenerate symbol corresponds to a set of two or more variable length strings. Here, we present an algorithm for solving the pattern matching problem with (solid) pattern and elastic-degenerate text, running in O(N+αγnm) time; where m is the length of the given pattern; n and N are the length and total size of the given elastic-degenerate text, respectively; α and γ are small constants, respectively representing the maximum number of strings in any elastic-degenerate symbol of the text and the largest number of elastic-degenerate symbols spanned by any occurrence of the pattern in the text. The space used by the algorithm is linear in the size of the input for a constant number of elastic-degenerate symbols in the text; α and γ are so small in real applications that the algorithm is expected to work very efficiently in practice.

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

↑