English

Computing MEMs and Relatives on Repetitive Text Collections

Data Structures and Algorithms 2023-09-06 v5

Abstract

We consider the problem of computing the Maximal Exact Matches (MEMs) of a given pattern P[1..m]P[1 .. m] on a large repetitive text collection T[1..n]T[1 .. n], which is represented as a (hopefully much smaller) run-length context-free grammar of size grlg_{rl}. We show that the problem can be solved in time O(m2logϵn)O(m^2 \log^\epsilon n), for any constant ϵ>0\epsilon > 0, on a data structure of size O(grl)O(g_{rl}). Further, on a locally consistent grammar of size O(δlognδ)O(\delta\log\frac{n}{\delta}), the time decreases to O(mlogm(logm+logϵn))O(m\log m(\log m + \log^\epsilon n)). The value δ\delta is a function of the substring complexity of TT and Ω(δlognδ)\Omega(\delta\log\frac{n}{\delta}) is a tight lower bound on the compressibility of repetitive texts TT, so our structure has optimal size in terms of nn and δ\delta. We extend our results to several related problems, such as finding kk-MEMs, MUMs, rare MEMs, and applications.

Keywords

Cite

@article{arxiv.2210.09914,
  title  = {Computing MEMs and Relatives on Repetitive Text Collections},
  author = {Gonzalo Navarro},
  journal= {arXiv preprint arXiv:2210.09914},
  year   = {2023}
}
R2 v1 2026-06-28T03:55:24.082Z