{"title":"Tight Bounds for Classical Open Addressing","authors":"Michael A. Bender, William Kuszmaul, Renfei Zhou","doi":"arxiv-2409.11280","DOIUrl":null,"url":null,"abstract":"We introduce a classical open-addressed hash table, called rainbow hashing,\nthat supports a load factor of up to $1 - \\varepsilon$, while also supporting\n$O(1)$ expected-time queries, and $O(\\log \\log \\varepsilon^{-1})$ expected-time\ninsertions and deletions. We further prove that this tradeoff curve is optimal:\nany classical open-addressed hash table that supports load factor $1 -\n\\varepsilon$ must incur $\\Omega(\\log \\log \\varepsilon^{-1})$ expected time per\noperation. Finally, we extend rainbow hashing to the setting where the hash table is\ndynamically resized over time. Surprisingly, the addition of dynamic resizing\ndoes not come at any time cost -- even while maintaining a load factor of $\\ge\n1 - \\varepsilon$ at all times, we can support $O(1)$ queries and $O(\\log \\log\n\\varepsilon^{-1})$ updates. Prior to our work, achieving any time bounds of the form\n$o(\\varepsilon^{-1})$ for all of insertions, deletions, and queries\nsimultaneously remained an open question.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"36 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.11280","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We introduce a classical open-addressed hash table, called rainbow hashing,
that supports a load factor of up to $1 - \varepsilon$, while also supporting
$O(1)$ expected-time queries, and $O(\log \log \varepsilon^{-1})$ expected-time
insertions and deletions. We further prove that this tradeoff curve is optimal:
any classical open-addressed hash table that supports load factor $1 -
\varepsilon$ must incur $\Omega(\log \log \varepsilon^{-1})$ expected time per
operation. Finally, we extend rainbow hashing to the setting where the hash table is
dynamically resized over time. Surprisingly, the addition of dynamic resizing
does not come at any time cost -- even while maintaining a load factor of $\ge
1 - \varepsilon$ at all times, we can support $O(1)$ queries and $O(\log \log
\varepsilon^{-1})$ updates. Prior to our work, achieving any time bounds of the form
$o(\varepsilon^{-1})$ for all of insertions, deletions, and queries
simultaneously remained an open question.