WorksComputer Science
Revisiting Non-Adaptive Set Membership Schemes: Removing the Logarithmic Factor
Abstract
We study non-adaptive bit-probe schemes for static set membership. Each query reads a fixed number of bits and answers by strict majority. We revisit the random bipartite-graph construction of Garg and Radhakrishnan [STACS, 2017]. The main observation is that a slightly stronger expansion property already bounds the number of exceptional elements. This makes a separate probabilistic estimate for exceptional elements unnecessary. A detailed union-bound calculation then gives, for every fixed , a logarithm-free existence bound of , where . For odd , this removes the logarithmic factor from the general upper bound of Garg and Radhakrishnan [STACS, 2017].
Introduction
Static set membership
The static set-membership problem asks how to store a set compactly while still answering membership queries quickly. We are given a universe and a set with . The data structure stores as a bit string. A query specifies an element and asks whether .
The simplest solution is the characteristic vector of . It uses bits. The bit at position is one exactly when . A query needs only one bit probe. This representation is wasteful when is much smaller than . One can instead store the elements of directly, but then a query may need to inspect many stored elements. The bit-probe model studies the trade-off between the number of stored bits and the number of bits inspected by each query. The survey of Nicholson, Raman, and S. Srinivasa Rao [6] gives a broad introduction to the model and its history.
A scheme is called adaptive if the location of a later probe can depend on the values returned by earlier probes. It is called non-adaptive if all probe locations are fixed before any memory bit is read. Non-adaptive probes can be issued in parallel. This restriction is central to the present paper.
We write for the minimum number of bits needed by a deterministic non-adaptive scheme that stores every set of size at most from and answers each query using at most probes. Distinct sets must have distinct representations, so the elementary counting bound is
When , this is of order at least . Stronger lower bounds are known in particular parameter regimes, as discussed below.
Four probes and a few elements
The number of probes matters even when it is a small constant. Alon and Feige studied non-adaptive schemes with two, three, and four probes [1]. Alon and Feige [1] proved that, for four non-adaptive bitprobes and , the space requirement satisfies
for some absolute constant . The scheme is non explicit.
Later work gave explicit constructions for some small-set cases. Baig and Kesh gave an explicit non-adaptive four-probe scheme for storing sets of size at most four and five [2, 3]. These results address particular small values of the set size. Our goal is different. We seek one asymptotic construction that works for every set size bound and every fixed probe count .
General -probe results
Garg and Radhakrishnan developed a random-graph method for non-adaptive majority schemes [5]. For odd , their upper bound is
Their proof builds a bipartite graph between universe elements and memory cells. Each element is connected to one cell in each of blocks. A query reads the cells adjacent to that element and uses majority. Two graph properties guarantee that every target set can be encoded correctly. The graph is then shown to exist by the probabilistic method.
There is also a general lower bound due to Buhrman, Miltersen, Radhakrishnan, and Venkatesh [4]. In one commonly studied regime, for every fixed and , with , their lower bound is
The lower bound holds even for adaptive schemes under the stated hypotheses, and therefore also applies to non-adaptive schemes. The upper and lower exponents do not match. Removing a logarithmic factor from an upper bound does not by itself settle the optimal space complexity.
Our contribution
We keep the graph model, the majority decoder, and the matching-based encoding method of Garg and Radhakrishnan [5]. We change the way the exceptional elements are handled.
In the usual proof, two graph properties are established separately. The first is expansion. The second limits the number of outside elements whose neighbourhood overlaps the target neighbourhood in a majority of its positions. The standard proof uses a logarithmic budget for these exceptional elements.
We show that a slightly stronger expansion property implies the exceptional-element bound deterministically. This means that we only need one probability estimate, for expansion. The required expansion radius remains proportional to when is fixed. The resulting block size has no logarithmic factor.
More precisely, for every fixed integer , we prove
For odd , this becomes
And for the even , this becomes
The subscript on the big- indicates that the hidden constant may depend on the fixed probe count .
The rest of the paper follows the order of the general upper-bound argument in Garg and Radhakrishnan [5]. We first define the graph model and admissibility conditions. We then show that an admissible graph gives a correct scheme. After that, we prove the existence of a suitable random graph. The last sections derive the space bound and compare it with the previous results.
The graph model and admissibility
Non-adaptive graphs
Definition 2.1 (Non-adaptive -graph). A non-adaptive -graph is a bipartite graph with left side and right side partitioned into disjoint blocks,
Every has exactly one neighbour in each block . For , let be the set of right-side vertices adjacent to at least one element of .
The graph fixes the locations probed by each query. The memory consists of bits, one for each vertex of . To answer a query for , the decoder reads the bits indexed by and answers Yes if at least
of them equal one. This is strict-majority decoding. We also put
Thus , , and . If is odd, then ; if is even, then . Since , we have .
The graph does not by itself specify the memory contents. For each target set , the encoder has to assign zeros and ones so that exactly the elements of receive a Yes answer. We next state two structural conditions on the graph that guarantee the existence of such an assignment.
The two admissibility properties
Choose the parameters
We first work in the range .
Definition 2.2 (Admissible graph). A non-adaptive -graph is called -admissible if it satisfies the following two properties.
(P1) Expansion.
For every with ,
(P2) Few exceptional elements.
For every with , define
Then .
An element belongs to if at least of its probe locations also lie in . If those locations are set to one while encoding , the query for could receive a false Yes answer. Property (P2) says that there are only a few such elements.
The radius is one larger than the number needed in the matching argument. This extra vertex is deliberate. It is what makes the deterministic implication in the next section strict.
Admissibility implies satisfiability
Lemma 2.3 (Admissibility implies a correct encoding). If is -admissible, then for every with , there is an assignment of the memory bits that answers all membership queries correctly by strict majority.
Proof. Fix a target set with . Choose a superset of size exactly . This is possible because .
By (P2), . Define
The sets in this union are disjoint, so
We will first give each element of a private set of memory locations. We then set the locations for elements of to one and all other locations to zero. Construct an auxiliary bipartite graph . Its left side is . Thus each element is copied times. The right side is . Join each copy to every vertex in .
We verify Hall’s condition. Take an arbitrary set . Let be the set of elements of that have at least one copy in . There are at most copies of each element, so
All copies of the same element have the same neighbourhood. Therefore
Since and , property (P1) applies and gives
This holds for every subset of the left side. Hall’s theorem therefore gives a matching that covers every vertex of .
For each , let be the set of the memory locations matched to its copies. Then
and the sets , as ranges over , are pairwise disjoint.
Now assign the memory bits. Set a bit to one exactly when its location belongs to for some . Set every other bit to zero. We check the three possible kinds of query.
Case 1: . All locations in contain one. Since , the query answers Yes.
Case 2: . The set is disjoint from every with . Hence all locations in contain zero. At most of the probes for can contain one, so the query answers No.
Case 3: . Every one-location lies in and hence in . Because , we have
This quantity is an integer, so it is at most . Every one-location probed by lies in . Thus at most probes for contain one, and the query answers No. Also , because .
Every query falls into one of these three cases. The assignment is therefore correct for every element of the universe.
A random graph with the required expansion
We now prove that a graph satisfying (P1) exists. The graph is random. For each and each block , choose the neighbour of in independently and uniformly from its vertices. All choices, including choices made by different left vertices, are independent.
Put
The constant depends only on . Choose the block size
We will show that the probability of failure of (P1) is strictly below one.
A simple size check
We first check that . Since , we have . Also . It follows that
The definition of gives
Since and , we have . Hence .
Bounding a fixed witness
Suppose (P1) fails. Then there is a nonempty set with and
Write . As neighbourhood sizes are integers, failure means
Set . Thus the neighbourhood of is contained in some set of exactly vertices. The set can be chosen because
Fix and . For each block , let
The blocks partition , and so . Each of the elements of chooses its neighbour in block independently and uniformly. The probability that all neighbours in this block lie in is therefore . Choices in different blocks are also independent. Thus
By the arithmetic-geometric mean inequality,
Consequently,
This estimate applies to each fixed pair .
Union bound over all witnesses
There are choices for and choices for . The union bound gives
We now simplify this expression. We use the standard estimate
Applying it to both binomial coefficients yields
The exponent in the last factor is easy to compute. Since and ,
Also, . Hence
It follows that
Every failure of (P1) has a witness of some size with . A second union bound over these sizes therefore gives
Summing the probability bound
The choice of gives
For every , we therefore have
We used here. Substituting this into (1), we obtain
The standard geometric-series identity gives
Thus
We already showed that . Also , because , , and . It follows that and . Since ,
Therefore the random graph satisfies (P1) with positive probability.
Property (P2) follows from expansion
We have proved that the random graph satisfies (P1) with positive probability. We now show that every graph satisfying (P1) automatically satisfies (P2). This is the step that removes the need for a second probability estimate.
Lemma 3.1 (Expansion implies the exceptional-set property). With and chosen as above, every graph satisfying (P1) also satisfies (P2).
Proof. Suppose that a graph satisfies (P1). Fix an arbitrary set with . We will show that .
Assume, for a contradiction, that . Choose a set with exactly elements. Every element of lies outside , so and are disjoint. Define
Then
Property (P1) applies to , and therefore
We now count the same neighbourhood from above. Each element of has exactly neighbours, so . For every , the definition of gives
The vertex has exactly neighbours. At least of them already lie in . Hence at most of them lie outside , and
Every vertex of either belongs to or is a neighbour outside of some element of . Thus
The lower and upper bounds cannot both hold. Indeed,
By the definition ,
Since , this implies . The difference above is therefore strictly positive, so
This contradicts the two bounds on . We conclude that . Since was arbitrary, (P2) holds for every set of size .
The admissible graph exists
We can now prove the main existence theorem. The proof follows the random-graph method of Garg and [5], but the second graph property is obtained by the deterministic lemma rather than a separate probability estimate.
Theorem 4.1 (Existence of an admissible graph). Let be integers with and . Define
Assume , and set
Then there is a non-adaptive -graph satisfying (P1) and (P2).
Proof. Generate the random graph described in § 3. The preceding calculation shows that the probability of failure of (P1) is at most , which is strictly less than one. Hence the probability that (P1) holds is positive.
By Theorem 3.1, every graph satisfying (P1) also satisfies (P2). Thus the event that both properties hold contains the event that (P1) holds. In particular,
An event with positive probability is nonempty. Therefore at least one graph satisfies both properties.
The resulting space bound
Theorem 5.1 (Logarithm-free space bound). For every fixed integer , there is a deterministic non-adaptive strict-majority scheme for set membership using
for all integers .
Proof. Assuming . By Theorem 4.1, an admissible graph exists with
vertices in each block. By Theorem 2.3, this graph gives a correct scheme with memory bits.
The definition of gives
where the last inequality uses . Therefore
The factor in front depends only on . Also, since ,
Thus the additive one can be absorbed into the same constant. After multiplying by the fixed number of blocks, the total space is
Corollary 5.2 (Odd and even probe counts). For every fixed odd integer ,
For every fixed even integer ,
Proof. If is odd, then , so . Substituting this into Theorem 5.1 gives the first formula.
If is even, then , so . The second formula follows in the same way.
The five-probe case
For , we have , , and . The parameters simplify to
Thus the block size in the theorem is
Since for every ,
Hence the total space is . A simple explicit statement is that the scheme uses at most bits in the range . When , the replicated characteristic vector already uses bits. Thus the same asymptotic bound holds for all .
Corollary 5.3 (Five probes). There exists a non-adaptive strict-majority five-probe scheme that stores every subset of size at most from using bits.
Comparison and discussion
Comparison with the Garg–Radhakrishnan GargRadhakrishnan2017 bound
For odd , Garg and Radhakrishnan prove the upper bound
using a random graph and majority decoding [5]. Our result gives, for each fixed odd ,
And for the even ,
The logarithmic factor is absent.
The reason is not a stronger concentration inequality. It is a change in the logical order of the graph-property proof. The original admissibility framework proves expansion and the exceptional-set bound separately. Here, expansion through the radius forces the exceptional-set bound automatically. Since is proportional to for fixed , the radius is also proportional to . The expansion union bound then leads to a block size of order .
Relation to lower bounds
The information-theoretic lower bound is . The stronger lower bound of Buhrman et al. applies even to adaptive schemes in its stated regime and has the form
for and , with fixed [4]. Since non-adaptive schemes are a subclass of adaptive schemes, that lower bound also applies to our model in the same regime.
For odd , the exponent of in our upper bound is , while the lower bound has exponent . These do not match. Our result therefore does not determine the optimal non-adaptive space complexity. It removes one logarithmic factor from a known upper bound.
Nonconstructive existence
Our argument uses the probabilistic method. It proves that a suitable graph exists, but it does not give a deterministic algorithm for finding that graph. Once a graph is fixed, the query pattern is simple: each element has one fixed location in each block, and the answer is the strict majority of the read bits. The encoding proof reduces to a bipartite matching problem for the particular target set.
The constants are explicit in the proof, but they have not been optimized. The hidden constant in depends on the fixed value of . We make no claim of a uniform constant when grows with .
Conclusion
We gave a detailed random-graph argument for logarithm-free upper bounds in the non-adaptive bit-probe model. The main observation is simple. A graph that expands every set up to a carefully chosen radius cannot have too many outside elements whose neighbourhoods overlap a target neighbourhood in a majority of positions. This turns the exceptional-set condition into a consequence of expansion.
The remaining probability calculation is a union bound over small sets with unusually small neighbourhoods. It gives a graph with the required expansion at block size . Hall’s theorem then supplies the private memory locations needed by the encoder. For odd , the result removes the logarithmic factor from the upper bound of Garg and Radhakrishnan [5]. The construction is nonconstructive, and the known lower bounds leave a gap. Closing that gap, or finding explicit graphs with the same parameters, remains open within the scope of this paper.
Declaration of Generative AI and AI-Assisted Technologies
During the preparation of this manuscript, the author used ChatGPT and Claude to improve the clarity and presentation of the writing, review mathematical proofs, and identify possible errors. The author carefully reviewed and verified the content and takes full responsibility for the final manuscript.
References
- [1]N. Alon and U. Feige, On the power of two, three and four probes, in Proceedings of the Twentieth Annual ACM–SIAM Symposium on Discrete Algorithms (SODA 2009), pp. 346–354, 2009.
- [2]M. G. A. H. Baig and D. Kesh, Two new schemes in the bitprobe model, in WALCOM: Algorithms and Computation, 12th International Conference, Lecture Notes in Computer Science, vol. 10755, pp. 68–79, Springer, 2018. doi:10.1007/978-3-319-75172-6_7.DOI
- [3]M. G. A. H. Baig and D. Kesh, Two improved schemes in the bitprobe model, Theoretical Computer Science, 806:543–552, 2020. doi:10.1016/j.tcs.2019.08.033.DOI
- [4]H. Buhrman, P. B. Miltersen, J. Radhakrishnan, and S. Venkatesh, Are bitvectors optimal?, SIAM Journal on Computing, 31(6):1723–1744, 2002. doi:10.1137/S0097539702405292.DOI
- [5]M. Garg and J. Radhakrishnan, Set membership with non-adaptive bit probes, in 34th Symposium on Theoretical Aspects of Computer Science (STACS 2017), Leibniz International Proceedings in Informatics, vol. 66, Article 38, pp. 38:1–38:13, 2017. doi:10.4230/LIPIcs.STACS.2017.38.DOI
- [6]P. K. Nicholson, V. Raman, and S. S. Rao, A survey of data structures in the bitprobe model, in Space-Efficient Data Structures, Streams, and Algorithms, Lecture Notes in Computer Science, vol. 8066, pp. 303–318, Springer, 2013. doi:10.1007/978-3-642-40273-9_19.DOI