arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1705.09504cs.DS
收藏

具有常数和变量的模式匹配的新变体

New Variants of Pattern Matching with Constants and Variables

Yuki Igarashi, Diptarama, Ryo Yoshinaka, Ayumi Shinohara

摘要:

给定一个文本和一个模式,在两种类型的符号上,称为常量和变量,参数化模式匹配问题是通过用文本中的一个变量替换模式中的每个变量来找到模式匹配的文本的子串的所有出现,其中替换应该是单射的。函数匹配问题是它的一个变体,它解除了注入约束。在本文中,我们将讨论这些问题的变体,其中可以用一个常数或一个变量来代替模式的每个变量。我们给出了两种算法,基于卷积的方法和扩展的基于KMP的方法,并分析了它们的复杂性。

英文摘要:

Given a text and a pattern over two types of symbols called constants and variables, the parameterized pattern matching problem is to find all occurrences of substrings of the text that the pattern matches by substituting a variable in the text for each variable in the pattern, where the substitution should be injective. The function matching problem is a variant of it that lifts the injection constraint. In this paper, we discuss variants of those problems, where one can substitute a constant or a variable for each variable of the pattern. We give two kinds of algorithms for both problems, a convolution-based method and an extended KMP-based method, and analyze their complexity.

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

↑