首页 | 本学科首页   官方微博 | 高级检索  
     

一种改进的多模式匹配算法
引用本文:褚衍杰,李云照,魏强. 一种改进的多模式匹配算法[J]. 西安电子科技大学学报(自然科学版), 2014, 41(6): 174-180. DOI: 10.3969/j.issn.1001-2400.2014.06.029
作者姓名:褚衍杰  李云照  魏强
作者单位:(盲信号处理重点实验室,四川 成都610041)
摘    要:针对WM算法在模式集规模大且最短模式长度小的情况下性能较低的问题,分析了WM算法及其改进的快速WM(QWM)算法的优缺点,在此基础上提出了模式分集思想,并优化了跳跃和确认机制,设计了子集WM(SWM)算法;然后针对该算法在域名过滤中的应用,对hash函数、匹配顺序等进行进一步优化.针对域名过滤的实验结果表明,当模式数量超过10000条时,SWM算法匹配时间是WM算法的8.9%~11.6%,说明SWM算法在模式集规模较大时,匹配速度能显著提高.

关 键 词:模式匹配  字符串匹配  WM算法  SWM算法  域名过滤  
收稿时间:2013-07-17

Improved multi-pattern matching algorithm
CHU Yanjie,LI Yunzhao,WEI Qiang. Improved multi-pattern matching algorithm[J]. Journal of Xidian University, 2014, 41(6): 174-180. DOI: 10.3969/j.issn.1001-2400.2014.06.029
Authors:CHU Yanjie  LI Yunzhao  WEI Qiang
Affiliation: (Key Lab. of Science and Technology on Blind Signal Processing, Chengdu  610041, China)
Abstract:To resolve the problem that when the number of rules is large and the length of the shortest rule is short, the performance of the WM algorithm will become less efficient, the paper analyzes the WM algorithm and an improved algorithm named the QWM algorithm, then proposes a new algorithm—the SWM algorithm. The new algorithm uses the idea of the sub pattern set and optimizes the shifting and affirming method. To use the SWM algorithm in domain name filtering, a new hash function and a new matching order are designed specially. The results in domain name filtering indicate that the SWM algorithm's matching time is about 8.9%~11.6% that of the WM algorithm when the number of patterns is more than 10000. The SWM algorithm can improve the speed of matching when the scale of the pattern is large.
Keywords:pattern matching  string matching  Wu-Manber algorithm  subest Wu-Manber algorithm  domain name filtering  
点击此处可从《西安电子科技大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《西安电子科技大学学报(自然科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号