English

Minimizing the Minimizers via Alphabet Reordering

Data Structures and Algorithms 2024-05-08 v1

Abstract

Minimizers sampling is one of the most widely-used mechanisms for sampling strings [Roberts et al., Bioinformatics 2004]. Let S=S[1]S[n]S=S[1]\ldots S[n] be a string over a totally ordered alphabet Σ\Sigma. Further let w2w\geq 2 and k1k\geq 1 be two integers. The minimizer of S[i..i+w+k2]S[i\mathinner{.\,.} i+w+k-2] is the smallest position in [i,i+w1][i,i+w-1] where the lexicographically smallest length-kk substring of S[i..i+w+k2]S[i\mathinner{.\,.} i+w+k-2] starts. The set of minimizers over all i[1,nwk+2]i\in[1,n-w-k+2] is the set Mw,k(S)\mathcal{M}_{w,k}(S) of the minimizers of SS. We consider the following basic problem: Given SS, ww, and kk, can we efficiently compute a total order on Σ\Sigma that minimizes Mw,k(S)|\mathcal{M}_{w,k}(S)|? We show that this is unlikely by proving that the problem is NP-hard for any w2w\geq 2 and k1k\geq 1. Our result provides theoretical justification as to why there exist no exact algorithms for minimizing the minimizers samples, while there exists a plethora of heuristics for the same purpose.

Keywords

Cite

@article{arxiv.2405.04052,
  title  = {Minimizing the Minimizers via Alphabet Reordering},
  author = {Hilde Verbeek and Lorraine A. K. Ayad and Grigorios Loukides and Solon P. Pissis},
  journal= {arXiv preprint arXiv:2405.04052},
  year   = {2024}
}

Comments

Extended version of a paper accepted at CPM 2024

R2 v1 2026-06-28T16:19:03.399Z