English

Expected Density of Random Minimizers

Combinatorics 2024-11-27 v2 Genomics

Abstract

Minimizer schemes, or just minimizers, are a very important computational primitive in sampling and sketching biological strings. Assuming a fixed alphabet of size σ\sigma, a minimizer is defined by two integers k,w2k,w\ge2 and a total 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 the expected density of chosen kk-mers among all kk-mers in a random infinite σ\sigma-ary string. Random minimizers, in which the order ρ\rho is chosen uniformly at random, are often used in applications. However, little is known about their expected density DRσ(k,w)\mathcal{DR}_\sigma(k,w) besides the fact that it is close to 2w+1\frac{2}{w+1} unless wkw\gg k. We first show that DRσ(k,w)\mathcal{DR}_\sigma(k,w) can be computed in O(kσk+w)O(k\sigma^{k+w}) time. Then we attend to the case wkw\le k and present a formula that allows one to compute DRσ(k,w)\mathcal{DR}_\sigma(k,w) in just O(wlogw)O(w \log w) time. Further, we describe the behaviour of DRσ(k,w)\mathcal{DR}_\sigma(k,w) in this case, establishing the connection between DRσ(k,w)\mathcal{DR}_\sigma(k,w), DRσ(k+1,w)\mathcal{DR}_\sigma(k+1,w), and DRσ(k,w+1)\mathcal{DR}_\sigma(k,w+1). In particular, we show that DRσ(k,w)<2w+1\mathcal{DR}_\sigma(k,w)<\frac{2}{w+1} (by a tiny margin) unless ww is small. We conclude with some partial results and conjectures for the case w>kw>k.

Keywords

Cite

@article{arxiv.2410.16968,
  title  = {Expected Density of Random Minimizers},
  author = {Shay Golan and Arseny M. Shur},
  journal= {arXiv preprint arXiv:2410.16968},
  year   = {2024}
}

Comments

Accepted to SOFSEM 2025

R2 v1 2026-06-28T19:31:25.634Z