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


Multi-pattern matching algorithm with wildcards based on bit-parallelism
Authors:Ahmed A F Saif  Liang Hu  Jianfeng Chu
Institution:1.College of Computer Science and Technology,Jilin University,Jilin,China
Abstract:Multi-pattern matching with wildcards is a problem of finding the occurrence of all patterns in a pattern set {p 1, …, p k } in a given text t. If the percentage of wildcards in pattern set is not high, this problem can be solved using finite automata. We introduce a multi-pattern matching algorithm with a fixed number of wildcards to overcome the high percentage of the occurrence of wildcards in patterns. In our proposed method, patterns are matched as bit patterns using a sliding window approach. The window is a bit window that slides along the given text, matching against stored bit patterns. Matching process is executed using bit wise operations. The experimental results demonstrate that the percentage of wildcard occurrence does not affect the proposed algorithm’s performance and the proposed algorithm is more efficient than the algorithms based on the fast Fourier transform. The proposed algorithm is simple to implement and runs efficiently in O(n + d(n/σ)(m/w)) time, where n is text length, d is symbol distribution over k patterns, m is pattern length, and σ is alphabet size.
Keywords:
本文献已被 CNKI SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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