2014/07/03 by Carl Barton, Barton, Carl
Computer Science · #Algorithms and Data Compression #Natural Language Processing Techniques #cs.CC #cs.DS #semigroups and automata theory
paper · pdf · doi:10.48550/arxiv.1407.0950
arxiv created 2016/01/14 · arxiv updated 2016/01/15
Pattern matching with wildcards is the problem of finding all factors of a text t of length n that match a pattern x of length m, where wildcards (characters that match everything) may be present. In this paper we present a number of fast average-case algorithms for pattern matching where wildcards are restricted to either the pattern or the text, however, the results are easily adapted to the case where wildcards are allowed in both. We analyse the average-case complexity of these algorithms and show the first non-trivial time bounds. These are the first results on the average-case complexity of pattern matching with wildcards which, as a by product, provide with first provable separation in complexity between exact pattern matching and pattern matching with wildcards in the word RAM model.