Locality-Preserving Minimal Perfect Hashing of k-mers - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail (Preprint/Prepublication) Année : 2022

Locality-Preserving Minimal Perfect Hashing of k-mers

Résumé

Minimal perfect hashing is the problem of mapping a static set of n distinct keys into the address space {1,. .. , n} bijectively. It is well-known that n log 2 e bits are necessary to specify a minimal perfect hash function f , when no additional knowledge of the input keys is to be used. However, it is often the case in practice that the input keys have intrinsic relationships that we can exploit to lower the bit complexity of f. For example, consider a string and the set of all its distinct sub-strings of length k-the so-called k-mers of the string. Two consecutive k-mers in the string have a strong intrinsic relationship in that they share an overlap of k − 1 symbols. Hence, it seems intuitively possible to beat the classic log 2 e bits/key barrier in this case. Moreover, we would like f to map consecutive k-mers to consecutive addresses, as to preserve as much as possible the relationships between the keys also in the co-domain {1,. .. , n}. This is a useful feature in practice as it guarantees a certain degree of locality of reference for f , resulting in a better evaluation time when querying consecutive k-mers from a string. Motivated by these premises, we initiate the study of a new type of locality-preserving minimal perfect hash functions designed for k-mers extracted consecutively from a string (or collections of strings). We show a theoretic lower bound on the bit complexity of any (1 − ε)-locality-preserving MPHF, for a parameter 0 < ε < 1. The complexity is lower than n log 2 e bits for sufficiently small ε. We propose a construction that approaches the theoretic minimum space for growing k and present a practical implementation of the method. Lastly, we demonstrate the practical usefulness of our construction through experimentation: the functions can be several times smaller and even faster to query than the most efficient, albeit "general-purpose", minimal perfect hash functions.
Fichier principal
Vignette du fichier
2210.13097.pdf (2.42 Mo) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03832901 , version 1 (28-10-2022)

Identifiants

  • HAL Id : hal-03832901 , version 1

Citer

Giulio Ermanno Pibiri, Yoshihiro Shibuya, Antoine Limasset. Locality-Preserving Minimal Perfect Hashing of k-mers. 2022. ⟨hal-03832901⟩
8 Consultations
40 Téléchargements

Partager

Gmail Mastodon Facebook X LinkedIn More