English

On Minimizers of Minimum Density

Data Structures and Algorithms 2025-06-06 v1 Formal Languages and Automata Theory

Abstract

Minimizers are sampling schemes with numerous applications in computational biology. Assuming a fixed alphabet of size σ\sigma, a minimizer is defined by two integers k,w2k,w\ge2 and a linear order ρ\rho on strings of length kk (also called kk-mers). A string is processed by a sliding window algorithm that chooses, in each window of length w+k1w+k-1, its minimal kk-mer with respect to ρ\rho. A key characteristic of the minimizer is its density, which is the expected frequency of chosen kk-mers among all kk-mers in a random infinite σ\sigma-ary string. Minimizers of smaller density are preferred as they produce smaller samples with the same guarantee: each window is represented by a kk-mer. The problem of finding a minimizer of minimum density for given input parameters (σ,k,w)(\sigma,k,w) has a huge search space of (σk)!(\sigma^k)! and is representable by an ILP of size Θ~(σk+w)\tilde\Theta(\sigma^{k+w}), which has worst-case solution time that is doubly-exponential in (k+w)(k+w) under standard complexity assumptions. We solve this problem in w2σk+O(k)w\cdot 2^{\sigma^k+O(k)} time and provide several additional tricks reducing the practical runtime and search space. As a by-product, we describe an algorithm computing the average density of a minimizer within the same time bound. Then we propose a novel method of studying minimizers via regular languages and show how to find, via the eigenvalue/eigenvector analysis over finite automata, minimizers with the minimal density in the asymptotic case ww\to\infty. Implementing our algorithms, we compute the minimum density minimizers for (σ,k){(2,2),(2,3),(2,4),(2,5),(4,2)}(\sigma,k)\in\{(2,2),(2,3),(2,4),(2,5),(4,2)\} and \textbf{all} w2w\ge 2. The obtained densities are compared against the average density and the theoretical lower bounds, including the new bound presented in this paper.

Keywords

Cite

@article{arxiv.2506.05277,
  title  = {On Minimizers of Minimum Density},
  author = {Arseny Shur},
  journal= {arXiv preprint arXiv:2506.05277},
  year   = {2025}
}

Comments

30 pages, 4 figures

R2 v1 2026-07-01T03:02:00.441Z