About

Log in?

DTU users get better search results including licensed content and discounts on order fees.

Anyone can log in and get personalized features such as favorites, tags and feeds.

Log in as DTU user Log in as non-DTU user No thanks

DTU Findit

Conference paper · Book chapter

Dynamic and approximate pattern matching in 2D

From

University of Bristol1

Department of Applied Mathematics and Computer Science, Technical University of Denmark2

Algorithms and Logic, Department of Applied Mathematics and Computer Science, Technical University of Denmark3

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(log2 n) time and queries in O(log2 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(log m + H) time, where H is the relevant Hamming distance. - Extending this work to allow approximation, we give an efficient algorithm which returns a (1+ε) approximation of the Hamming distance at a given location in O(ε−2 log2 m log 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 + ε)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 preprocessed in O(n2(4/3+1/(1+ε)) log3 n) time into a data structure of size O(n2(1+1/(1+ε))) with query time O(n2(1/(1+ε))m2).

Language: English
Publisher: Springer
Year: 2016
Pages: 133-144
Proceedings: 23rd International Symposium on String Processing and Information RetrievalInternational Symposium on String Processing and Information Retrieval
Series: Lecture Notes in Computer Science
ISBN: 331946048X , 331946048x , 3319460498 , 9783319460482 and 9783319460499
ISSN: 03029743 and 16113349
Types: Conference paper and Book chapter
DOI: 10.1007/978-3-319-46049-9_13

DTU users get better search results including licensed content and discounts on order fees.

Log in as DTU user

Access

Analysis