Backyard Cuckoo Hashing: Constant Worst-Case Operations with a Succinct Representation

被引:66
作者
Arbitman, Yuriy [1 ]
Naor, Moni [1 ]
Segev, Gil [1 ]
机构
[1] Weizmann Inst Sci, Dept Comp Sci & Appl Math, IL-76100 Rehovot, Israel
来源
2010 IEEE 51ST ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE | 2010年
关键词
PSEUDORANDOM PERMUTATIONS; TIME; DICTIONARIES; TABLES;
D O I
10.1109/FOCS.2010.80
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The performance of a dynamic dictionary is measured mainly by its update time, lookup time, and space consumption. In terms of update time and lookup time there are known constructions that guarantee constant-time operations in the worst case with high probability, and in terms of space consumption there are known constructions that use essentially optimal space. However, although the first analysis of a dynamic dictionary dates back more than 45 years ago (when Knuth analyzed linear probing in 1963), the trade-off between these aspects of performance is still not completely understood. In this paper we settle two fundamental open problems: We construct the first dynamic dictionary that enjoys the best of both worlds: it stores n elements using (1 + epsilon)n memory words, and guarantees constant-time operations in the worst case with high probability. Specifically, for any epsilon = Omega((log log n/log n)(1/2)) and for any sequence of polynomially many operations, with high probability over the randomness of the initialization phase, all operations are performed in constant time which is independent of epsilon. The construction is a two-level variant of cuckoo hashing, augmented with a "backyard" that handles a large fraction of the elements, together with a de-amortized perfect hashing scheme for eliminating the dependency on epsilon. We present a variant of the above construction that uses only (1 + o(1))B bits, where B is the information-theoretic lower bound for representing a set of size n taken from a universe of size u, and guarantees constant-time operations in the worst case with high probability, as before. This problem was open even in the amortized setting. One of the main ingredients of our construction is a permutation-based variant of cuckoo hashing, which significantly improves the space consumption of cuckoo hashing when dealing with a rather small universe.
引用
收藏
页码:787 / 796
页数:10
相关论文
共 53 条
  • [1] Arbitman Y, 2009, LECT NOTES COMPUT SC, V5555, P107, DOI 10.1007/978-3-642-02927-1_11
  • [2] SPACE/TIME TRADE/OFFS IN HASH CODING WITH ALLOWABLE ERRORS
    BLOOM, BH
    [J]. COMMUNICATIONS OF THE ACM, 1970, 13 (07) : 422 - &
  • [3] Broder A, 2001, IEEE INFOCOM SER, P1454, DOI 10.1109/INFCOM.2001.916641
  • [4] Membership in constant time and almost-minimum space
    Brodnik, A
    Munro, JI
    [J]. SIAM JOURNAL ON COMPUTING, 1999, 28 (05) : 1627 - 1640
  • [5] Carter Larry, 1978, S THEOR COMP, P59, DOI 10.1145/800133.804332
  • [6] Courcoubetis C., 1992, Formal Methods in System Design, V1, P275, DOI 10.1007/BF00121128
  • [7] Two-way chaining with reassignment
    Dalal, K
    Devroye, L
    Malalla, E
    Mcleish, E
    [J]. SIAM JOURNAL ON COMPUTING, 2005, 35 (02) : 327 - 340
  • [8] Demaine Erik D., 2006, LATIN AM S THEORETIC, P349
  • [9] On the k-orientability of random graphs
    Devroye, Luc
    Malalla, Ebrahim
    [J]. DISCRETE MATHEMATICS, 2009, 309 (06) : 1476 - 1490
  • [10] DYNAMIC PERFECT HASHING - UPPER AND LOWER BOUNDS
    DIETZFELBINGER, M
    KARLIN, A
    MEHLHORN, K
    AUFDERHEIDE, FM
    ROHNERT, H
    TARJAN, RE
    [J]. SIAM JOURNAL ON COMPUTING, 1994, 23 (04) : 738 - 761