|国家预印本平台
首页|-BM多模式匹配算法的研究与改进

-BM多模式匹配算法的研究与改进

Research and improvement of AC - BM multi-pattern matching algorithm

中文摘要英文摘要

随着互联网行业的发展,信息的多渠道获得,信息的安全性得到了社会的广泛关注。本文对作为防火墙核心技术之一的模式匹配算法进行了深入研究,在AC-BM多模式匹配算法的基础上提出了一种改进算法。此算法提出了前置字符和双字符,并建立了字符跳转表,同时对匹配失败时的跳转规则做出了修改,通过这种方式以有限的空间提高了可观的时间效率。与AC-BM算法相比,其增大了最大跳转长度,提高了大幅跳转的概率。通过数次实验证明,此改进算法比AC-BM算法具有更高的时间效率。

With the development of the Internet industry, information can be acquired through all kinds of ways. Therefore, security of information has been widely concerned. This paper makes an in-depth study on the pattern matching algorithm which is one of the core technologies of the firewall, then it proposes an improved algorithm based on the AC-BM algorithm which is a multi-pattern matching algorithm. The algorithm puts forward the front character and double characters, builds two tables for them and changes the rules when a match fail. In this ways can run-time efficiency be enhanced with little memory. Compared with AC-BM, the new algorithm's maximum length of jump is bigger. What's more, the probability of its big jump is high. Several experiments show that this algorithm has higher time efficiency than AC-BM algorithm.

张慧、罗守山

计算技术、计算机技术

多模式匹配-BM算法前置字符

multi-pattern matchingAC-BM algorithmfront character

张慧,罗守山.-BM多模式匹配算法的研究与改进[EB/OL].(2017-09-05)[2025-08-11].http://www.paper.edu.cn/releasepaper/content/201709-27.点此复制

评论