English

The complexity of the Multiple Pattern Matching Problem for random strings

Data Structures and Algorithms 2017-07-03 v2

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 ss. If rmr_m is the number of words of length mm in the dictionary, and ϕ(r)=maxmln(smrm)/m\phi(r) = \max_m \ln(s\, m\, r_m)/m, the complexity rate for the string characters to be read by this algorithm is at most κUBϕ(r)\kappa_{{}_\textrm{UB}}\, \phi(r) for some constant κUB\kappa_{{}_\textrm{UB}}. 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 κLBϕ(r)\kappa_{{}_\textrm{LB}}\, \phi(r). This proves the optimality of the algorithm, improving and correcting previous claims.

Keywords

Cite

@article{arxiv.1706.04928,
  title  = {The complexity of the Multiple Pattern Matching Problem for random strings},
  author = {Frédérique Bassino and Tsinjo Rakotoarimalala and Andrea Sportiello},
  journal= {arXiv preprint arXiv:1706.04928},
  year   = {2017}
}

Comments

25 pages, 4 figures

R2 v1 2026-06-22T20:19:53.289Z