arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.00997cs.DS
收藏

动态空间高效哈希

Dynamic Space Efficient Hashing

Tobias Maier, Peter Sanders

摘要:

我们考虑空间有效的哈希表,它可以动态地增长和收缩,并且总是高度空间有效的,即,它们的空间消耗总是接近下限,即使在增长时并且在考虑仅临时需要的存储时也是如此。传统上使用的哈希表都不具有此属性。我们展示了如何已知的方法,如线性探测和桶布谷鸟散列可以适应这种情况下,将它们细分为许多子表或使用虚拟内存超量。然而,这些相当直接的解决方案由于以小增量频繁重新分配而遭受缓慢的摊销插入时间。我们的主要结果是DySECT({ \bf Dy} dynamic { \bf S}pace { \bf E} efficient { \bf C}uckoo { \bf T}able),它避免了这些问题。DySECT由许多子表组成,这些子表的大小会增加一倍。由此产生的子表大小的不均匀性被桶布谷鸟散列中可用的灵活性所均衡,其中每个元素可以进入多个桶,每个桶包含多个单元格。实验结果表明,DySECT系统工作良好,负载率可达98%.性能比次佳解决方案高出2.7倍。

英文摘要:

We consider space efficient hash tables that can grow and shrink dynamically and are always highly space efficient, i.e., their space consumption is always close to the lower bound even while growing and when taking into account storage that is only needed temporarily. None of the traditionally used hash tables have this property. We show how known approaches like linear probing and bucket cuckoo hashing can be adapted to this scenario by subdividing them into many subtables or using virtual memory overcommitting. However, these rather straightforward solutions suffer from slow amortized insertion times due to frequent reallocation in small increments. Our main result is DySECT ({\bf Dy}namic {\bf S}pace {\bf E}fficient {\bf C}uckoo {\bf T}able) which avoids these problems. DySECT consists of many subtables which grow by doubling their size. The resulting inhomogeneity in subtable sizes is equalized by the flexibility available in bucket cuckoo hashing where each element can go to several buckets each of which containing several cells. Experiments indicate that DySECT works well with load factors up to 98\%. With up to 2.7 times better performance than the next best solution.

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

↑