期刊文献+

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

Improved multiple patterns string matching algorithm
下载PDF
导出
摘要 在经典的AC多模式字符串匹配算法的基础上,结合BMH算法的优点,提出了一种快速的多模式字符串匹配算法。一般情况下,该算法不需要匹配目标文本串中的每个字符,而是在实际比较之前跳过尽可能多的字符,以减少字符比较的操作,实现快速匹配。在模式串较长和较短的情况下,算法都有很好的性能。实验表明,在模式串较短时,本算法所需的时间仅为AC算法的50%~30%;在模式串较长时,所需时间为AC算法的26.7%~15.2%。 Combined with the advantage of the Boyer-Moore-Hoospool (BMH) algorithm, a faster algorithm for performing multiple patterns matching in a string was proposed on the basis of Aho-Corasick (AC) algorithm. In general, it does not need to inspect every character of the string. It skips as many characters as possible to decrease pattern match operations before matching patterns. The proposed algorithm achieves excellent performance in the cases of both short patterns and long patterns. Experimental results show that in case of short patterns the time it takes for the proposed algorithm to search a string is only 50% -30% that of the AC algorithm, while in case of long patterns the ratio is 26.7% - 15.2%.
出处 《计算机应用》 CSCD 北大核心 2007年第6期1415-1417,共3页 journal of Computer Applications
基金 国防基础科研项目(C2720061361) 国家863计划项目(2005AA147030)
关键词 字符串匹配 AC算法 BMH算法 多模式匹配 算法复杂度 string matching AC algorithm BMH algorithm multiple patterns matching computational complexity
  • 相关文献

参考文献7

  • 1KURI J,NAVARRO G,ME L.Fast Multipattern Search Algorithms for Intrusion Detection[J].Fundamenta Informaticae,2003,56(1 -2):23 -49.
  • 2KNUTH D,MORRIS J,PRATT V.Fast pattern matching in strings[J].SIAM Journal on Computing,1977,6(1):323-350.
  • 3BOYER RS,MOORE JS.A fast string searching algorithm[J].Communications of ACM,1977,20(10):762 -772.
  • 4NIGEL HR.Practical fast searching in strings[J].Software Practice and Experience,1980,10(6):501-506.
  • 5AHO AV,CORASICK MJ.Efficient string matching:an aid to bibliographic search[J].Communications of ACM,1975,18(6):333-340.
  • 6FAN JJ,SU KH.An Efficient Algorithm for Matching Multiple Patterns[J].IEEE Transaction on Knowledge and Data Engineering,1993,5(2):339-351.
  • 7CHARRAS C,LECROQ TT.Handbook of Exact String Matching Algorithms[M].London:King's College London Publicatons,2004.

同被引文献72

引证文献11

二级引证文献36

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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