Optimal Static Dictionary with Worst-Case Constant Query Time

  • Yang Hu
  • , Jingxun Liang
  • , Huacheng Yu
  • , Junkai Zhang
  • , Renfei Zhou

Research output: Chapter in Book/Report/Conference proceedingConference contribution

1 Scopus citations

Abstract

In this paper, we design a new succinct static dictionary with worst-case constant query time. A dictionary data structure stores a set of key-value pairs with distinct keys in [U] and values in [σ], such that given a query x ϵ [U], it quickly returns if x is one of the input keys, and if so, also returns its associated value. The textbook solution to dictionaries is hash tables. On the other hand, the (information-theoretical) optimal space to encode such a set of key-value pairs is only OPT := log(Un) + n logσ. We construct a dictionary that uses OPT + nϵ bits of space, and answers queries in constant time in worst case. Previously, constant-time dictionaries are only known with OPT + n / poly logn space, or with OPT + nϵ space but expected constant query time. We emphasize that most of the extra nϵ bits are used to store a lookup table that does not depend on the input, and random bits for hash functions. The "main"data structure only occupies OPT + poly logn bits.

Original languageEnglish (US)
Title of host publicationSTOC 2025 - Proceedings of the 57th Annual ACM Symposium on Theory of Computing
EditorsMichal Koucky, Nikhil Bansal
PublisherAssociation for Computing Machinery
Pages278-289
Number of pages12
ISBN (Electronic)9798400715105
DOIs
StatePublished - Jun 15 2025
Event57th Annual ACM Symposium on Theory of Computing, STOC 2025 - Prague, Czech Republic
Duration: Jun 23 2025Jun 27 2025

Publication series

NameProceedings of the Annual ACM Symposium on Theory of Computing
ISSN (Print)0737-8017

Conference

Conference57th Annual ACM Symposium on Theory of Computing, STOC 2025
Country/TerritoryCzech Republic
CityPrague
Period6/23/256/27/25

All Science Journal Classification (ASJC) codes

  • Software

Keywords

  • Data Structures
  • Dictionaries
  • Succinct Data Structures

Fingerprint

Dive into the research topics of 'Optimal Static Dictionary with Worst-Case Constant Query Time'. Together they form a unique fingerprint.

Cite this