期刊文献+

快速的多模式匹配算法 被引量:6

Improved algorithms for multiple patterns matching
下载PDF
导出
摘要 在基于有限状态自动机的多模式匹配算法(DFSA算法)基础上,结合Tuned BM算法的优点,提出一个快速的多模式字符串匹配算法,实现了多模式匹配过程中不匹配字符的连续跳跃.在此基础上进一步改进,得到一个最差时间复杂度为线性的匹配算法.分析指出算法实际比较的字符数随着模式串长度的增加而下降,并随模式集的增大有所增多.实验表明,在模式串较短时,算法需要的匹配时间仅为AC算法的1/2到1/3,AQR算法的9/10左右;在模式串较长时,所需时间为AC算法的1/4至1/8,AQR算法的3/4左右. Combined with the advantages of the Tuned Boyer - Moore algorithm, an effective algorithm for performing multiple patterns matching in a string was put forward on the concept of deterministic finite state automata (DFSA), and achieved better performance by shifting unmatched characters consecutively. Experimental results indicate that, to search a string, the algorithm takes only 1/2 - 1/3 that of AC and 9/10 of AQR in case of short patterns while the ratio is 1/4 - 1/8 and 3/4 in case of long patterns.
出处 《哈尔滨工业大学学报》 EI CAS CSCD 北大核心 2007年第12期1925-1929,共5页 Journal of Harbin Institute of Technology
基金 国家自然科学基金资助项目(60203021)
关键词 字符串匹配 有限状态自动机 TunedBM算法 多模式匹配 时间复杂度 string matching finite state automaton Tuned BM algorithm multiple patterns matching computational complexity
  • 相关文献

参考文献7

  • 1BOYER R S, MOORE J S. A fast string searching algorithm [J]. Communications of ACM, 1977, 20(10): 762 - 772.
  • 2SUNDAY D M. A very fast substring search algorithm [J]. Communications of ACM, 1990, 33 (8) :132- 142.
  • 3HUME A. , SUNDAY D M. Fast string searching [ J]. Software - Practice & Experience, 1991, 21 ( 11 ):1221 - 1248.
  • 4AHO A V, CORASICK M J. Efficient string matching: an aid to bibliographic search [ J]. Communications of ACM, 1975, 18(6): 333-340.
  • 5FAN Jang- Jong, SU Keh- Yih. An efficient algorithm for matching multiple patterns[ J]. IEEE Transaction on Knowledge and Data Engineering, 1993, 5 (2). 339 - 351.
  • 6王永成,沈州,许一震.改进的多模式匹配算法[J].计算机研究与发展,2002,39(1):55-60. 被引量:52
  • 7殷丽华,张冬艳,方滨兴.面向入侵检测的单模式匹配算法性能分析[J].计算机工程与应用,2004,40(24):1-3. 被引量:9

二级参考文献9

  • 1Knuth D E,Morris J H,Pratt V R.Fast pattern matching in string[J].SIAM J Comput, 1977;6(6) :323~350
  • 2Boyer R S,Moore J S.A fast string searching algorithm[J].Commun ACM, 1977;20(10) :762~772
  • 3Sunday D M.A very fast substring search algorithm[J].Commun ACM, 1990;33(8): 132~142
  • 4http://www-igm.univ-mlv.fr/~lecroq/string/
  • 5D E Knuth, J H Morris, V R Pratt. Fast pattern matching in strings. SIAM Journal Computer, 1977, 6(2): 323~350
  • 6R S Boyer, J S Moore. A fast string searching algorithm. Communications of the ACM, 1977, 20(10): 762~772
  • 7Sunday M Daniel. A very fast substring search algorithm. Communications of the ACM, 1990, 33(8): 132~142
  • 8A V Aho, M J Corasick. Efficient string matching: An aid to bibliographic search. Communications of the ACM, 1975, 18(6): 333~340
  • 9Fan Jang-Jong, Su Keh-Yih. An efficient algorithm for match multiple patterns. IEEE Trans on Knowledge and Data Engineering, 1993, 5(2):339~351

共引文献58

同被引文献38

引证文献6

二级引证文献24

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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