English

Vigemers: on the number of $k$-mers sharing the same XOR-based minimizer

Discrete Mathematics 2026-02-04 v1 Data Structures and Algorithms Combinatorics

Abstract

In bioinformatics, minimizers have become an inescapable method for handling kk-mers (words of fixed size kk) extracted from DNA or RNA sequencing, whether for sampling, storage, querying or partitioning. According to some fixed order on mm-mers (m<km<k), the minimizer of a kk-mer is defined as its smallest mm-mer -- and acts as its fingerprint. Although minimizers are widely used for partitioning purposes, there is almost no theoretical work on the quality of the resulting partitions. For instance, it has been known for decades that the lexicographic order empirically leads to highly unbalanced partitions that are unusable in practice, but it was not until very recently that this observation was theoretically substantiated. The rejection of the lexicographic order has led the community to resort to (pseudo-)random orders using hash functions. In this work, we extend the theoretical results relating to the partitions obtained by the lexicographical order, departing from it to a (exponentially) large family of hash functions, namely where the mm-mers are XORed against a fixed key. More precisely, provided a key γ\gamma and a mm-mer ww, we investigate the function that counts how many kk-mers admit ww as their minimizer (i.e. where wγw\oplus\gamma is minimal among all mm-mers of said kk-mers). This number, denoted by πkγ(w)\pi_k^{\gamma}(w), represents the maximum size of the bucket associated with ww, if all possible kk-mers were to be seen and partitioned. We adapt the (lexicographical order) method of the literature to our framework and propose combinatorial equations that allow to compute, using dynamic programming, πkγ(w)\pi_k^{\gamma}(w) in O(km2)O(km^2) time and O(km)O(km) space.

Keywords

Cite

@article{arxiv.2602.03337,
  title  = {Vigemers: on the number of $k$-mers sharing the same XOR-based minimizer},
  author = {Florian Ingels and Antoine Limasset and Camille Marchet and Mikaël Salson},
  journal= {arXiv preprint arXiv:2602.03337},
  year   = {2026}
}