期刊文献+

一种改进的W-M多模式匹配算法

An improved W-M algorithm for multi-pattern match
下载PDF
导出
摘要 Wu-Manber算法是一种基于后缀搜索的多模式匹配算法,该算法采用查表的方法,通过跳跃不可能匹配的字符来加速匹配,W-M算法对最短模式长度敏感,最短模式长度决定了它可以跳过的字符的最大距离。针对W-M算法的不足之处,提出了一个改进方法:新增了一个模式串末字符表,取得了比原算法更少的hash计算次数和更大的字符跳跃距离,从而加快了整个匹配过程的速度。最后,进行了设定模式串的最短长度和搜索文本长度的对比实验。实验结果显示,改进后的算法搜索效率明显高于原算法,特别是在模式串长度很短的情况下,效率提高非常明显。 Wu-Manber algorithm is one of the muhi-pattern match algorithm based on the suffix searching. The algorithm speeds up matching by looking up tables to ignore certain characters that will not be matched. W-M algorithm is sensitive to minimum length of pattern which determines the maximum number of eharacters that ean be ignored. Aimed at the shortage of W-M algorithm the improvement was proposed. A new table of last eharaeter of each pattern was added, the times of hash calculation were reduced, more eharaeters were ignored and the matching process was speeded up. In the contrast experiments that setting the minimum length of pattern and the length of text, the efficiency of improved algorithm is mueh better than original algorithm, especially when there are very short patterns.
作者 蒋辉 张宇弘
出处 《机电工程》 CAS 2008年第9期25-27,共3页 Journal of Mechanical & Electrical Engineering
关键词 W—M算法 多模式匹配 哈希函数 后缀 Wu-Manber(W-M) algorithm multi-pattern mateh hash funetion suffix
  • 相关文献

参考文献8

二级参考文献45

  • 1梁健,林中.入侵检测关键技术研究与实现[J].计算机工程与应用,2004,40(26):129-132. 被引量:3
  • 2李雪莹,刘宝旭,许榕生.字符串匹配技术研究[J].计算机工程,2004,30(22):24-26. 被引量:26
  • 3王素琴,邹旭楷.一种优化的并行汉字/字符串匹配算法[J].中文信息学报,1995,9(1):49-53. 被引量:4
  • 4陈瑜,陈国龙.Wu-Manber算法性能分析及其改进[J].计算机科学,2006,33(6):203-205. 被引量:13
  • 5Knuth DE,Morris JH,Pratt VR.Fast pattern matching in sirings[J].SIAM J Comput,1977,6(2):323-350.
  • 6Boyer RS,Moore JS.A fast string searching algorithm[J].Communications of the ACM.1977,20(10):762-772.
  • 7Karp R.M.,Rabin M.O.,Efficient randomized pattern-matching algorithms[J].IBM Journal Res Dev.1987,31(2):249-260.
  • 8A.V.Aho,M.J.Corasick.Efficient String Matching:An Aid to Bibliographic Search[J].Communications of the ACM,1975,18(6):333-340.
  • 9BeateCommentz-Walter.A string matching algorithm fast on the average[A].In:Proceedingsofthe6thColloquium,on Automata,Languages and Programming[C].Springer-Verlag,London,UK.1979,118-132.
  • 10S.Wu,U.Manber.A Fast Algorithm For Multi-Pattern Searching[J].Technical Report TR-94-17,University of Arizona.1994,1-11.

共引文献34

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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