scholarly journals Exploiting word-level parallelism for fast convolutions and their applications in approximate string matching

2013 ◽  
Vol 34 (1) ◽  
pp. 38-51 ◽  
Author(s):  
Kimmo Fredriksson ◽  
Szymon Grabowski
2017 ◽  
Vol 28 (03) ◽  
pp. 289-307
Author(s):  
Meng Zhang

We give faster methods to compute discrete convolutions. We assume that all the inputs are packed, that is, strings are packed into words such that each word is packed with [Formula: see text] characters, where w is the length of a machine word and ∑ is the alphabet. The output of our methods is also packed, that is, each word of the output contains more than one element of the result. The approach is based on the word-level parallelism and the FFT. Given two strings with m and n ( n ≥ m ) characters that are packed into [Formula: see text] and [Formula: see text] words respectively, the convolution of them can be computed in [Formula: see text] time, where [Formula: see text] by the FFT. Experiments show that our method is three times faster than the convolution using the standard trick. We consider the problem of pattern matching with wildcards on packed strings. It finds all the occurrences of a pattern in a text, both of which may contain wildcards. By the convolution of packed strings, we present algorithms that are faster than the previous [Formula: see text]-time algorithm, where m is the length of the pattern and n the length of the text. The algorithm runs in [Formula: see text] time, where occ is the number of occurrences of the pattern in the input. Experiments show that the method is faster than the bit-parallel wildcard matching algorithm for long patterns.


Algorithmica ◽  
1994 ◽  
Vol 12 (4-5) ◽  
pp. 327-344 ◽  
Author(s):  
W. I. Chang ◽  
E. L. Lawler

Author(s):  
Hanmei E. ◽  
Yunqing Yu ◽  
Kensuke Baba ◽  
Kazuaki Murakami

Sign in / Sign up

Export Citation Format

Share Document