期刊文献+

短规则有效的快速多模式匹配算法 被引量:7

Short-rule-efficient rapid multi-pattern matching algorithm
下载PDF
导出
摘要 随着网络技术快速发展,多模式匹配算法所处理的模式集合数目呈爆炸式增长且模式长度不统一,传统的多模式匹配算法已无法有效适应新的模式集合:不同的模式集合,同一算法呈现的性能差异明显。针对模式长度不等且分布不均匀的模式集合,提出一种改进WM的多模式匹配算法(MWM),将模式集合分为长短两个集合并构造各自的长短SHIFT表,辅助WM算法原有SHIFT表验证匹配效果,匹配过程由单一线程完成。该算法不仅减少了模式验证次数,而且提高了算法的平均跳转距离。实验结果表明,所提出的多模式匹配算法(MWM)在模式长度不等且分布不均匀的模式集合下表现出更优的性能,随着模式集合的数目增多,性能提升越明显。在模式集合数目达到100 000时,相比WM算法,该算法性能提升达到了40%。 With the rapid development of network technology,the number of pattern,used in multi-pattern matching algorithms,have experienced explosive growth in recent years,and the length of pattern is not uniform.Traditional multi-patternmatching algorithm cannot meet the newest pattern sets:the characteristic of pattern set plays largely influences onthe performance of algorithms.A novel algorithm enhanced from the Wu-Manber(WM)algorithm,namely the ModifiedWu-Manber(MWM)algorithm,is responsible for pattern set which has variant length of pattern and uneven distribution.The new algorithm partitions the pattern set into long and short subset and constructs respective SHIFT table in order tohelp the original SHIFT built in WM to verify whether exists pattern matching more deeply under a single thread program.In fact,the new algorithm not only reduces the verification frequency but also increases the average shift distance.Experiments show that the improved multi-pattern algorithm has better performance to deal with the non-uniform distributionand variant length of pattern set,in addition,the larger the pattern set,the better improved performance with new algorithm.Especially,when the number of pattern is100000,it improves performance by more than40percent.
作者 夏念 嵩天 XIA Nian;SONG Tian(School of Computer, Beijing Institute of Technology University, Beijing 100081, China)
出处 《计算机工程与应用》 CSCD 北大核心 2017年第7期1-8,共8页 Computer Engineering and Applications
基金 国家自然科学基金(No.61672101 No.61272510)
关键词 模式匹配 字符串匹配 WU-MANBER算法 pattern matching string matching Wu-Manber algorithm
  • 相关文献

参考文献3

二级参考文献19

  • 1王素琴,邹旭楷.一种优化的并行汉字/字符串匹配算法[J].中文信息学报,1995,9(1):49-53. 被引量:4
  • 2孙晓山,王强,关毅,王晓龙.一种改进的Wu-Manber多模式匹配算法及应用[J].中文信息学报,2006,20(2):47-52. 被引量:10
  • 3A. V. Aho and M. J. Corasick. Efficient string matching: an aid to bibliographic search[C]//Communications of the ACM,1975,18(6) : 333-340
  • 4B. Commentz_Walter. A string matching algorithm fast on average[R]. Proceedings of the 6^th International colloquium on Automata, Languages and Programming, number 71 in Leture Notes in Computer Science, Springer_Verlag,1974 : 118-132.
  • 5S. Wu and V. Manber. A fast algorithm for multipattern searching[R]. Report TR-94-17,Department of Computer Science. University of Arizona, Tucson, AZ, 1994.
  • 6Gonzalo Navarro and Mathieu Raffinot,中国科学院计算技术研究所网络信息安全研究组译.Flexible Pattern Matching in strings :柔性字符串匹配[M].北京:电子工业出版社,2007-3..
  • 7R. S. Boyer and J. S. Moore. A fast string searching algorithm[C]//Communications of the ACM, 1977, 20(10) : 762-772,.
  • 8Boyer RS, Moore JS. A fast string searching algorithm[ M]. Communications of the ACM20, 1977. 762- 772.
  • 9Sun W, Manber U. A Fast Algorithm For Multi-pattern Searching[ D]. The Computer Science Department of The University of Arizona, 1994.
  • 10Sun W, Manber U. Agrep-A Fast Approximate Pattem-matching Tool[M]. Usenix Winter Technical Conference, 1992.

共引文献34

同被引文献52

引证文献7

二级引证文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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