期刊文献+

适合中文的双向比较模式匹配算法

Two-way Comparative Pattern Matching Algorithm Suitable for Chinese
下载PDF
导出
摘要 分析了几种常用的模式匹配算法,提出一种适合于中文的基于KMP的改进算法,即双向比较模式匹配算法.该算法以KMP算法为基础,引入特征数组以记录模式串尾字符在模式串中出现的位置信息,从而获得模式串在匹配过程中的最大移动距离和最少比较次数.实验结果表明,双向比较模式匹配算法可有效降低匹配次数. Some pattern matching algorithms were analyzed and,an algorithm,suitable for Chinese,based on KMP was proposed,that is two-way pattern matching algorithm.Based on KMP,characteristic-array was introduced into to record the positional information of end character which appears in the pattern string and further to get the maximum moving distance of the pattern and the least times of comparing during the process of pattern string's matching.Experimental results show that two-way pattern matching algorithm can effectively reduce the times of matching.
作者 叶煜
出处 《成都大学学报(自然科学版)》 2011年第3期236-238,共3页 Journal of Chengdu University(Natural Science Edition)
关键词 模式匹配 特征数组 中文 匹配次数 双向比较 pattern matching characteristic-array Chinese times of matching two-way pattern matching
  • 相关文献

参考文献8

二级参考文献50

  • 1李雪莹,刘宝旭,许榕生.字符串匹配技术研究[J].计算机工程,2004,30(22):24-26. 被引量:26
  • 2王成,刘金刚.一种改进的字符串匹配算法[J].计算机工程,2006,32(2):62-64. 被引量:26
  • 3鲁宏伟,魏凯,孔华锋.一种改进的KMP高效模式匹配算法[J].华中科技大学学报(自然科学版),2006,34(10):41-43. 被引量:26
  • 4巫喜红,凌捷.BM模式匹配算法剖析[J].计算机工程与设计,2007,28(1):29-31. 被引量:19
  • 5埃利斯,霍罗维茨,萨尔塔.用C++描述数据结构[M].周维真,张海藩译.长沙:国防工业出版社,1997:77-79.
  • 6JONASSEN E. Pattern Discovery in Biosequences[M]. Heidelberg :Springer, 1998:1050-1060.
  • 7SERGIOS T, KONSTANTINOS K. Pattern Recognition [M]. New York:Academic Press,2006: 550-553.
  • 8DIETRICH W R P, JOACHIM H. Applied Pattern Recognition: Algorithms and Implementation in C + + [M]. Boston: Birkhauser Press, 2003:479-489.
  • 9NAVARRO G, FREDRIKSSON K. Average complexity of exact and approximate multiple string matching[J]. Theoretical Computer Science, 2004,321 (223) : 1-7.
  • 10李涛.网络安全概论[M].北京:电子工业出版社,2008.

共引文献61

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部