arXiv:2611.08230math.CONov 2026

Manuscript Offprint

arXiv:2611.08230

The probabilistic bound for perfect hashing is sharp only for binary alphabets

Shitao Li, Minjia Shi

Abstract

We investigate the optimal asymptotic rate RqR_q of perfect qq-hash codes, a fundamental extremal problem in combinatorics, information theory, and computer science. Let Bq=−log⁡2(1−q!/qq)/(q−1)B_q = -\log_2(1 - q!/q^q)/(q-1) denote the classical probabilistic lower bound. We prove that Rq=BqR_q = B_q if and only if q=2q=2, establishing an explicit strict improvement for every q≥3q \geq 3 and settling the first assertion of a conjecture of Xing and Yuan (Combinatorica 43 (2023), 347–366). More significantly, we show that, for every η>0\eta > 0, Rq≥Bq+exp⁡(−(2+η)q)R_q \geq B_q + \exp(-(2+\eta)q) for all sufficiently large integers qq. This improves the previously known increments of scale exp⁡(−3q+O(ln⁡q))\exp(-3q + O(\ln q)) by an exponential factor. We also establish a structural limitation of the concatenation method. For pairwise uniform inner codes of subexponential length, the resulting rate bound exceeds BqB_q by at most exp⁡(−3q+o(q))\exp(-3q + o(q)). Thus, exponentially long inner codes are necessary to achieve the new improvement scale within this framework. Our proofs combine Fourier analysis, high-dimensional simplex codes, additive permutation counts, and entropy bounds for hypergraph matchings. We further strengthen lower bounds from short inner codes and improve several known numerical estimates.

Keywords: Perfect hashing, probabilistic method, additive triples of bijections, Latin square transversals, hypergraph matchings, simplex codes.

2020 MSC: Primary 05D40, 05D05; Secondary 94B65, 05B15, 05C70, 11B30, 51E20.

1 Introduction

Let q≥2q \geq 2 be an integer and write [q]={1,…,q}[q] = \{1, \ldots, q\}. A code C⊆[q]NC \subseteq [q]^N is a perfect qq-hash code if every qq distinct codewords c1,…,cq∈Cc_1, \ldots, c_q \in C have a coordinate i∈[N]i \in [N] such that {c1,i,…,cq,i}=[q]\{c_{1,i}, \ldots, c_{q,i}\} = [q]. Such a coordinate separates the codewords. Perfect 3-hash codes are also called trifferent codes. Equivalently, the coordinate projections of a perfect qq-hash code CC form a family of functions from CC to [q][q] such that every qq-element subset of CC is mapped injectively by at least one of them. This formulation as a perfect hash family underlies applications in combinatorics and computer science [14]. For example, such families are used to derandomize the color-coding method of Alon,

*School of Internet, Anhui University, Hefei, Anhui 230039, China. E-mail: lishitao0216@163.com.

†Key Laboratory of Intelligent Computing and Signal Processing, Ministry of Education, School of Mathematical Sciences, Anhui University, Hefei, Anhui 230601, China. E-mail: smjwcl.good@163.com

‡Corresponding author: Minjia Shi.

Yuster and Zwick [2]. Explicit perfect hash families with more general alphabet and separation parameters can be constructed from algebraic curves [31]. Perfect qq-hash codes also describe zero-error list decoding with list size at most q−1q-1 on the q/(q−1)q/(q-1) channel [32, Section 1]. In this channel, each input symbol can be received as any of the other q−1q-1 symbols, and the separation condition guarantees that no received word is compatible with qq distinct codewords.

The basic extremal problem is to determine the largest size M(N,q)M(N,q) of a perfect qq-hash code of length NN. For fixed qq, we study the asymptotic rate

Rq=lim sup⁡N→∞log⁡2M(N,q)N,R_{q}=\limsup_{N\to\infty}\frac{\log_{2}M(N,q)}{N},

which measures the exponential growth of M(N,q)M(N,q). The study of RqR_{q} goes back to the 1980s, but its exact value is not known for any q≥3q\geq 3.