一种面向PDF文本内容审查的高效多模式匹配算法
多模式匹配算法是网络入侵检测和内容过滤的核心算法。针对Wu-Manber多模式匹配算法所存在的匹配效率低、跳转距离较小的问题,结合PDF文本内容的编码规则,提出了一种适用于中文PDF文本内容审查的Wu-Manber改进算法。该算法使用布隆过滤器提取模式串关键信息,同时结合双重哈希和PDF文本编码规则,减少了无谓的匹配次数,加大了跳转幅度,从而提升了PDF文本的匹配性能。实验结果表明,这种改进算法在PDF文本审查中的匹配速率有较大提升,尤其当最短模式串较长且模式串规模较大时速度可以提升一倍以上。
Multi-pattern matching plays an important role in network intrusion detection and content filtering. To solve the deficiency of Wu-Manber multi-pattern matching algorithm in terms of the achieved matching efficiency and jump distance, propose an improved Wu-Manber algorithm for Chinese PDF document content revciew on the basis of the coding formats of PDF document content. By employing the Bloom filter to extract the curcial information of the pattern string, and exploiting the double hash and PDF document encoding rules, it is shown that the proposed improved algorithm is able to reduce the number of unnecessary matches and increase the jump distance, thus improving the matching efficiency for the content retrieval of PDF document. The practical experimental results confirms the improved matching efficiency for PDF document. When the shortest mode string is long and the mode string size is large, the matching efficiency can be even doubled.
刘邦国、陈庆春、类先富
计算技术、计算机技术
多模式匹配Wu-Manber算法PDF文本编码布隆过滤器
刘邦国,陈庆春,类先富.一种面向PDF文本内容审查的高效多模式匹配算法[EB/OL].(2019-05-10)[2025-08-02].https://chinaxiv.org/abs/201905.00037.点此复制
评论