Skip to content

Should Tables Be Sorted? Revisited with a Large Language Model

Songhua He

cs.DS

Abstract

We revisit the implicit membership problem in Yao's full-table model [Yao, 1981] and obtain, to our knowledge, the first quantitative improvements to his 45-year-old Ramsey bounds, most notably reducing the two-probe bound from tower-type to polynomial. In this model, an nn-set S⊆{1,…,m}S\subseteq\{1,\ldots,m\} is stored as a permutation in an nn-cell table, and queries decide whether x∈Sx\in S. Let Gq(n)G_q(n) be the largest universe size admitting a qq-probe membership scheme for all nn-sets. Yao determined the one-probe case exactly, proving G1(n)=2n−2G_1(n)=2n-2 for n>2n>2, but the behavior for q≥2q\ge2 remained wide open. Fiat and Naor [1993] constructed schemes for universes of size exp⁡(nc)\exp(n^c) for some constant c>0c>0 and sufficiently large constant qq. For the first adaptive case, q=2q=2, we prove G2(n)=O(n2(log⁡n)2)G_2(n)=O(n^2(\log n)^2). For every fixed integer q≥3q\ge3, we show that Gq(n)G_q(n) is at most a tower of height q−1q-1 with top n1+o(1)n^{1+o(1)}; in particular, G3(n)≤exp⁡(n1+o(1))G_3(n)\le\exp(n^{1+o(1)}). The two-probe proof avoids Ramsey theory altogether; for larger fixed qq, we use Ramsey theory only to make the first q−1q-1 probes follow a fixed pattern, and then handle the last probe by the same non-Ramsey argument. Somewhat surprisingly, for each fixed qq, we also show that implicit membership is as hard as implicit search up to a polynomial loss in universe size. Implicit search must return the cell containing xx when present and reject otherwise. For the analogous search threshold Hq(n)H_q(n), we prove Hq(n)≤Gq(n)≤nq(Hq(n)+1)q+1H_q(n)\le G_q(n)\le n^q(H_q(n)+1)^{q+1} for every q,nq,n. Thus, for every fixed qq, one threshold is at most exp⁡(nO(1))\exp(n^{O(1)}) if and only if the other is. The proofs were first generated by ChatGPT 5.5 Pro without mathematical hints; the membership-search equivalence emerged while pursuing an improved four-probe bound. The authors have validated and edited the proofs and assume responsibility for all content.

Create a lesson