Balanced Allocation and Dictionaries with Tightly Packed Constant Size Bins
Author(s) -
Martin Dietzfelbinger,
Christoph Weidling
Publication year - 2005
Publication title -
lecture notes in computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.249
H-Index - 400
eISSN - 1611-3349
pISSN - 0302-9743
DOI - 10.1007/11523468_14
Subject(s) - hash function , perfect hash function , hash table , constant (computer programming) , computer science , dynamic perfect hashing , bin , ball (mathematics) , combinatorics , bin packing problem , key (lock) , double hashing , k independent hashing , discrete mathematics , algorithm , mathematics , geometry , computer security , programming language
We study an aspect of the balanced allocation paradigm (also known as the “two-choices paradigm”). Assume there are n balls and m =(1+e) n /d bins of capacity d each, for a fixed d≥1. To each of the balls two possible bins are assigned at random. We show that e> (2/e)d−−1 is sufficient to guarantee that with high probability each ball can be put into one of the two bins assigned to it, without any bin overflowing. Further, it takes constant time on average for changing the arrangement to accommodate a new ball, if e>γ·βd, for some constants γ>0, β 0, we obtain an implementation of a dynamic dictionary that accommodates n keys in m =(1+e)n /d buckets of size d = O(log(1/e)). For a lookup operation only two hash functions have to be evaluated and two contiguous segments of d memory cells have to be inspected. The expected time for inserting a new key is constant.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom