Abstract

In the pattern matching with dd wildcards problem one is given a text TT of length nn and a pattern PP of length mm that contains dd wildcard characters, each denoted by a special symbol ′?′'?'. A wildcard character matches any other character. The goal is to establish for each mm-length substring of TT whether it matches PP. In the streaming model variant of the pattern matching with dd wildcards problem the text TT arrives one character at a time and the goal is to report, before the next character arrives, if the last mm characters match PP while using only o(m)o(m) words of space. In this paper we introduce two new algorithms for the dd wildcard pattern matching problem in the streaming model. The first is a randomized Monte Carlo algorithm that is parameterized by a constant 0≤δ≤10\leq δ\leq 1. This algorithm uses O~(d1−δ)\tilde{O}(d^{1-δ}) amortized time per character and O~(d1+δ)\tilde{O}(d^{1+δ}) 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 O(d+log⁡m)O(d+\log m) worst-case time per character and O(dlog⁡m)O(d\log m) words of space.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.