arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.11012cs.DS
收藏

学习型单调最小完美哈希

Learned Monotone Minimal Perfect Hashing

Paolo Ferragina, Hans-Peter Lehmann, Peter Sanders, Giorgio Vinciguerra

AI总结:

本文提出LeMonHash,一种通过PGM索引学习单调映射并用BuRR解决冲突的整数最小完美哈希构建技术,显著降低空间开销并大幅提升查询速度,同时扩展至变长字符串场景。

摘要:

单调最小完美哈希函数(MMPHF)构建在键集合S上,将S中的每个键映射到其秩。对于不在S中的键,该函数返回任意值。其应用范围涵盖数据库、搜索引擎、数据加密以及模式匹配算法。本文描述了LeMonHash,一种为整数构建MMPHF的新技术。LeMonHash的核心思想出奇地简单且有效:我们通过一个有误差界的分段线性模型(PGM索引)学习从键到其秩的单调映射,然后通过在一个检索数据结构(BuRR)中关联小整数来解决可能出现在映射到相同秩估计的键之间的冲突。在合成随机数据集上,LeMonHash比下一个更大的竞争对手少用34%的空间,同时实现约16倍的查询加速。在真实世界数据集上,其空间使用非常接近或远优于最佳竞争对手,同时实现比下一个更大的竞争对手快至19倍的查询。就LeMonHash的构建而言,与空间使用次优的竞争对手相比,我们获得了至多2倍的改进。我们还研究了键为变长字符串的情况,引入了所谓的LeMonHash-VL:其空间需求在最佳竞争对手的13%以内,同时实现比下一个更大的竞争对手快至3倍的查询。

英文摘要:

A Monotone Minimal Perfect Hash Function (MMPHF) constructed on a set S of keys is a function that maps each key in S to its rank. On keys not in S, the function returns an arbitrary value. Applications range from databases, search engines, data encryption, to pattern-matching algorithms. In this paper, we describe LeMonHash, a new technique for constructing MMPHFs for integers. The core idea of LeMonHash is surprisingly simple and effective: we learn a monotone mapping from keys to their rank via an error-bounded piecewise linear model (the PGM-index), and then we solve the collisions that might arise among keys mapping to the same rank estimate by associating small integers with them in a retrieval data structure (BuRR). On synthetic random datasets, LeMonHash needs 34% less space than the next larger competitor, while achieving about 16 times faster queries. On real-world datasets, the space usage is very close to or much better than the best competitors, while achieving up to 19 times faster queries than the next larger competitor. As far as the construction of LeMonHash is concerned, we get an improvement by a factor of up to 2, compared to the competitor with the next best space usage. We also investigate the case of keys being variable-length strings, introducing the so-called LeMonHash-VL: it needs space within 13% of the best competitors while achieving up to 3 times faster queries than the next larger competitor.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑