On the Average-case Complexity of Pattern Matching with Wildcards
Abstract
Pattern matching with wildcards is the problem of finding all factors of a text of length that match a pattern of length , 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 \textit{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.
Cite
@article{arxiv.1407.0950,
title = {On the Average-case Complexity of Pattern Matching with Wildcards},
author = {Carl Barton},
journal= {arXiv preprint arXiv:1407.0950},
year = {2016}
}