Abstract
We consider the circular pattern matching with k mismatches (k-CPM) problem in which one is to compute the minimal Hamming distance of every length-m substring of T and any cyclic rotation of P, if this distance is no more than k. It is a variation of the well-studied k-mismatch problem. A multitude of papers has been devoted to solving the k-CPM problem, but only average-case upper bounds are known. In this paper, we present the first non-trivial worst-case upper bounds for this problem. Specifically, we show an O(nk)-time algorithm and an [Formula presented]-time algorithm. The latter algorithm applies in an extended way a technique that was very recently developed for the k-mismatch problem Bringmann et al. (2019) [10]. A preliminary version of this work appeared at FCT 2019 [35]. In this version we improve the time complexity of the second algorithm from [Formula presented] to [Formula presented].
Original language | English |
---|---|
Pages (from-to) | 73-85 |
Number of pages | 13 |
Journal | Journal of Computer and System Sciences |
Volume | 115 |
Early online date | 29 Jul 2020 |
DOIs | |
Publication status | Published - Feb 2021 |
Funding
Supported by the ERC grant TOTAL agreement no. 677651, a Studentship from the Faculty of Natural and Mathematical Sciences at King's College London and an A.G. Leventis Foundation Educational Grant.Supported by ISF grants no. 1278/16 and 1926/19, a BSF grant no. 2018364, and an ERC grant MPM (no. 683064) under the EU's Horizon 2020 Research and Innovation Programme.Supported by the ?Algorithms for text processing with errors and uncertainties? project carried out within the HOMING program of the Foundation for Polish Science co-financed by the European Union under the European Regional Development Fund, project no. POIR.04.04.00-00-24BA/16.Supported by the Polish National Science Center, grant no. 2018/31/D/ST6/03991.
Funders | Funder number |
---|---|
EU's Horizon 2020 | |
Faculty of Natural and Mathematical Sciences at King's College London | |
Horizon 2020 Framework Programme | 677651, 683064 |
European Commission | |
European Research Council | |
United States-Israel Binational Science Foundation | 2018364 |
Fundacja na rzecz Nauki Polskiej | |
Israel Science Foundation | 1926/19, 1278/16 |
A.G. Leventis Foundation | |
Narodowe Centrum Nauki | 2018/31/D/ST6/03991 |
European Regional Development Fund | POIR.04.04.00-00-24BA/16 |
Keywords
- Approximate pattern matching
- Circular pattern matching
- k-mismatch problem