Average-Case Optimal Encodings and Efficient Worst-Case Indices for Element Distinctness Queries

📅 2026-08-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究了元素唯一性查询问题,针对随机数组设计了平均最优编码方法,并为最坏情况下的数组提出了高效的索引方法。
📝 Abstract
We study the data structure version of the \emph{element distinctness problem}: preprocess an array of $n$ elements from an alphabet of size $σ$ to answer \textsc{All-Distinct} queries, asking whether a given range contains only distinct elements. We first focus on \emph{uniformly random arrays}: in the encoding model, where access to the input at query time is not allowed, we prove a lower bound on the expected space; for instance, the lower bound is $n$, $1.3627n$, $1.5153n$, $1.5824n$ bits for $σ= 2,3,4,5$, and approximately $n\sqrt{π/(2σ)}\,\logσ$ bits for $σ=ω(1)$. We complement this by designing different average-case optimal encodings, supporting \textsc{All-Distinct} queries in worst-case time $O(1)$, $o(\log^{2}{\log{n}})$, or $O(\log\log{n})$ depending on $σ$, and $O(1)$ expected time for any $σ= ω(1)$. We then switch to worst-case (non-random) arrays: in the indexing model, where access to the input is allowed, we prove a cell-probe space-time tradeoff lower bound showing that any index using $n/b$ bits must have $Ω(b/\log{b})$ query time. We conclude by presenting a simple index almost matching this lower bound.
Problem

Research questions and friction points this paper is trying to address.

element distinctness
queries
preprocessing
arrays
alphabet size
Innovation

Methods, ideas, or system contributions that make the work stand out.

average-case optimal encodings
All-Distinct queries
worst-case indices
cell-probe space-time tradeoff
🔎 Similar Papers
2024-01-16arXiv.orgCitations: 76
Philip Bille
Philip Bille
Technical University of Denmark
Algorithms
J
Johannes Fischer
Department of Computer Science, Technical University of Dortmund, Germany
Inge Li Gørtz
Inge Li Gørtz
Technical University of Demark
F
Filippo Lari
Department of Computer Science, University of Pisa, Italy