作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (06): 279-281. doi: 10.3969/j.issn.1000-3428.2012.06.093

• 开发研究与设计技术 • 上一篇    下一篇

AC多模式匹配算法研究

巫喜红,曾 锋   

  1. (嘉应学院计算机学院,广东 梅州 514015)
  • 收稿日期:2011-07-25 出版日期:2012-03-20 发布日期:2012-03-20
  • 作者简介:巫喜红(1975-),女,副教授、硕士,主研方向:多模式匹配算法;曾 锋,讲师、博士研究生
  • 基金资助:
    广东省高校优秀青年创新人才培养计划基金资助项目(LYM10121);梅州市科技计划基金资助项目(2011A04);梅州市自然科学研究科研基金资助项目(2010KJA27)

Research on AC Multiple Pattern Matching Algorithm

WU Xi-hong, ZENG Feng   

  1. (College of Computer Science, Jiaying University, Meizhou 514015, China)
  • Received:2011-07-25 Online:2012-03-20 Published:2012-03-20

摘要: AC算法的内存空间开销大,不利于硬件实现。为此,提出AC多模式匹配算法。分析AC算法的特点,使用位图存储技术和压缩处理技术对其进行改进。从模式串长度和模式串数目角度出发进行实验,结果表明,该算法能缩短扫描时间,提高模式匹配速度和访问速度。

关键词: AC算法, 位图, 多模式匹配, 压缩向量, 状态机

Abstract: Aho-Corasick(AC) algorithm needs big memory space spending, and is not conducive to the hardware realization. In order to solve this problem, this paper proposes an AC multiple pattern matching algorithm. This paper analyzes the AC algorithm, and uses bitmap storage technique and compressed technique to improve the AC algorithm. Through running an experiment from patterns and length of modes, result shows that this algorithm can improve the speed of pattern matching and pattern visiting.

Key words: Aho-Corasick(AC) algorithm, bitmap, multiple pattern matching, compressed vector, state machine

中图分类号: