The power of two choices with simple tabulation

Søren Dahlgaard, Mathias Bæk Tejs Knudsen, Eva Rotenberg, Mikkel Thorup

5 Citations (Scopus)

Abstract

The power of two choices is a classic paradigm for load balancing when assigning m balls to n bins. When placing a ball, we pick two bins according to two hash functions ho and h1, and place the ball in the least loaded bin. Assuming fully random hash functions, when m = O(n), Azar et al. [STOC'94] proved that the maximum load is lglgn + 0(1) with high probability. No such bound was known with a hash function implementable in constant time. In this paper, we investigate the power of two choices when the hash functions ho and h1 are implemented with simple tabulation, which is a very efficient hash function evaluated in constant time. Following their analysis of Cuckoo hashing [J.ACM'12], PǍtraşcu and Thorup claimed that the expected maximum load with simple tabulation is O(lglgn). This did not include any high probability guarantee, so the load balancing was not yet to be trusted. Here, we show that with simple tabulation, the maximum load is O(lglgn) with high probability, giving the first constant time hash function with this guarantee. We also give a concrete example where, unlike with fully random hashing, the maximum load is not bounded by lglgn + 0(l), or even (1 + o(l)) lglgn with high probability. Finally, we show that the expected maximum load is lglgn + 0(1), just like with fully random hashing.

Original languageEnglish
Title of host publicationProceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms
EditorsRobert Krauthgamer
Number of pages12
PublisherSociety for Industrial and Applied Mathematics
Publication date2016
Pages1631-1642
ISBN (Electronic)978-1-61197-433-1
DOIs
Publication statusPublished - 2016
EventAnnual ACM-SIAM Symposium on Discrete Algorithms 2016 - Arlington, VA, United States
Duration: 10 Jan 201612 Jan 2016
Conference number: 27

Conference

ConferenceAnnual ACM-SIAM Symposium on Discrete Algorithms 2016
Number27
Country/TerritoryUnited States
CityArlington, VA
Period10/01/201612/01/2016

Fingerprint

Dive into the research topics of 'The power of two choices with simple tabulation'. Together they form a unique fingerprint.

Cite this