We introduce PaCHash, a hash table that stores its objects contiguously in an array without intervening space, even if the objects have variable size. In particular, each object can be compressed using standard compression techniques. A small search data structure allows locating the objects in constant expected time. PaCHash is most naturally described as a static external hash table where it needs a constant number of bits of internal memory per block of external memory. Here, in some sense, PaCHash beats a lower bound on the space consumption of k-perfect hashing. An implementation for fast SSDs needs about 5 bits of internal memory per block of external memory, requires only one disk access (of variable length) per search operation, and has small internal search overhead compared to the disk access cost. Our experiments show that it has lower space consumption than all previous approaches even when considering objects of identical size.
翻译:我们引入了PaCHash, 这个散列表, 将物体存放在一个没有干扰空间的阵列中, 即使对象大小不同。 特别是, 每个对象都可以使用标准的压缩技术压缩。 一个小的搜索数据结构可以在固定的预期时间内定位物体。 PaCHash 最自然地被描述为静态的外部散列表, 它需要每个外部内存块的内存比重。 在这里, PaCHash 以某种意义上, 击败了 K- perfect hash 空间消耗的下限。 快速的 SSDs 实施时, 每块外部内存需要大约5 位内部内存, 每次搜索只需要一个磁盘( 变量长度), 并且与磁盘访问成本相比, 内部搜索管理比小。 我们的实验显示, 它的空间消耗量比以往所有方法都低, 即使考虑到相同大小的物体 。