Papers
Topics
Authors
Recent
Search
2000 character limit reached

Approximate Circular Pattern Matching

Published 18 Aug 2022 in cs.DS | (2208.08915v2)

Abstract: We consider approximate circular pattern matching (CPM, in short) under the Hamming and edit distance, in which we are given a length-nn text TT, a length-mm pattern PP, and a threshold $k&gt;0$, and we are to report all starting positions of fragments of TT (called occurrences) that are at distance at most kk from some cyclic rotation of PP. In the decision version of the problem, we are to check if any such occurrence exists. All previous results for approximate CPM were either average-case upper bounds or heuristics, except for the work of Charalampopoulos et al. [CKP<sup>+<sup>+, JCSS'21], who considered only the Hamming distance. For the reporting version of the approximate CPM problem, under the Hamming distance we improve upon the main algorithm of [CKP<sup>+<sup>+, JCSS'21] from O(n+(n/m)k<sup>4){\cal O}(n+(n/m)\cdot k<sup>4) to O(n+(n/m)k<sup>3){\cal O}(n+(n/m)\cdot k<sup>3) time; for the edit distance, we give an O(nk<sup>2){\cal O}(nk<sup>2)-time algorithm. We also consider the decision version of the approximate CPM problem. Under the Hamming distance, we obtain an O(n+(n/m)k<sup>2log</sup>k/loglogk){\cal O}(n+(n/m)\cdot k<sup>2\log</sup> k/\log\log k)-time algorithm, which nearly matches the algorithm by Chan et al. [CGKKP, STOC'20] for the standard counterpart of the problem. Under the edit distance, the O(nklog<sup>2</sup>k){\cal O}(nk\log<sup>2</sup> k) running time of our algorithm nearly matches the O(nk){\cal O}(nk) running time of the Landau-Vishkin algorithm [LV, J. Algorithms'89]. As a stepping stone, we propose an O(nklog<sup>2</sup>k){\cal O}(nk\log<sup>2</sup> k)-time algorithm for the Longest Prefix $k&#39;$-Approximate Match problem, proposed by Landau et al. [LMS, SICOMP'98], for all $k&#39;\in {1,\dots,k}$. We give a conditional lower bound that suggests a polynomial separation between approximate CPM under the Hamming distance over the binary alphabet and its non-circular counterpart. We also show that a strongly subquadratic-time algorithm for the decision version of approximate CPM under edit distance would refute SETH.

Citations (7)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.