Abstract | ||
---|---|---|
We consider dynamic and online variants of 2D pattern matching between an mxm pattern and an nxn text. All the algorithms we give are randomised and give correct outputs with at least constant probability. - For dynamic 2D exact matching where updates change individual symbols in the text, we show updates can be performed in O(log(2) n) time and queries in O(log(2) m) time. - We then consider a model where an update is a new 2D pattern and a query is a location in the text. For this setting we show that Hamming distance queries can be answered in O(logm + H) time, where H is the relevant Hamming distance. - Extending this work to allow approximation, we give an efficient algorithm which returns a (1+epsilon) approximation of the Hamming distance at a given location in O(epsilon(-2) log(2) mlog log n) time. Finally, we consider a different setting inspired by previous work on locality sensitive hashing (LSH). Given a threshold k and after building the 2D text index and receiving a 2D query pattern, we must output a location where the Hamming distance is at most (1 + epsilon)k as long as there exists a location where the Hamming distance is at most k. - For our LSH inspired 2D indexing problem, the text can be pre-processed in O(n(2(4/3+1/(1+epsilon))) log(3) n) time into a data structure of size O(n(2(1+ 1/(1+ epsilon)))) with query time O(n(2(1/(1+ epsilon))) m(2)). |
Year | DOI | Venue |
---|---|---|
2016 | 10.1007/978-3-319-46049-9_13 | Lecture Notes in Computer Science |
Field | DocType | Volume |
Combinatorics,Computer science,Approximate string matching,Hash function,Suffix tree,Pattern matching | Conference | 9954 |
ISSN | Citations | PageRank |
0302-9743 | 0 | 0.34 |
References | Authors | |
13 | 4 |
Name | Order | Citations | PageRank |
---|---|---|---|
Raphaël Clifford | 1 | 268 | 28.57 |
Allyx Fontaine | 2 | 10 | 1.56 |
Tatiana A. Starikovskaya | 3 | 71 | 14.95 |
Hjalte Wedel Vildhøj | 4 | 61 | 6.84 |