Indexing internal memory with minimal perfect hash functions

作者
Fabiano C. Botelho,Hendrickson Reiter Langbehn,Guilherme Vale Menezes,Nívio Ziviani
摘要

A perfect hash function (PHF) is an injective function that maps keys from a set S to unique values, which are in turn used to index a hash table. Since no collisions occur, each key can be retrieved from the table with a single probe. A minimal perfect hash function (MPHF) is a PHF with the smallest possible range, that is, the hash table size is exactly the number of keys in S. MPHFs are widely used for memory efficient storage and fast retrieval of items from static sets. Differently from other hashing schemes, MPHFs completely avoid the problem of wasted space and wasted time to deal with collisions. In the past, the amount of space to store an MPHF description was O(log n) bits per key and therefore similar to the overhead of space of other hashing schemes. Recent results on MPHFs by [Botelho et al. 2007] changed this scenario: in their work the space overhead of an MPHF is approximately 2.6 bits per key. The objective of this paper is to show that MPHFs are a good option to index internal memory when static key sets are involved and both successful and unsuccessful searches are allowed. We have shown that MPHFs provide the best tradeoff between space usage and lookup time when compared with linear hashing, quadratic hashing, double hashing, dense hashing, cuckoo hashing and sparse hashing. For example, MPHFs outperforms linear hashing, quadratic hashing and double hashing when these methods have a hash table occupancy of 75 % or higher (if the MPHF fits in the CPU cache the same happens for hash table occupancies greater than or equal to 55%). Furthermore, MPHFs also have a better performance in all measured aspects when compared to sparse hashing, which has been designed specifically for efficient memory usage.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
1秒前
sunny完成签到 ,获得积分10
1秒前
共享精神应助星星气球采纳,获得30
1秒前
1秒前
快乐的翠柏完成签到,获得积分10
2秒前
suai发布了新的文献求助10
2秒前
2秒前
柳柳完成签到,获得积分10
2秒前
搜集达人应助zzzddd采纳,获得10
2秒前
2秒前
coconut发布了新的文献求助10
2秒前
汉堡包应助红发罗恩采纳,获得10
2秒前
qianmo完成签到,获得积分10
3秒前
3秒前
3秒前
wbgwudi发布了新的文献求助30
3秒前
夜已深发布了新的文献求助10
4秒前
英姑应助小刘爱科研采纳,获得10
4秒前
易晨初晓发布了新的文献求助10
4秒前
科研通AI6.4应助wnx001111采纳,获得10
4秒前
4秒前
桃雾wu发布了新的文献求助10
4秒前
兰高锋发布了新的文献求助10
4秒前
小蘑菇应助aqiu采纳,获得10
5秒前
yang完成签到,获得积分10
5秒前
潘多拉完成签到,获得积分10
5秒前
钱miss完成签到,获得积分20
6秒前
哈哈哈完成签到,获得积分10
6秒前
6秒前
ydy3128发布了新的文献求助10
7秒前
Joshua发布了新的文献求助10
7秒前
Meng完成签到,获得积分10
7秒前
7秒前
大个应助眼睛大的冷风采纳,获得10
8秒前
柔弱的厉完成签到,获得积分20
8秒前
wanci应助Karma采纳,获得10
8秒前
Big_Hammer完成签到,获得积分10
8秒前
奋进的熊完成签到,获得积分10
8秒前
七颗茶香豆应助Karma采纳,获得10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The anomeric effect 1000
Principles of town planning: translating concepts to applications 1000
Navigating Normative Orders: Interdisciplinary Perspectives 750
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
Organizational Behavior 510
Management and the Arts 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7733328
求助须知:如何正确求助?哪些是违规求助? 9284035
关于积分的说明 20162467
捐赠科研通 7311227
什么是DOI,文献DOI怎么找? 3304321
关于科研通互助平台的介绍 2457091
邀请新用户注册赠送积分活动 2313534