期刊文献+

基于AC自动机的多模式匹配算法FACA 被引量:3

FACA: A Multiple Pattern Matching Algorithm Based on AC Automata
下载PDF
导出
摘要 Aho-Corasick自动机算法在模式匹配失配时,需要多次回溯才转移到有效的后继状态。为此,提出一种快速多模式匹配算法。该算法为每个状态建立失配时的后继指针,在模式匹配失配时,可以通过失配后继指针快速找到有效后继状态,从而避免Aho-Corasick自动机失配时的过多回溯,提高匹配效率。算法在自动机建立时采用动态规划的方法,为每个状态建立匹配长度和匹配量等信息,在模式匹配过程中,基于这些信息统计模式串在主串中的重复次数、最早出现模式串位置等信息。实验结果表明,该算法匹配精确、效率高,且支持在线操作。 Aho-Corasick automata algorithm has to backtrack for multiple times to shift to the effective subsequence state when it fails in one pattern matching.In order to solve this problem,this paper proposes a fast multiple patterns matching algorithm based on Aho-Corasick automata.The improved algorithm builds the subsequence pointers for each state.On failing matching,it can shift to the effective subsequence state through the subsequence pointers efficiently,which can reduce backtracking times in Aho-Corasick automata.Furthermore,the proposed algorithm achieves information such as matching length,matching times etc for each state during building automata by dynamic programming methods.Based on this information,the algorithm can calculate the repeated times of pattern strings,earliest position of pattern strings.Experimental results show that the algorithm has advantages of matching accuracy,efficiency,and supporting on-line operation.
出处 《计算机工程》 CAS CSCD 2012年第11期173-176,共4页 Computer Engineering
基金 国家自然科学基金资助项目(61170108 6110019) 浙江省新苗人才计划基金资助项目(2011R404018)
关键词 模式匹配 自动机 动态规划 TRIE树 pattern matching automata dynamic programming Trie tree
  • 相关文献

参考文献10

二级参考文献23

  • 1戴扬波,左骅.入侵检测系统的联动与功能[J].邮电设计技术,2005(7):52-54. 被引量:2
  • 2Aho A V, Corasick M J. Efficient String Matching: An Aid to Bibliographic Search[J]. Communications of the ACM, 1975, 18(6):333-340.
  • 3Boyer R S, Moore J S. A Fast String Searching Algorithm [J]. Communications of the Association for Computing Machinery, 1977,20(10) :762-772.
  • 4Fish M, Varghese G. Fast Content-Based Packet Handling for Intrusion Detection[R]. UCSD Technical Report CS2001- 0670,2001.
  • 5Crochemore M, Hancart C. Automata for Matching Patterns [M]//Rosenberg G, Salomaa A, eds. Handbook of Formal Languages. Springer-Verlag, 1997 : 399-462.
  • 6Blumer A, Blumer J, Eherenfeucht A, et al. Linear Size Finite Automata for the Set of All Subwords of a Word.. An Outline of Results[J]. Bulletin of European Association for Theoretical Computer Science, 1983,21 : 12-20.
  • 7Knuth D E,Morris J H,Pratt V R.Fast Pattern Matching in Strings[J].SIAM Journal on Computing,1977,6(2):323-350.
  • 8Boyer R S,Moore J S.A Fast String Searching Algorithm[J].Communications of the ACM,1977,20(10):762-772.
  • 9Sunday D M.A Very Fast Substring Search Algorithm[J].Communications of the ACM,1990,33(8):132-142.
  • 10Aho A V,Corasick M J.Efficient String Matching:An Aid to Bibliographic Search[J].Communications of the ACM,1975,18(6):330-340.

共引文献67

同被引文献16

引证文献3

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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