期刊文献+

一种快速的单模式匹配算法 被引量:2

A Fast Single-Pattern Match Algorithm
在线阅读 下载PDF
导出
摘要 在分析了BM算法以及一些重要的改进算法的基础上,提出一种新的改进算法——Y_BMHS算法.利用辅助的二维数组,考虑了文本串后间隔的两位字符和模式串首字符的唯一性,使得最大位移提升到m+3,出现概率也显著提高,加快了匹配速度.证明Y_BMHS算法比BM、BMH、BMHS等算法有更好的性能. After analyzing BM algorithm and some important improved algorithms, a new improved algorithm called Y_BMHS is put forward. With a two-dimensional array, the algorithm considers the uniqueness of text string's last two interval characters and pattern string's first character. The proposed algorithm makes the maximum displacement enhance to m + 3, and the occurrence probability and match speed are also improved. The experimental results show that the Y_BMHS algorithm performs better than BM, BMH, BMHS and other improved algorithms as well.
出处 《华南师范大学学报(自然科学版)》 CAS 北大核心 2013年第5期31-35,共5页 Journal of South China Normal University(Natural Science Edition)
基金 国家科技支撑计划项目(2008BAH37B05084) 广东省教育科研网优化升级与应用平台建设项目(粤财教2011-16)
关键词 BMHS算法 二维数组 出现概率 BMH算法 BM算法 BMHS algorithm two-dimensional array occurrence probability BMH algorithm BM algorithm
  • 相关文献

参考文献8

  • 1AHO A V, CORASICK M J. Efficient string matching: An aid to bibliographic search [J] . Commun ACM, 1975 , 18(6) :333 -340.
  • 2CHARRAS C, LECROQ T. Exact string matching algo- rithms[EB/OL]. (1997 -01 -14) [2012 -04 -03]. http;//www.r-igm.univ-mlv.fr/lecroq/string.
  • 3KNUTH DE, MORRIS J H , PRATT V R. Fast pattern in strings[J]. SIAM J Comput,1977, 6(2) ;323 -350.
  • 4BOYER R S, MOORE J S. A fast string searching algorithrn[J]. Commun ACM, 1977 ,20( 10) ; 762 -772.
  • 5HORSPOOL N R. Practical fast searching in strings [J] . Software Practice and Experience, 1980, 10(6) ;501 -506.
  • 6SUNDAY D M. A very fast substring search algorithm [J]. Comm ACM, 1990,33(8) ;132 -142.
  • 7单懿慧,蒋玉明,田诗源.面向入侵检测的改进BMHS模式匹配算法[J].计算机工程,2009,35(24):170-173. 被引量:13
  • 8李雪莹,刘宝旭,许榕生.字符串匹配技术研究[J].计算机工程,2004,30(22):24-26. 被引量:28

二级参考文献17

  • 1李雪莹,刘宝旭,许榕生.字符串匹配技术研究[J].计算机工程,2004,30(22):24-26. 被引量:28
  • 2王成,刘金刚.一种改进的字符串匹配算法[J].计算机工程,2006,32(2):62-64. 被引量:26
  • 3巫喜红,凌捷.BM模式匹配算法剖析[J].计算机工程与设计,2007,28(1):29-31. 被引量:19
  • 4李涛.网络安全概论[M].北京:电子工业出版社,2008.
  • 5Knuth D E, Morris J H, Pratt V R. Fast Pattern Matching in String[J]. SIAM Journal on Computing, 1977, 6(6): 323-350.
  • 6Charras C, Lecroq T. Brute Force Algorithm[EB/OL]. (1997-03-04). http://www-igm.univ-mlv.fr/-lecroqlstring/node3.html.
  • 7Boyer R S, Moore J S. A Fast String Searching Algorithm[J]. Communications of the ACM, 1977, 20(10): 762-772.
  • 8Franek F, Jennings C G, Smyth P W F. A Simple Fast Hybrid Pattern-matching Algorithm[J]. Journal of Discrete Algorithms, 2007, 4(5): 682-695.
  • 9Nigel-Horspool R. Practical-Fast Searching in Strings[J]. Practice and Experience, 1980, 10(6): 501-506.
  • 10Daniel M S. Very Fast Substring Search Algorithm[J]. Communications of the ACM, 1990, 33(8): 132-142.

共引文献37

同被引文献20

  • 1张娜,侯整风.一种快速的BM模式匹配改进算法[J].合肥工业大学学报(自然科学版),2006,29(7):834-838. 被引量:9
  • 2张娜,张剑.一个快速的字符串模式匹配改进算法[J].微电子学与计算机,2007,24(4):102-105. 被引量:11
  • 3Boyer R S, Moore J S. A Fast String Searching Algorithm[J]. Communications of the ACM, 1977 (20) :762-772.
  • 4Horspool R N. Practical Fast Searching in Strings[J]. Software Practice & Experience, 1980,10(6):501-506.
  • 5Sunday D M. A Very Fast Substring Search Algorithm[J]. Communication of the ACM, 1990,33 (8): 132-142.
  • 6Fisk M, Varghese G. An Analysis of Fast String Matching Applied to Content-based Forwarding and Intrusion Detection, CS2001-0670 [ R]. San Diego, USA : University of California,2002.
  • 7Antonatos S, Anagnostakis K G, Markatos E P. Generating Realistic Workloads for Network Intrusion Detection Systems [ C ]//Proceedings of ACM Workshop on Software and Performance. New York, USA: ACM Press ,2004:207-215.
  • 8Boyer R S, Moore J S. A Fast String Searching Algorithm [ J ]. Communications of the ACM, 1977, 20(10) :762-772.
  • 9Horspool N. Practical Fast Searching in Strings [ J]. Software Practice and Experience, 1980, 20 ( 10 ) : 501-506.
  • 10Sunday D M. A Very Fast Substring Search Algori- thm[J]. Communications of the ACM, 1990,33 (3) : 132-142.

引证文献2

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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