Streaming Pattern Matching with d Wildcards
Abstract
In the pattern matching with wildcards problem one is given a text of length and a pattern of length that contains wildcard characters, each denoted by a special symbol . A wildcard character matches any other character. The goal is to establish for each -length substring of whether it matches . In the streaming model variant of the pattern matching with wildcards problem the text arrives one character at a time and the goal is to report, before the next character arrives, if the last characters match while using only words of space. In this paper we introduce two new algorithms for the wildcard pattern matching problem in the streaming model. The first is a randomized Monte Carlo algorithm that is parameterized by a constant . This algorithm uses amortized time per character and words of space. The second algorithm, which is used as a black box in the first algorithm, is a randomized Monte Carlo algorithm which uses worst-case time per character and words of space.
Keywords
Cite
@article{arxiv.1704.01646,
title = {Streaming Pattern Matching with d Wildcards},
author = {Shay Golan and Tsvi Kopelowitz and Ely Porat},
journal= {arXiv preprint arXiv:1704.01646},
year = {2020}
}
Comments
Extended abstract appeared in ESA 2016