首页 | 本学科首页   官方微博 | 高级检索  
     

一般间隙及一次性条件的严格模式匹配
引用本文:柴欣,贾晓菲,武优西,江贺,吴信东.一般间隙及一次性条件的严格模式匹配[J].软件学报,2015,26(5):1096-1112.
作者姓名:柴欣  贾晓菲  武优西  江贺  吴信东
作者单位:河北工业大学 计算机科学与软件学院, 天津 300401,河北工业大学 计算机科学与软件学院, 天津 300401,河北工业大学 计算机科学与软件学院, 天津 300401,大连理工大学 软件学院, 辽宁 大连 116621,合肥工业大学 计算机科学与信息工程学院, 安徽 合肥 230009;Department of Computer Science, University of Vermont, Burlington, USA
基金项目:国家自然科学基金(61229301, 61370144); 国家高技术研究发展计划(863)(2012AA011005); 教育部创新团队发展计划(IRT13059); 河北省自然科学基金(F2013202138); 河北省教育厅重点项目(ZH2012038)
摘    要:具有间隙约束的模式匹配是序列模式挖掘的关键问题之一.一次性条件约束是要求序列中每个位置的字符最多只能使用一次,在序列模式挖掘中采用一次性条件约束更加合理.但是目前,间隙约束多为非负间隙,非负间隙对字符串中每个字符的出现顺序具有严格的约束,一定程度上限定了匹配的灵活性.为此,提出了一般间隙及一次性条件的严格模式匹配问题;之后,理论证明了该问题的计算复杂性为NP-Hard问题.为了对该问题进行有效求解,在网树结构上构建了动态更新结点信息的启发式求解算法(dynamically changing node property,简称DCNP).该算法动态地更新各个结点的树根路径数、叶子路径数和树根-叶子路径数等,进而每次可以获得一个较优的出现;之后,迭代这一过程.为了有效地提高DCNP算法速度,避免动态更新大量的结点信息,提出了Checking机制,使得DCNP算法仅在可能产生内部重复出现的时候才进行动态更新.理论分析了DCNP算法的时间复杂度和空间复杂度.大量实验结果验证了DCNP算法具有良好的求解性能.

关 键 词:一般间隙  模式匹配  一次性条件  网树
收稿时间:2014/5/22 0:00:00
修稿时间:2014/8/15 0:00:00

Strict Pattern Matching with General Gaps and One-Off Condition
CHAI Xin,JIA Xiao-Fei,WU You-Xi,JIANG He and WU Xin-Dong.Strict Pattern Matching with General Gaps and One-Off Condition[J].Journal of Software,2015,26(5):1096-1112.
Authors:CHAI Xin  JIA Xiao-Fei  WU You-Xi  JIANG He and WU Xin-Dong
Affiliation:School of Computer Science and Software, Hebei University of Technology, Tianjin 300401, China,School of Computer Science and Software, Hebei University of Technology, Tianjin 300401, China,School of Computer Science and Software, Hebei University of Technology, Tianjin 300401, China,School of Software, Dalian University of Technology, Dalian 116621, China and School of Computer Science and Information Engineering, Hefei University of Technology, Hefei 230009, China;Department of Computer Science, University of Vermont, Burlington, USA
Abstract:Pattern matching with gap constraints is one of the key issues of sequential pattern mining. One-off condition which is always used in sequential pattern mining tasks means that the character of each position in the sequence can be used at most once for pattern matching. Recently, most researches focus on pattern matching with non-negative gaps, but the rule of non-negative gaps implies the character's order in the sequence may limit the flexibility of matching. For these reasons, this article proposes a strict pattern matching with general gaps and one-off condition and shows that this problem is NP-hard. To tackle this issue, a heuristic algorithm, named dynamically changing node property (DCNP), is designed based on nettree which dynamically updates the properties of each node such as the numbers of root paths, leaf paths and root-leaf paths, and thus can get a better occurrence. The above process is then iterated. To effectively improve the speed of DCNP and avoid dynamically updating information of nodes on a large scale, a checking mechanism is applied to allow DCNP update information of nodes only when the occurrence may have repetition. The space and time complexities of DCNP are also analyzed. Experimental results show that DCNP has better performance than other competitive algorithms.
Keywords:general gap  pattern matching  one-off condition  nettree
本文献已被 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号