期刊文献+

对KMP算法的一个改进 被引量:4

Improvement of KMP Algorithm
下载PDF
导出
摘要 KMP算法是串匹配算法中效率最高的算法,然而其存在着正文字符与模式中多个相同字符重复比较的缺陷.本文对KMP算法加以改进,建立新型自动机NEWK.新自动机NEWK将旧自动机中指向相同字符的走向改道,从而避免字符的重复匹配,使算法具有更高的效率. Famous KMP algorithm possesses the characteristic of the highest efficiency in algorithms for pattern matching in string. However, there is a defect of the repeated comparison of a character in the text with the same characters in the pattern in KMP algorithm. This paper improves KMP algorithm and establishes a new automat NEWK. The NEWK changes the course of the same characters in old automat, thereby it avoids the repeated comparsion of characters and increases matching efficiency of the algorithm largely.
作者 姜利群
出处 《中国矿业大学学报》 EI CAS CSCD 北大核心 1999年第2期198-200,共3页 Journal of China University of Mining & Technology
关键词 匹配 正文 算法 时间复杂度 KMP算法 string, match, pattern, text, algorithm, time complexity
  • 相关文献

参考文献2

  • 1卢开澄,计算机算法导引.设计与分析,1996年,221页
  • 2吴哲辉,算法设计与分析,1993年,141页

同被引文献10

  • 1鲁宏伟,魏凯,孔华锋.一种改进的KMP高效模式匹配算法[J].华中科技大学学报(自然科学版),2006,34(10):41-43. 被引量:26
  • 2王晓曼,顾玲嘉,任瑞治.基于改进模板匹配算法的靶标图像检测[J].吉林大学学报(信息科学版),2007,25(1):25-29. 被引量:10
  • 3埃利斯,霍罗维茨,萨尔塔.用C++描述数据结构[M].周维真,张海藩译.长沙:国防工业出版社,1997:77-79.
  • 4JONASSEN E. Pattern Discovery in Biosequences[M]. Heidelberg :Springer, 1998:1050-1060.
  • 5SERGIOS T, KONSTANTINOS K. Pattern Recognition [M]. New York:Academic Press,2006: 550-553.
  • 6DIETRICH W R P, JOACHIM H. Applied Pattern Recognition: Algorithms and Implementation in C + + [M]. Boston: Birkhauser Press, 2003:479-489.
  • 7NAVARRO G, FREDRIKSSON K. Average complexity of exact and approximate multiple string matching[J]. Theoretical Computer Science, 2004,321 (223) : 1-7.
  • 8[1]严蔚敏.数据结构[D].北京:清华大学出版社,1996
  • 9[6]Rafael C.Gonzalez,Richard E.Woods.Digital Image Processing Second Edition[M].Beijing:Publishing House of Electronics Industyr,2003
  • 10李葆华,张迎春,许士文,李化义.用KMP算法进行星敏感器星图识别的改进方法[J].光电工程,2004,31(2):19-21. 被引量:5

引证文献4

二级引证文献20

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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