| 本文已被:浏览 4964次 下载 7228次 |
 码上扫一扫! |
|
|
| 一般间隙与One-Off条件的序列模式匹配 |
|
刘慧婷1,2, 刘志中1,2, 黄厚柱1,2, 吴信东3,4
|
|
1.计算智能与信号处理教育部重点实验室(安徽大学), 安徽 合肥 230039;2.安徽大学 计算机科学与技术学院, 安徽 合肥 230601;3.合肥工业大学 计算机科学与信息工程学院, 安徽 合肥 230009;4.School of Computing and Informatics, University of Louisiana at Lafayette, Lafayette 70503, USA
|
|
| 摘要: |
| 带有间隙约束的模式匹配问题是序列模式挖掘的关键问题之一.目前,大多数的研究都为非负间隙,对字符串中每个字符的出现顺序有着严格的要求.为了增加匹配的灵活性,并且考虑到在序列模式挖掘中采用one-off条件更加合理,研究一般间隙与one-off条件下的模式匹配问题.该问题为NP-Hard问题.为了有效地求解该问题,提出了MSAING(maximum sequential pattern matching with one-off and general gaps condition)算法:首先,利用Reverse策略使模式与序列达到最佳的匹配状态;然后,使用线性表的结构使匹配过程中消耗的时间和空间大幅度地降低,同时,利用回溯机制提高匹配的成功率;最后,根据inside_Checking机制判断模式串是否会产生内部重复现象,以进一步提高算法的执行效率.理论证明了MSAING算法的完备性,实验结果验证了MSAING算法匹配结果的准确性以及在时间和空间方面的高效性. |
| 关键词: 一般间隙 one-off条件 模式匹配 线性表 |
| DOI:10.13328/j.cnki.jos.005255 |
| 分类号:TP181 |
| 基金项目:国家重点研发计划(2016YFB1000901);国家自然科学基金(61202227) |
|
| Sequential Pattern Matching with General Gap and One-Off Condition |
|
LIU Hui-Ting1,2, LIU Zhi-Zhong1,2, HUANG Hou-Zhu1,2, WU Xin-Dong3,4
|
|
1.Key Laboratory of Intelligent Computing and Signal Processing(Anhui University), Ministry of Education, Hefei 230039, China;2.School of Computer Science and Technology, Anhui University, Hefei 230601, China;3.School of Computer Science and Information Engineering, Hefei University of Technology, Hefei 230009, China;4.School of Computing and Informatics, University of Louisiana at Lafayette, Lafayette 70503, USA
|
| Abstract: |
| Pattern matching with gap constraints is one of the key issues of sequential pattern mining. Recently, most research work focuses on pattern matching with non-negative gaps, but the rule strictly limits the order that each character appears in the sequence. In order to increase the flexibility of matching while taking into account that it is more reasonable to use one-off condition in sequential pattern mining, this paper studies the pattern matching problem under general gap and one-off condition, which is NP-hard. To tackle this issue, an algorithm, named MSAING, is proposed. Firstly, the algorithm processes the pattern and sequence using the Reverse strategy to get the maximum number of matching results. Secondly, it significantly reduces the time and space overhead with linear table structure in the matching process, and improves the matching rate using the backtracking method. Finally, to further improve the efficiency of the algorithm, it determines whether internal repetition exists in the pattern or not, according to the inside_Checking mechanism. Completeness of the MSAING algorithm is proved in theory. Experimental results verify the accuracy of the matching results of the MSAING algorithm and its validity in terms of the time and space complexity. |
| Key words: general gap one-off condition pattern matching linear table |