paper

The complexity of the Multiple Pattern Matching Problem for random strings

arXiv:1706.04928

Abstract

We generalise a multiple string pattern matching algorithm, recently proposed by Fredriksson and Grabowski [J. Discr. Alg. 7, 2009], to deal with arbitrary dictionaries on an alphabet of size . If is the number of words of length in the dictionary, and , the complexity rate for the string characters to be read by this algorithm is at most for some constant . On the other side, we generalise the classical lower bound of Yao [SIAM J. Comput. 8, 1979], for the problem with a single pattern, to deal with arbitrary dictionaries, and determine it to be at least . This proves the optimality of the algorithm, improving and correcting previous claims.

25 pages, 4 figures