Abstract
In the k-Edit Circular Pattern Matching (k-Edit CPM) problem, we are given a length-n text T, a length-m pattern P, and a positive integer threshold k, and we are to report all starting positions of the substrings of T that are at edit distance at most k from some cyclic rotation of P. In the decision version of the problem, we are to check if any such substring exists. Very recently, Charalampopoulos et al. [ESA 2022] presented O(nk2)-time and O(nk log3 k)-time solutions for the reporting and decision versions of k-Edit CPM, respectively. Here, we show that the reporting and decision versions of k-Edit CPM can be solved in O(n + (n/m) k6) time and O(n + (n/m) k5 log3 k) time, respectively, thus obtaining the first algorithms with a complexity of the type O(n + (n/m) poly(k)) for this problem. Notably, our algorithms run in O(n) time when m = Ω(k6) and are superior to the previous respective solutions when m = ω(k4). We provide a meta-algorithm that yields efficient algorithms in several other interesting settings, such as when the strings are given in a compressed form (as straight-line programs), when the strings are dynamic, or when we have a quantum computer. We obtain our solutions by exploiting the structure of approximate circular occurrences of P in T, when T is relatively short w.r.t. P. Roughly speaking, either the starting positions of approximate occurrences of rotations of P form O(k4) intervals that can be computed efficiently, or some rotation of P is almost periodic (is at a small edit distance from a string with small period). Dealing with the almost periodic case is the most technically demanding part of this work; we tackle it using properties of locked fragments (originating from [Cole and Hariharan, SICOMP 2002]).
| Original language | English |
|---|---|
| Title of host publication | 41st International Symposium on Theoretical Aspects of Computer Science (STACS 2024) |
| Subtitle of host publication | [Proceedings] |
| Editors | Olaf Beyersdorff, Mamadou Moustapha Kante, Orna Kupferman, Daniel Lokshtanov |
| Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
| Chapter | 24 |
| Pages | 1-22 |
| Number of pages | 22 |
| ISBN (Electronic) | 9783959773119 |
| DOIs | |
| Publication status | Published - 2024 |
| Event | 41st International Symposium on Theoretical Aspects of Computer Science, STACS 2024 - Clermont-Ferrand, France Duration: 12 Mar 2024 → 14 Mar 2024 |
Publication series
| Name | Leibniz International Proceedings in Informatics, LIPIcs |
|---|---|
| Volume | 289 |
| ISSN (Print) | 1868-8969 |
Conference
| Conference | 41st International Symposium on Theoretical Aspects of Computer Science, STACS 2024 |
|---|---|
| Country/Territory | France |
| City | Clermont-Ferrand |
| Period | 12/03/24 → 14/03/24 |
Bibliographical note
Publisher Copyright:© Panagiotis Charalampopoulos, Solon P. Pissis, Jakub Radoszewski, Wojciech Rytter, Tomasz Waleń, and Wiktor Zuba; licensed under Creative Commons License CC-BY 4.0.
Keywords
- approximate pattern matching
- circular pattern matching
- edit distance
Fingerprint
Dive into the research topics of 'Approximate Circular Pattern Matching Under Edit Distance'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver