Answers are grounded in this paper and cite their sources.
Pattern matching is a fundamental problem in theoretical computer science. The algorithms for pattern matching and the study on the statistics of pattern matching have found enormous applications in practical fields. In this paper, we revisit the Markov embedding approach for studying pattern matching in repeated experiments. For any pattern of lengthmover alphabetΣ, we show that the mean and variance of the waiting time of the pattern in iid experiments can be computed in$O(m)$time based on Markov embedding technique, improving over theO(|Σ | · m)andO(m²)naïve bounds. Our method extends to computing thek-th moment of the waiting time, and it extends to computing other related statistics about pattern matching in repeated experiments, and it also extends to the case of Markov dependent experiments.
No takes yet. Share an insight, caveat, or question.
Zhang et al. (2021) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: