English

MEM-finding with run-length compressed strings

Data Structures and Algorithms 2026-08-02 v1

Abstract

We show how to store a text T[1..n]T [1..n] consisting of ρT\rho_T runs in O(ρT+χ)O (\rho_T + \chi) space, where χ\chi is the size of the smallest suffixient set for TT, such that when we are given a pattern P[1..m]P [1..m] consisting of ρP\rho_P runs we can find the maximal exact matches (MEMs) of PP with respect to TT in O(ρPlogm)O (\rho_P \log m) time plus constant time for each edge we would fully or partially descend in the suffix tree for TT while finding those MEMs. We then adapt and optimize our result to finding set-maximal exact matches (SMEMs) of query haplotypes with respect to stored haplotype panels.

Cite

@article{arxiv.2608.01387,
  title  = {MEM-finding with run-length compressed strings},
  author = {Paola Bonizzoni and Davide Cozzi and Travis Gagie and Younan Gao and Ragnar Groot Koerkamp},
  journal= {arXiv preprint arXiv:2608.01387},
  year   = {2026}
}