期刊文献+

字符串模式匹配算法的改进 被引量:11

Improved matching algorithm of string pattern
下载PDF
导出
摘要 字符串模式匹配算法是入侵检测系统中的一种重要算法。通过对两种著名的匹配算法KMP和BM算法以及现有的各种改进算法的分析,提出一种简单实用、易于理解的字符串匹配改进算法。该算法通过每次匹配失败时特殊位置上字符的启发来获得字符串向后移动的可能距离,这个距离由定义的一个统一函数求出,取其中的最大值作为字符串向后移动的实际距离。实验结果表明,该算法能减少模式匹配中字符的比较次数和尝试次数,提高模式匹配的效率。 String pattern matching is an important algorithm in intrusion detection system. Based on the analysis of two famous KMP and BM algorithms, and of the existing various improved algorithms, an improved string matching algorithm which is simple, practical and easy to understand is proposed. In this algorithm, the possible distance that a pattern backward moves is obtained through the inspi- ration of the characters of special position in the case of each mismatch of string pattern. Each of inspiration distance is calculated from the definition of a unified function, and the maximum one is taken as the actual movement distance of a string pattern shifting backward. The experimental results show that the algorithm reduce the number of times of attempts and comparisons of pattern matching and improve the efficiency of it.
出处 《计算机工程与设计》 CSCD 北大核心 2007年第20期4881-4884,共4页 Computer Engineering and Design
关键词 KMP算法 BM算法 入侵检测 模式匹配 移动距离 KMP algorithm BM algorithm intrusion detection pattern matching shift distance
  • 相关文献

参考文献10

二级参考文献37

  • 1章昱,李腊元.网络入侵检测系统的设计与实现[J].武汉理工大学学报(交通科学与工程版),2004,28(5):657-660. 被引量:10
  • 2苗杰,邵品洪.BM模式匹配算法的改进研究[J].现代图书情报技术,1994(3):36-39. 被引量:9
  • 3[1]Crochemore M, Rytter W. Text algorithms[M]. Oxford University Press, 1994.
  • 4[2]Berry T, Ravindran S. A Fast String Matching Algorithm and Experimental Results[A]. Proceedings of the Prague Stringology Club Workshop ′99[C], 1999.16-28.
  • 5[3]Knuth DE, Morris Jr JH, Prath VR. Fast pattern matching in strings[J]. SIAM J.Comput., 1977,6(1):323-350.
  • 6[4]Boyer RS, Moore JS. A Fast String Searching Algorithm[J]. Commun. ACM, 1977, 20(10):762-772.
  • 7[5]Hume A, Sunday DM. Fast String Searching[J]. Softw. Pract. Exp., 1991, 21(11):1221-1248.
  • 8[6]Sunday DM. A Very Fast Substring Search Algorithm[J]. Commun. ACM, 1990, 33(8):132-142.
  • 9[7]Cormen TH, Leiserson CE, Rivest RL. Introduction to Algorithms[M]. The MIT Press, 1990.
  • 10[8]Lecroq T. Experimental Results on String-matching Algorithms[J]. Softw. Pract. Exp., 1995, 25(7):727-765.

共引文献99

同被引文献70

引证文献11

二级引证文献20

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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