Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
110 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Circular Pattern Matching with $k$ Mismatches (1907.01815v2)

Published 3 Jul 2019 in cs.DS

Abstract: The $k$-mismatch problem consists in computing the Hamming distance between a pattern $P$ of length $m$ and every length-$m$ substring of a text $T$ of length $n$, if this distance is no more than $k$. In many real-world applications, any cyclic rotation of $P$ is a relevant pattern, and thus one is interested in computing the minimal distance of every length-$m$ substring of $T$ and any cyclic rotation of $P$. This is the circular pattern matching with $k$ mismatches ($k$-CPM) problem. A multitude of papers have been devoted to solving this problem but, to the best of our knowledge, only average-case upper bounds are known. In this paper, we present the first non-trivial worst-case upper bounds for the $k$-CPM problem. Specifically, we show an $O(nk)$-time algorithm and an $O(n+\frac{n}{m}\,k4)$-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., SODA 2019]. A preliminary version of this work appeared at FCT 2019. In this version we improve the time complexity of the main algorithm from $O(n+\frac{n}{m}\,k5)$ to $O(n+\frac{n}{m}\,k4)$.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Panagiotis Charalampopoulos (34 papers)
  2. Tomasz Kociumaka (97 papers)
  3. Solon P. Pissis (52 papers)
  4. Jakub Radoszewski (52 papers)
  5. Wojciech Rytter (39 papers)
  6. Juliusz Straszyński (9 papers)
  7. Tomasz Waleń (32 papers)
  8. Wiktor Zuba (18 papers)
Citations (11)

Summary

We haven't generated a summary for this paper yet.