Multi-Pattern Matching Algorithm with Wildcards Based on Bit-Parallelism

来源 :Wuhan University Journal of Natural Sciences | 被引量 : 0次 | 上传用户:eton8816
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Multi-pattern matching with wildcards is a problem of finding the occurrence of all patterns in a pattern set{p1,(43),pk}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. Multi-pattern matching with wildcards is a problem of finding the occurrence of all patterns in a pattern set {p1, (43), pk} 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, di s symbol distribution over k patterns, m is pattern length, andσis alphabet size.
其他文献
本研究分为二部分:   第一部分、黔产SNT提取物的制备   目的:(1)研究黔产SNT的提取工艺,并对其提取工艺进行优化,确定黔产SNT的最佳提取工艺参数,制备其提取物,包括总提取物
五甲基槲皮素(pentamethylquercetin,PMQ)是一种多甲氧基黄酮类化合物,前期研究已证实PMQ可在多种肥胖小鼠模型中改善糖脂代谢、缓解胰岛素抵抗,其作用机制尚待深入研究。氧化应激对胰岛素抵抗的发生发展具有重要影响。抗氧化应激蛋白Sestrin2促进Keap1自噬降解,释放Nrf2入核,改善氧化应激。Kelch样ECH相关蛋白-1(Kelch-like ECH-associated
Small or smooth cloned regions are difficult to be detected in image copy-move forgery(CMF)detection. Aiming at this problem,an effective method based on image segmentation and swarm intelligent(SI)al
期刊
The service recommendation mechanism as a key enabling technology that provides users with more proactive and personalized service is one of the important resea
期刊
期刊
Aggregate signature can aggregate n signatures on n messages from n signers into a single signature that convinces any verifier that n signers sign the n messag
期刊
木兰科五味子属植物翼梗五味子Schisandra henryi Clarke.var.henryi的藤茎为土家族药香血藤的来源之一,有通经活血、强筋壮骨之效,用于治疗类风湿关节炎等症。本文从翼梗五味子乙酸乙酯与正丁醇部位中分离、鉴定了12个化合物,其中,化合物1[(1α,4β,6α)-cis-gorgonane-1,4,11-triol]为新化合物。化合物1-3均首次从该属植物中分得,化合物1-1
In this paper,we present the first ciphertext-policy attribute-based encryption(CP-ABE)scheme for polynomial-size general circuits based on bilinear maps which
期刊