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

子串一致等价关系下的广义字典匹配

Generalized Dictionary Matching under Substring Consistent Equivalence Relations

Diptarama Hendrian

摘要:

给定一组被称为字典和文本的模式,字典匹配问题是找到所有模式在文本中的所有出现位置的任务。使用Aho-Corasick算法可以有效地解决字典匹配问题。最近,Matsuoka等人[TCS,2016]提出了子串一致等价关系下模式匹配问题的推广,并提出了解决该问题的Knuth-Morris-Pratt算法的推广。等价关系$\approx$是子串一致等价关系(SCER),如果对于两个字符串$X,Y$,$X \approx Y$意味着对于所有$1 \le i \le j \le |X|$的$|X| = |Y|$和$X[i:j] \approx Y[i:j]$。在本文中,我们提出了一个推广的字典匹配问题,并提出了一个推广的Aho-Corasick算法的字典匹配下SCER。我们提出了一种构造SCER自动机的算法和一种利用SCER自动机进行字典匹配的算法。此外,我们展示了我们的算法的时间和空间复杂度相对于输入字符串的大小。

英文摘要:

Given a set of patterns called a dictionary and a text, the dictionary matching problem is a task to find all occurrence positions of all patterns in the text. The dictionary matching problem can be solved efficiently by using the Aho-Corasick algorithm. Recently, Matsuoka et al. [TCS, 2016] proposed a generalization of pattern matching problem under substring consistent equivalence relations and presented a generalization of the Knuth-Morris-Pratt algorithm to solve this problem. An equivalence relation $\approx$ is a substring consistent equivalence relation (SCER) if for two strings $X,Y$, $X \approx Y$ implies $|X| = |Y|$ and $X[i:j] \approx Y[i:j]$ for all $1 \le i \le j \le |X|$. In this paper, we propose a generalization of the dictionary matching problem and present a generalization of the Aho-Corasick algorithm for the dictionary matching under SCER. We present an algorithm that constructs SCER automata and an algorithm that performs dictionary matching under SCER by using the automata. Moreover, we show the time and space complexity of our algorithms with respect to the size of input strings.

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

↑