Abstract
Recently, there has been a growing focus in solving approximate pattern matching problems in the streaming model. Of particular interest are the pattern matching with k-mismatches (KMM) problem and the pattern matching with w-wildcards (PMWC) problem. Motivated by reductions from these problems in the streaming model to the dictionary matching problem, this paper focuses on designing algorithms for the dictionary matching problem in the multi-stream model where there are several independent streams of data (as opposed to just one in the streaming model), and the memory complexity of an algorithm is expressed using two quantities: (1) a read-only shared memory storage area which is shared among all the streams, and (2) local stream memory that each stream stores separately. In the dictionary matching problem in the multi-stream model the goal is to preprocess a dictionary D = (P1, P2, . . ., Pd) of d = |D| patterns (strings with maximum length m over alphabet) into a data structure stored in shared memory, so that given multiple independent streaming texts (where characters arrive one at a time) the algorithm reports occurrences of patterns from D in each one of the texts as soon as they appear. We design two e cient algorithms for the dictionary matching problem in the multi-stream model. The first algorithm works when all the patterns in D have the same length m and costs O(d log m) words in shared memory, O(log m log d) words in stream memory, and O(log m) time per character. The second algorithm works for general D, but the time cost per character becomes O(log m + log d log log d). We also demonstrate the usefulness of our first algorithm in solving both the KMM problem and PMWC problem in the streaming model. In particular, we obtain the first almost optimal (up to poly-log factors) algorithm for the PMWC problem in the streaming model. We also design a new algorithm for the KMM problem in the streaming model that, up to poly-log factors, has the same bounds as the most recent results that use di erent techniques. Moreover, for most inputs, our algorithm for KMM is significantly faster on average.
Original language | English |
---|---|
Title of host publication | 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018 |
Editors | Christos Kaklamanis, Daniel Marx, Ioannis Chatzigiannakis, Donald Sannella |
Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
ISBN (Electronic) | 9783959770767 |
DOIs | |
State | Published - 1 Jul 2018 |
Event | 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018 - Prague, Czech Republic Duration: 9 Jul 2018 → 13 Jul 2018 |
Publication series
Name | Leibniz International Proceedings in Informatics, LIPIcs |
---|---|
Volume | 107 |
ISSN (Print) | 1868-8969 |
Conference
Conference | 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018 |
---|---|
Country/Territory | Czech Republic |
City | Prague |
Period | 9/07/18 → 13/07/18 |
Bibliographical note
Publisher Copyright:© Shay Golan, Tsvi Kopelowitz, and Ely Porat;.
Funding
This work is supported in part by ISF grant 1278/16. This project has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement No 683064). ∗ This work is supported in part by ISF grant 1278/16. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 683064).
Funders | Funder number |
---|---|
Horizon 2020 Framework Programme | 683064 |
H2020 European Research Council | |
Iowa Science Foundation | |
European Commission | |
European Geosciences Union | 2020 |
Israel Science Foundation | 1278/16 |
Keywords
- Dictionary matching
- Streaming approximate pattern matching