Faster Deterministic Dictionaries
Author(s) -
Rasmus Pagh
Publication year - 1999
Publication title -
brics report series
Language(s) - English
Resource type - Journals
eISSN - 1601-5355
pISSN - 0909-0878
DOI - 10.7146/brics.v6i48.20118
Subject(s) - combinatorics , mathematics , deterministic algorithm , constant (computer programming) , hash function , product (mathematics) , binary logarithm , arithmetic , discrete mathematics , linear space , randomized algorithm , algorithm , computer science , geometry , computer security , programming language
We consider static dictionaries over the universe U = {0, 1}^w on a unit-cost RAM with word size w. Construction of a static dictionary with linear space consumption and constant lookup time can be done in linear expected time by a randomized algorithm. In contrast, the best previous deterministic algorithm for constructing such a dictionary with n elements runs in time O(n^(1+epsilon)) for epsilon > 0. This paper narrows the gap between deterministic and randomized algorithms exponentially, from the factor of n^epsilon to an O(log n) factor. The algorithm is weakly non-uniform, i.e. requires certain precomputed constants dependent on w. A by-product of the result is a lookup time vs insertion time trade-off for dynamic dictionaries, which is optimal for a certain class of deterministic hashing schemes.
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