קלים יפרמנקו

אקדמי בכיר

A black box for online approximate pattern matching

Raphaël Clifford, Klim Efremenko, Benny Porat, Ely Porat

We present a deterministic black box solution for online approximate matching. Given a pattern of length m and a streaming text of length n that arrives one character at a time, the task is to report the distance between the pattern and a sliding window of the text as soon as the new character arrives. Our solution requires O(Σj=1log2mT(n,2 j-1)/n) time for each input character, where T(n,m) is the total running time of the best offline algorithm. The types of approximation that are supported include exact matching with wildcards, matching under the Hamming norm, approximating the Hamming norm, k-mismatch and numerical measures such as the L2 and L1 norms. For these examples, the resulting online algorithms take O(log2m), O(Σmlogm), O(log 2m/ε2), O(Σklogklogm), O(log2m) and O(Σmlogm) time per character, respectively. The space overhead is linear in the pattern size, which we show is optimal for any deterministic algorithm.

שפת פרסום אנגלית
דפים 731-736
כתב עת Information and Computation
כרך 209
נושא מספר 4
סטטוס פרסום פורסם - 01.04.2011

ASJC Scopus subject areas

Theoretical Computer Science
Information Systems
Computer Science Applications
Computational Theory and Mathematics
גישה למסמך
10.1016/j.ic.2010.12.007
קבצים וקישורים אחרים
Link to publication in Scopus