English

The k-mappability problem revisited

Data Structures and Algorithms 2021-06-15 v1

Abstract

The kk-mappability problem has two integers parameters mm and kk. For every subword of size mm in a text SS, we wish to report the number of indices in SS in which the word occurs with at most kk mismatches. The problem was lately tackled by Alzamel et al. For a text with constant alphabet Σ\Sigma and kO(1)k \in O(1), they present an algorithm with linear space and O(nlogk+1n)O(n\log^{k+1}n) time. For the case in which k=1k = 1 and a constant size alphabet, a faster algorithm with linear space and O(nlog(n)loglog(n))O(n\log(n)\log\log(n)) time was presented in a 2020 paper by Alzamel et al. In this work, we enhance the techniques of Alzamel et al.'s 2020 paper to obtain an algorithm with linear space and O(nlog(n))O(n \log(n)) time for k=1k = 1. Our algorithm removes the constraint of the alphabet being of constant size. We also present linear algorithms for the case of k=1k=1, ΣO(1)|\Sigma|\in O(1) and m=Ω(n)m=\Omega(\sqrt{n}).

Keywords

Cite

@article{arxiv.2106.07017,
  title  = {The k-mappability problem revisited},
  author = {Amihood Amir and Itai Boneh and Eitan Kondratovsky},
  journal= {arXiv preprint arXiv:2106.07017},
  year   = {2021}
}
R2 v1 2026-06-24T03:08:49.884Z