Let G = ( V , E ) G=(V,E) G = ( V , E ) be a d d d -uniform hypergraph with ∣ V ∣ = n |V|=n ∣ V ∣ = n and ∣ E ∣ = m |E|=m ∣ E ∣ = m . Estimating m m m from uniformly random hyperedge samples requires Θ ( m ) \Theta(\sqrt{m}) Θ ( m ) samples by a birthday-paradox argument. We investigate the power of conditional sampling through a hierarchy of oracles: for an integer 1 ≤ s ≤ d 1\le s\le d 1 ≤ s ≤ d , given pairwise disjoint subsets X 1 , … , X s ⊆ V X_1,\ldots,X_s\subseteq V X 1 , … , X s ⊆ V , the s s s -colorful oracle returns a hyperedge chosen uniformly at random from all hyperedges contained in X 1 ∪ ⋯ ∪ X s X_1\cup\cdots\cup X_s X 1 ∪ ⋯ ∪ X s that intersect every X i X_i X i , provided one exists. For s = 1 s=1 s = 1 , this samples a uniformly random hyperedge induced by X 1 X_1 X 1 .
For every 1 ≤ s ≤ d 1\le s\le d 1 ≤ s ≤ d , we give a randomized algorithm that outputs m ^ ∈ [ ( 1 − ε ) m , ( 1 + ε ) m ] \widehat{m}\in[(1-\varepsilon)m,(1+\varepsilon)m] m ∈ [( 1 − ε ) m , ( 1 + ε ) m ] with probability at least 2 / 3 2/3 2/3 using O s , d ( poly ( 1 / ε , log n ) ) O_{s,d}(\operatorname{poly}(1/\varepsilon,\log n)) O s , d ( poly ( 1/ ε , log n )) conditional samples, where the exponent of log n \log n log n is an absolute constant independent of both s s s and d d d . Conditional sampling thus yields an exponential separation over uniform hyperedge sampling.
We also study the decision version, in which the oracle only reports whether a qualifying hyperedge exists. For every 1 ≤ s < d 1\le s<d 1 ≤ s < d , we prove that any algorithm using the s s s -colorful decision oracle requires Ω ~ s , d ( n d − s d − s + 1 ) \widetilde{\Omega}_{s,d}(n^{\frac{d-s}{d-s+1}}) Ω s , d ( n d − s + 1 d − s ) queries. Hence, for s < d s<d s < d , access to uniformly random witness hyperedges (random certificates) is exponentially more powerful than existence queries. For s = d s = d s = d , decision queries alone achieve poly ( 1 / ε , log n ) \operatorname{poly}(1/\varepsilon, \log n) poly ( 1/ ε , log n ) query complexity, but the exponent of log n \log n log n is known to be Θ ( d ) \Theta(d) Θ ( d ) . The colorful hierarchy thus exhibits a phase transition at s = d s = d s = d : for s < d s < d s < d , random certificates are essential for polylogarithmic-query estimation, whereas at s = d s = d s = d decision queries suffice, yet random certificates still provably reduce the exponent of log n \log n log n from Θ ( d ) \Theta(d) Θ ( d ) to an absolute constant.
AI use statement. AI tools were used solely to improve the paper’s readability. All mathematical ideas and proofs presented in this work are the authors’ own. The authors take full responsibility for the content of the submitted manuscript.
Introduction
Edge estimation, and its generalization to hyperedge estimation via query oracles, is one of the central problems in query complexity and property testing, and has been studied extensively over the past two decades [25 , 26 , 12 , 9 , 7 , 21 , 22 , 23 , 11 , 5 , 15 , 3 , 18 , 1 , 16 ] . Besides being a natural computational primitive, hyperedge estimation has led to the development of several powerful (algorithmic) techniques. Consequently, it has become a standard benchmark for understanding the power of different query oracles.
Let G = ( V , E ) G=(V,E) G = ( V , E ) be a d d d -uniform hypergraph with ∣ V ∣ = n |V|=n ∣ V ∣ = n and ∣ E ∣ = m |E|=m ∣ E ∣ = m . The hyperedge estimation problem asks to estimate the number of hyperedges m m m using query access to G G G . More precisely, given an approximation parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , the goal is to design a randomized algorithm that outputs an estimate m ^ \widehat{m} m satisfying ( 1 − ε ) m ≤ m ^ ≤ ( 1 + ε ) m (1-\varepsilon)m \le\widehat{m} \le(1+\varepsilon)m ( 1 − ε ) m ≤ m ≤ ( 1 + ε ) m with constant success probability while minimizing the number of queries made to the underlying oracle.
The query complexity of hyperedge estimation depends crucially on the type of oracle available to the algorithm. If the algorithm has access only to uniformly random hyperedge samples, then estimating m m m requires Θ ~ ( m ) \widetilde{\Theta}(\sqrt{m}) Θ ( m ) samples by the classical birthday-paradox argument [27 ] .3 Consequently, obtaining substantially more efficient algorithms requires access to richer query primitives.
Among the many query models studied in the literature, conditional sampling has emerged as one of the most powerful and versatile primitives [17 , 20 , 19 , 6 , 13 , 8 ] . Instead of sampling a uniformly random hyperedge from the entire hypergraph, a conditional sampling oracle allows the algorithm to specify a collection of structural constraints and returns a uniformly random hyperedge satisfying those constraints.
Models and our results
A variety of global query oracles have been studied for graph and hypergraph estimation. One of the natural global query oracle for graphs is the independent set (IS) oracle [11 , 18 , 1 ] , which, given a subset of vertices, reports whether the induced subgraph contains an edge. For graphs, a more powerful query oracle is the bipartite independent set (BIS) oracle [21 , 11 ] , which, given two disjoint subsets of vertices, reports whether there exists an edge with one endpoint in each subset. Very recently, [15 ] introduced the independent set oracle with random certificates , which additionally returns a uniformly random witness edge whenever one exists. For general d d d -uniform hypergraphs, [4 , 22 , 5 ] considered the d d d -colorful decision oracle , which, given d d d pairwise disjoint subsets V 1 , … , V d V_1,\ldots,V_d V 1 , … , V d , reports whether there exists a hyperedge intersecting every subset.
These oracle models have proved remarkably powerful for edge and hyperedge estimation. However, despite these developments, there has been no systematic study of the hierarchy of colorful query oracles. Existing work focuses on a few isolated points in this hierarchy—namely the IS oracle, the BIS oracle, the IS oracle with random certificates, and the d d d -colorful decision oracle—leaving the intermediate colorful query models essentially unexplored.
Motivated by this gap, as well as developments in the property testing of probability distributions through the lens of conditional sampling [17 , 20 , 6 ] , we introduce a unified hierarchy of s s s -colorful query oracles, parameterized by an integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d . Given pairwise disjoint subsets V 1 , … , V s ⊆ V V_1,\ldots,V_s \subseteq V V 1 , … , V s ⊆ V , the s s s -colorful random certificate oracle, denoted by CISC ( V 1 , … , V s ) \operatorname{CISC}(V_1,\ldots,V_s) CISC ( V 1 , … , V s ) , returns a uniformly random hyperedge that is contained in V 1 ∪ ⋯ ∪ V s V_1 \cup\cdots\cup V_s V 1 ∪ ⋯ ∪ V s and intersects every subset V i V_i V i , i ∈ [ s ] i \in[s] i ∈ [ s ] , provided that such a hyperedge exists. We also consider the corresponding s s s -colorful decision oracle, denoted by c I S ( V 1 , … , V s ) \mathrm{cIS}(V_1,\ldots,V_s) cIS ( V 1 , … , V s ) , which simply reports whether such a hyperedge exists. The hierarchy unifies all previously studied oracle models: for graphs (d = 2 d=2 d = 2 ), c I S \mathrm{cIS} cIS for s = 1 s=1 s = 1 and s = 2 s=2 s = 2 corresponds to the IS and BIS oracles, respectively, while c I S C ( V 1 ) \mathrm{cISC}(V_1) cISC ( V 1 ) coincides with the independent set oracle with random certificates. For general d d d , the case s = d s=d s = d coincides with the previously studied d d d -colorful decision oracle.
Our work is motivated by the following three fundamental questions.
We answer all three questions. Our first result shows that a polylogarithmic number of s s s -colorful random certificate queries suffices to estimate the number of hyperedges.
Theorem 1. For every integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d and ε ∈ ( 0 , 1 / 3 ) \varepsilon\in(0,1/3) ε ∈ ( 0 , 1/3 ) , there exists a randomized algorithm that, given access to the s s s -colorful random certificate oracle c I S C \mathrm{cISC} cISC , outputs a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges with probability at least 2 / 3 2/3 2/3 using O s , d ( ε − 4 log 2 n log log n log 2 ( 1 / ε ) ) O_{s,d}\left(\varepsilon^{-4}\log^2 n\log\log n\log^2(1/\varepsilon)\right) O s , d ( ε − 4 log 2 n log log n log 2 ( 1/ ε ) ) s s s -colorful random certificate queries in expectation.
Theorem 1 answers Q1 in the affirmative and demonstrates the power of conditional sampling for hyperedge estimation. While estimating the number of hyperedges from uniformly random hyperedge samples requires Θ ~ ( m ) \widetilde{\Theta}(\sqrt{m}) Θ ( m ) queries by the classical birthday-paradox argument, our algorithm uses only a polylogarithmic number of s s s -colorful random certificate queries. This yields an exponential separation between the query complexity of hyperedge estimation using uniformly random hyperedge sampling and using s s s -colorful random certificate queries. We note that our algorithm treats all values of s s s and d d d in a unified manner.
Since every s s s -colorful random certificate query reveals at least as much information as the corresponding decision query, it is immediate that c I S C \mathrm{cISC} cISC is at least as powerful as c I S \mathrm{cIS} cIS . A natural question is whether this additional information leads to a genuine algorithmic advantage. The following theorem answers Q2 by showing that, for every 1 ≤ s < d 1 \le s < d 1 ≤ s < d , any algorithm using only the decision oracle c I S \mathrm{cIS} cIS must make a polynomial number of queries to estimate the number of hyperedges.
Theorem 2. Let 1 ≤ s < d 1 \le s < d 1 ≤ s < d . Any randomized algorithm that, given access only to the s s s -colorful decision oracle c I S \mathrm{cIS} cIS , outputs a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges with probability at least 2 / 3 2/3 2/3 must make Ω ~ s , d ( n d − s d − s + 1 ) \widetilde{\Omega}_{s,d}\left(n^{\frac{d-s}{d-s+1}}\right) Ω s , d ( n d − s + 1 d − s ) s s s -colorful decision queries in the worst case.
Theorem 2, together with Theorem 1, establishes an exponential separation between the s s s -colorful random certificate oracle c I S C \mathrm{cISC} cISC and the corresponding decision oracle c I S \mathrm{cIS} cIS for every 1 ≤ s < d 1 \le s < d 1 ≤ s < d .
A natural question is whether this exponential separation persists for all values of s s s . The answer is no. When s = d s=d s = d , [5 , 22 ] showed that the number of hyperedges can be estimated using only O ( ε − 2 log O ( d ) n ) O(\varepsilon^{-2}\log^{O(d)} n) O ( ε − 2 log O ( d ) n ) d d d -colorful decision queries. Thus, unlike the case s < d s<d s < d , random certificates are no longer necessary to obtain a polylogarithmic-query algorithm, albeit with a dependence on d d d in the exponent of the log n \log n log n factor. Combined with our lower bound for s < d s<d s < d , the query complexity of hyperedge estimation in the decision model undergoes a transition from polynomial to polylogarithmic precisely at s = d s=d s = d , thereby providing an answer to Q3.
Comparison with prior work
Our work also fits within the framework of hyperedge estimation under the global query access model, extending a growing body of work on graph and hypergraph estimation using global query oracles [21 , 22 , 23 , 11 , 5 , 15 , 3 , 18 , 1 ] .
For graphs (d = 2 d=2 d = 2 ), [11 , 18 ] studied the independent set (IS) oracle, which coincides with our 1-colorful decision oracle cIS. They showed that estimating the number of edges requires Θ ~ ( n ) \widetilde{\Theta}(\sqrt{n}) Θ ( n ) IS queries. Subsequently, [11 , 3 ] considered the more expressive bipartite independent set (BIS) oracle, corresponding to our 2-colorful decision oracle. The latter work gave a O ~ ( ε − 5 log 5 n ) \widetilde{O}(\varepsilon^{-5}\log^{5} n) O ( ε − 5 log 5 n ) -query algorithm for edge estimation.
For general d d d -uniform hypergraphs, [10 , 22 ] introduced the d d d -colorful decision oracle cIS. Over a series of works, increasingly efficient algorithms were developed for hyperedge estimation using d d d -colorful decision queries, culminating in the O d ( ε − 2 log 3 d + 5 n ) O_d(\varepsilon^{-2}\log^{3d+5} n) O d ( ε − 2 log 3 d + 5 n ) -query algorithm of [22 , 5 ] . Subsequently, Dell, Lapinskas, and Meeks Dell, Lapinskas, and Meeks [23 ] proved a lower bound of Ω d ( log d ( 1 − o d ( 1 ) ) n ) \Omega_d(\log^{d(1-o_d(1))} n) Ω d ( log d ( 1 − o d ( 1 )) n ) d d d -colorful decision queries, matching the upper bound up to a constant factor in the exponent of log n \log n log n . Consequently, at s = d s=d s = d , the exponent of the log n \log n log n factor in the decision model is Θ ( d ) \Theta(d) Θ ( d ) , whereas the exponent in Theorem 1 is an absolute constant.
Very recently, [15 ] introduced the random certificate analogue of the IS oracle, which is precisely our 1-colorful random certificate oracle cISC, and showed that edge estimation can be performed using only O ~ ( ε − 2 log 2 n ) \widetilde{O}(\varepsilon^{-2}\log^{2} n) O ( ε − 2 log 2 n ) queries. Together with the Ω ~ ( n ) \widetilde{\Omega}(\sqrt{n}) Ω ( n ) lower bound for the IS oracle due to [18 ] , this establishes an exponential separation between the random certificate and decision variants in the graph setting.
Table 1. Comparison of our results with prior work for hyperedge estimation. The dependence on ε \varepsilon ε is suppressed throughout; O ~ ( ⋅ ) \widetilde{O}(\cdot) O ( ⋅ ) hides poly( log log n ) (\log\log n) ( log log n ) factors.
Table 1 compares our results with prior work. Our work unifies these developments. We provide the first systematic study of the hierarchy of colorful query oracles. On the algorithmic side, we establish polylogarithmic-query algorithms for every s s s -colorful random certificate oracle cISC, thereby generalizing the recent result of [15 ] . On the lower-bound side, we prove polynomial lower bounds for the corresponding s s s -colorful decision oracles cIS whenever s < d s < d s < d , generalizing the Ω ~ ( n ) \tilde{\Omega}(\sqrt{n}) Ω ~ ( n ) lower bound for the IS oracle. Finally, we identify a sharp phase transition at s = d s = d s = d , where the query complexity of hyperedge estimation in the decision model drops from polynomial to polylogarithmic.
We remark that, for s = 1 s = 1 s = 1 , [23 ] established a stronger lower bound of Ω ~ ( n d / 4 ) \tilde{\Omega}(n^{d/4}) Ω ~ ( n d /4 ) . This matches our bound in Theorem 2 for graphs and 3-uniform hypergraphs, while being stronger for larger values of d d d . Nevertheless, our lower bound applies to the entire hierarchy of colorful decision oracles, ruling out polylogarithmic-query algorithms even when s = d − 1 s = d - 1 s = d − 1 .
A natural question arising from our work is whether the uniform randomness of the returned certificate is essential for obtaining polylogarithmic-query algorithms when s < d s < d s < d . Our algorithm relies crucially on the uniformity of the returned hyperedge to obtain unbiased estimates, and this reliance is provably necessary: an oracle that returns an arbitrary certificate can be simulated using only O s , d ( log n ) O_{s,d}(\log n) O s , d ( log n ) s s s -colorful decision (cIS) queries by binary search, and hence, by the lower bound in Theorem 2 , cannot yield a polylogarithmic-query algorithm for any s < d s < d s < d . Thus, the exponential speedup of Theorem 1 comes from the distribution of the returned witness. Interestingly, uniformity of the witness does not always confer such power: for approximate model counting, a SAT oracle returning a uniformly random satisfying assignment is provably no more powerful than an NP oracle [14 Theorem 1.2] . We return to this comparison through the lens of fine-grained complexity at the end of § 1.3 .
Connections to related areas
Our work is closely connected to several well-studied themes in query complexity and sublinear algorithms. The relationship between global query oracles and group testing has long been recognized, with the IS, BIS, and colorful decision oracles naturally viewed as structured group tests over the edge (or hyperedge) set [24 , 2 , 11 , 22 ] . In this viewpoint, hyperedges play the role of defective items, while the underlying vertex sets impose structural constraints on the families of hyperedges that can be queried. Our hierarchy of colorful query oracles provides a unified framework for studying these structured group-testing primitives and their random-certificate counterparts.
Decision vs Counting: Our work is also related to the classical theme of decision versus counting , initiated by the seminal work of [Sto83, Sto85], which showed that approximate counting can often be reduced to decision queries. In our setting, we investigate a related question by comparing the power of the s s s -colorful decision oracle with its random certificate counterpart. Our results show that, for every 1 ≤ s < d 1 \le s < d 1 ≤ s < d , access to uniformly random witness hyperedges yields an exponential separation in query complexity, whereas such separation disappears when s = d s = d s = d .
Conditional Sampling with Structural Constraints: Furthermore, the s s s -colorful random certificate oracle may be viewed as a structured form of conditional sampling , a powerful primitive that has led to exponential improvements for numerous testing and estimation problems over probability distributions [17 , 20 , 19 , 6 , 13 , 8 ] . Instead of conditioning on an arbitrary subset of the domain, our oracle conditions on the set of hyperedges intersecting a prescribed collection of pairwise disjoint vertex subsets. Theorem 1 demonstrates that this structured form of conditional sampling also leads to an exponential improvement over uniformly random hyperedge sampling. Finally, our work is closely related to the recent study of the power of random certificates in structured query models [RT16, CRS15, CCKM23].
Fine-grained Complexity: Finally, our results connect to the fine-grained complexity framework of Dell and Lapinskas [21 ] and Dell, Lapinskas, and Meeks [22 ] . In this framework, the witnesses of a computational problem (satisfying assignments, d d d -cliques, d d d -SUM solutions) form the hyperedges of a d d d -uniform hypergraph, and a decision procedure for restricted instances corresponds to a colorful decision oracle; their central insight is that approximate counting reduces to polylogarithmically many such decision calls when each of the d d d coordinates of a witness can be restricted to its own prescribed set. We refine this picture along two axes. First, the parameter s s s measures the granularity of control: an s s s -colorful oracle models a solver supporting only s s s distinct restriction classes, so that for s < d s < d s < d distinct coordinates must share classes. Theorem 2 shows that this coarsening is severe, and not an artifact of known techniques: for every s < d s < d s < d , approximate counting requires polynomially many decision calls, so the reductions of [21 , 22 ] make essential, information-theoretic use of coordinate-wise restrictions. Second, many natural solvers do not merely decide but search : when a witness exists, they return one. The s s s -colorful random certificate oracle models such a solver whose returned witness is uniformly distributed, and Theorem 1 shows that this search access suffices for polylogarithmic-query counting for every 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , including the entire regime s < d s < d s < d where decision access provably does not. Thus, for approximate counting of size-d d d witnesses, search with uniformly random certificates is exponentially more powerful than decision whenever the solver supports fewer than d d d restriction classes, a fine-grained analogue of the classical decision-versus-search phenomenon. It is instructive to contrast this with the result of [14 ] discussed above. In both settings, a decision oracle is upgraded to return a uniformly random witness whenever one exists: the s s s -colorful decision oracle c I S \mathsf{cIS} cIS is upgraded to c I S C \mathsf{cISC} cISC in our setting, and the NP oracle is upgraded to a uniform-witness SAT oracle in theirs. The outcomes are opposite: in our setting the upgrade reduces the query complexity of approximate counting exponentially for every s < d s < d s < d , whereas for approximate model counting it yields no reduction at all. The difference lies in the strength of the underlying decision oracle. For model counting, the decision oracle is already as powerful as the search oracle [14 Theorem 1.2] , leaving no gap for a witness to close, whereas for every s < d s < d s < d the s s s -colorful decision oracle is provably weak (Theorem 2 ), and it is precisely this gap that uniformly random witnesses close. The power of search over decision for approximate counting is thus governed not by the witness distribution alone but by whether decision access is already sufficient in the given query model.
Notations
We denote [ n ] [n] [ n ] to denote the set of integers { 1 , 2 , … , n } \{1,2,\ldots,n\} { 1 , 2 , … , n } . Given a vertex v v v , we denote N ( v ) \mathrm{N}(v) N ( v ) to be the set of neighbours of the vertex v v v . Consequently, given a set of vertices U ∈ V U \in V U ∈ V , we denote N ( U ) = ⋃ v ∈ U N ( v ) \mathrm{N}(U)=\bigcup_{v\in U}\mathrm{N}(v) N ( U ) = ⋃ v ∈ U N ( v ) to be the union of the neighbours of the vertices in U U U .
Throughout, we use G = ( V , E ) G=(V,E) G = ( V , E ) to denote a d d d -uniform hypergraph (or simply d d d -hypergraph) where V V V is the set of n n n vertices and E ⊆ ( [ n ] d ) E\subseteq\binom{[n]}{d} E ⊆ ( d [ n ] ) is a family of m m m hyperedges. For any subhypergraph H H H of G G G , we denote its vertex set by V ( H ) V(H) V ( H ) , its set of hyperedges by E ( H ) E(H) E ( H ) , and its hyperedge count by m ( H ) m(H) m ( H ) .
s s s -partite d d d -hypergraph Let V 1 , … , V s V_1,\ldots,V_s V 1 , … , V s be mutually disjoint subsets of V V V . We define the induced s s s -partite subhypergraph on sets, denoted by G [ V 1 , … , V s ] G[V_1,\ldots,V_s] G [ V 1 , … , V s ] with vertex set ⋃ i = 1 s V i \bigcup_{i=1}^{s}V_i ⋃ i = 1 s V i , hyperedge set is
E ( G [ V 1 , … , V s ] ) = { e ∈ E : e ∩ V i ≠ ∅ for all i ∈ [ s ] and e = ⋃ i ∈ [ s ] ( e ∩ V i ) } . E(G[V_1,\ldots,V_s])=\left\{e\in E:e\cap V_i\ne\varnothing\text{ for all }i\in[s]\text{ and }e=\bigcup_{i\in[s]}(e\cap V_i)\right\}. E ( G [ V 1 , … , V s ]) = ⎩ ⎨ ⎧ e ∈ E : e ∩ V i = ∅ for all i ∈ [ s ] and e = i ∈ [ s ] ⋃ ( e ∩ V i ) ⎭ ⎬ ⎫ .
Organization of the paper
We begin with Section 2, which provides a technical overview of our upper bound (Theorem 1) and lower bound (Theorem 2). Section 3.3 presents our algorithm for hyperedge estimation in an s s s -partite d d d -hypergraph. We then extend this algorithm to general d d d -hypergraphs in Section 4. Section 5 presents our lower bound, while Section 6 discusses applications of our results. Finally, Section 7 concludes the paper and discusses open problems.
Technical Overview
Upper Bounds
We outline the proof of our main upper bound (Theorem 1). The algorithm has two layers: an outer reduction from general d d d -hypergraphs to s s s -partite instances, and an inner estimator for s s s -partite d d d -hypergraphs (Theorem 3). The inner estimator combines three ingredients: a collision-based estimator for hypergraphs with few hyperedges, a sparsification step in which random certificates are used to verify that a randomly subsampled subhypergraph retains enough hyperedges, and a telescoping-product argument that assembles the final estimate.
Why the existing graph techniques fail For graphs (d = 2 d = 2 d = 2 ), edge estimation with global queries typically proceeds by decomposing the graph into bipartite subgraphs: a uniformly random bipartition retains each edge with probability exactly 1 / 2 1/2 1/2 and, since the survival events of any two distinct edges are pairwise independent, a Chebyshev bound shows that the number of surviving edges concentrates around half the edge count. This is the route taken in [11 ] and [15 ] . For d d d -hypergraphs, pairwise independence is lost: two hyperedges may share up to d − 1 d-1 d − 1 vertices, so their survival events under a random coloring or vertex subsampling are strongly correlated, and the second-moment argument for a single random decomposition breaks down. The known hypergraph techniques [4 , 22 ] circumvent this issue only in the fully colorful regime (cISC with s = d s = d s = d ), where a hyperedge can be pinned down coordinate by coordinate, and do not extend to the case s < d s < d s < d . Our algorithm sidesteps the lack of independence altogether. The key observation is that independence is only needed across repetitions, not within a decomposition: instead of proving that one random decomposition concentrates, we generate many independent candidate decompositions and then use uniformly random certificates to test which candidate is good; since the candidate counts are bounded random variables, Hoeffding’s bound applies to their average with no assumptions on within-decomposition correlations. This estimate-then-verify strategy is what allows a single algorithm to handle all 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d .
Reduction to multipartite hypergraphs Since a cISC query conditions on s s s pairwise disjoint vertex classes, we first reduce the problem to s s s -partite hypergraphs. The algorithm uniformly and independently partitions the vertex set V V V into s s s color classes V 1 , … , V s V_1,\ldots,V_s V 1 , … , V s . A fixed hyperedge survives in the induced s s s -partite subhypergraph if and only if its d d d vertices receive all s s s colors, which happens with probability f ( s , d ) / s d f(s,d)/s^d f ( s , d ) / s d , where f ( s , d ) = ∑ i = 0 s ( − 1 ) i ( s i ) ( s − i ) d f(s,d) = \sum_{i=0}^{s}(-1)^i\binom{s}{i}(s-i)^d f ( s , d ) = ∑ i = 0 s ( − 1 ) i ( i s ) ( s − i ) d is the number of onto functions from [ d ] [d] [ d ] to [ s ] [s] [ s ] . Because of the correlations described above, a single random partition need not concentrate. However, each partition yields a hyperedge count in [ 0 , m ] [0,m] [ 0 , m ] , and distinct partitions are mutually independent. Repeating the partition t = O s , d ( log ( δ − 1 ) / ε 2 ) t = O_{s,d}(\log(\delta^{-1})/\varepsilon^2) t = O s , d ( log ( δ − 1 ) / ε 2 ) times therefore generates an ensemble of independent s s s -partite instances such that, by a Hoeffding bound applied across the ensemble, the average hyperedge count, rescaled by the survival probability, is a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of m m m with probability 1 − δ 1 - \delta 1 − δ . It thus suffices to estimate the hyperedge count of each instance up to accuracy Θ ( ε ) \Theta(\varepsilon) Θ ( ε ) with confidence 1 − Θ ( 1 / t ) 1-\Theta(1/t) 1 − Θ ( 1/ t ) , and to take a union bound over the ensemble.
Small hyperedge count estimation via collision statistics For a s s s -partite d d d -hypergraph H H H with partite sets V 1 , … , V s V_1,\ldots,V_s V 1 , … , V s , the query c I S C ( V 1 , … , V s ) \mathrm{cISC}(V_1,\ldots,V_s) cISC ( V 1 , … , V s ) returns a uniformly random hyperedge of H H H , so standard birthday-paradox arguments [27 ] apply. They yield two procedures: a tester that distinguishes m ( H ) ≤ τ m(H)\le\tau m ( H ) ≤ τ from m ( H ) ≥ 8 τ m(H)\ge8\tau m ( H ) ≥ 8 τ using O ( τ log ( δ − 1 ) ) O(\sqrt{\tau}\log(\delta^{-1})) O ( τ log ( δ − 1 )) queries, and, whenever m ( H ) ≤ τ m(H)\le\tau m ( H ) ≤ τ , an estimator that outputs a ( 1 ± ε ) (1\pm\varepsilon) ( 1 ± ε ) -approximation of m ( H ) m(H) m ( H ) using O ( τ log ( δ − 1 ) / ε ) O(\sqrt{\tau}\log(\delta^{-1})/\varepsilon) O ( τ log ( δ − 1 ) / ε ) queries. We invoke these procedures only with τ \tau τ set to a large constant ζ \zeta ζ , so each call costs O ( log ( δ − 1 ) / ε ) O(\log(\delta^{-1})/\varepsilon) O ( log ( δ − 1 ) / ε ) queries. The details can be found in § 3.1 and Appendix § 8 .
Sparsification with verified selection To reduce a hypergraph H H H with many hyperedges to the small-count regime, we sparsify: each vertex of each partite set is kept independently with probability 1 / 2 1/2 1/2 , so that a hyperedge survives with probability exactly 2 − d 2^{-d} 2 − d . Once again, no concentration holds for a single trial. Instead, we draw t ′ = O ( 4 d log ( δ − 1 ) ) t'=O(4^d\log(\delta^{-1})) t ′ = O ( 4 d log ( δ − 1 )) independent candidate subhypergraphs H 1 , … , H t ′ H^1,\ldots,H^{t'} H 1 , … , H t ′ . Each count m ( H i ) m(H^i) m ( H i ) lies in [ 0 , m ( H ) ] [0,m(H)] [ 0 , m ( H )] and the candidates are mutually independent, so a Hoeffding bound shows that, with probability 1 − δ 1-\delta 1 − δ , at least one candidate satisfies m ( H i ) ≥ m ( H ) / 2 d + 1 m(H^i)\ge m(H)/2^{d+1} m ( H i ) ≥ m ( H ) / 2 d + 1 .
The random certificates now enter crucially: we must identify a good candidate without being able to count. We draw O d ( log ( δ − 1 ) ) O_d(\log(\delta^{-1})) O d ( log ( δ − 1 )) random hyperedges from H H H using cISC queries and, for each i ∈ [ t ′ ] i\in[t'] i ∈ [ t ′ ] , compute the fraction p ^ ( H i ) \hat{p}(H^i) p ^ ( H i ) of sampled hyperedges that survive in H i H^i H i . Since the certificates are uniformly distributed, p ^ ( H i ) \hat{p}(H^i) p ^ ( H i ) is an unbiased estimator of the true retained fraction m ( H i ) / m ( H ) m(H^i)/m(H) m ( H i ) / m ( H ) , and by a Hoeffding bound every p ^ ( H i ) \hat{p}(H^i) p ^ ( H i ) deviates from its mean by less than 1 / 2 d + 2 1/2^{d+2} 1/ 2 d + 2 additively, simultaneously for all i i i , with probability 1 − δ 1-\delta 1 − δ . Consequently, selecting any candidate with p ^ ( H i ) ≥ 1 / 2 d + 2 \hat{p}(H^i)\ge1/2^{d+2} p ^ ( H i ) ≥ 1/ 2 d + 2 is sound in both directions: the good candidate guaranteed above passes the test, and any candidate that passes satisfies m ( H i ) m ( H ) ≥ 1 2 d + 3 \frac{m(H^i)}{m(H)}\ge\frac{1}{2^{d+3}} m ( H ) m ( H i ) ≥ 2 d + 3 1 . We call a subhypergraph satisfying this property an approximation preserving subhypergraph ; the lower bound on the retained fraction is what guarantees the quality of the final estimator. We emphasise that the decision oracle cIS offers no analogue of this verification step: it can certify that a candidate contains some hyperedge, but not that it retains a constant fraction of them. Indeed, as discussed in § 1.2 , an oracle returning an arbitrary certificate can be simulated by O s , d ( log n ) O_{s,d}(\log n) O s , d ( log n ) adaptive cIS queries, so by Theorem 2 it cannot support this step either: uniformity of the certificate is exactly what is being used.
Constructing an approximation preserving sequence The construction proceeds via an iterative loop, starting with H 0 = H H_0=H H 0 = H . At each iteration j j j , we run threshold checking on H j H_j H j with the constant threshold ζ \zeta ζ : if the check reports m ( H j ) ≤ ζ m(H_j)\le\zeta m ( H j ) ≤ ζ , we halt and set H κ = H j H_\kappa=H_j H κ = H j ; otherwise, we sparsify H j H_j H j and select an approximation preserving subhypergraph H j + 1 H_{j+1} H j + 1 as above. Since the number of iterations is itself random, we run iteration j j j with confidence parameter δ / ( 3 ⋅ 2 j ) \delta/(3\cdot2^j) δ / ( 3 ⋅ 2 j ) ; the resulting failure probabilities form a geometric series, so a union bound over all iterations costs only δ \delta δ in total, regardless of when the loop halts. This yields a nested sequence of subhypergraphs with V ( H ) = V ( H 0 ) ⊇ ⋯ ⊇ V ( H κ ) V(H)=V(H_0)\supseteq\cdots\supseteq V(H_\kappa) V ( H ) = V ( H 0 ) ⊇ ⋯ ⊇ V ( H κ ) where, with probability 1 − δ 1-\delta 1 − δ , each H j H_j H j satisfies m ( H j ) m ( H j − 1 ) ≥ 1 2 d + 3 \frac{m(H_j)}{m(H_{j-1})}\ge\frac{1}{2^{d+3}} m ( H j − 1 ) m ( H j ) ≥ 2 d + 3 1 and m ( H κ ) ≤ 8 ζ = O ( 1 ) m(H_\kappa)\le8\zeta=O(1) m ( H κ ) ≤ 8 ζ = O ( 1 ) .
To control κ \kappa κ , observe that every vertex survives each round independently with probability 1 / 2 1/2 1/2 , so the round in which a fixed vertex is removed is a geometric random variable, and κ \kappa κ is at most the maximum of n n n such variables. Hence Pr [ κ > k ] ≤ n ⋅ 2 − k \Pr[\kappa>k]\le n\cdot2^{-k} Pr [ κ > k ] ≤ n ⋅ 2 − k , which gives E [ κ ] = O ( log n ) \mathbb{E}[\kappa]=O(\log n) E [ κ ] = O ( log n ) , E [ κ 2 ] = O ( log 2 n ) \mathbb{E}[\kappa^2]=O(\log^2 n) E [ κ 2 ] = O ( log 2 n ) , and E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) \mathbb{E}[\kappa^2\log\kappa]=O(\log^2 n\cdot\log\log n) E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) ; these are the quantities that drive the query complexity below.
Telescoping estimation For each j ∈ [ κ ] j \in[\kappa] j ∈ [ κ ] , define p j = m ( H j ) m ( H j − 1 ) p_j = \frac{m(H_j)}{m(H_{j-1})} p j = m ( H j − 1 ) m ( H j ) . The total number of hyperedges follows a telescoping product:
m ( H ) = m ( H κ ) ∏ j = 1 κ p j m(H) = \frac{m(H_\kappa)}{\prod_{j=1}^{\kappa} p_j} m ( H ) = ∏ j = 1 κ p j m ( H κ )
Instead of estimating each m ( H j ) m(H_j) m ( H j ) from scratch, we estimate only the ratios p j p_j p j : we sample random hyperedges from H j − 1 H_{j-1} H j − 1 via cISC queries and record the fraction that survive in H j H_j H j . Because p j ≥ 1 / 2 d + 3 = Ω d ( 1 ) p_j \ge1/2^{d+3} = \Omega_d(1) p j ≥ 1/ 2 d + 3 = Ω d ( 1 ) by construction of the approximation preserving sequence, a multiplicative ( 1 + ε j ) (1+\varepsilon_j) ( 1 + ε j ) -approximation of p j p_j p j requires only O d ( log ( δ − 1 ) / ε j 2 ) O_d(\log(\delta^{-1})/\varepsilon_j^2) O d ( log ( δ − 1 ) / ε j 2 ) queries, independent of n n n and of m ( H j ) m(H_j) m ( H j ) . We take ε j = ε / Θ ( κ ) \varepsilon_j = \varepsilon/\Theta(\sqrt{\kappa}) ε j = ε /Θ ( κ ) for every j j j , which yields estimates satisfying p ^ j = ( 1 + ε j ) p j \widehat{p}_j = (1+\varepsilon_j)p_j p j = ( 1 + ε j ) p j with the desired probability.5
Query complexity O ~ ( log 2 n ) \widetilde{O}(\log^2 n) O ( log 2 n ) Within a single s s s -partite instance, the sequence construction costs O ( log ( δ − 1 ) + κ 2 ) O(\log(\delta^{-1})+\kappa^2) O ( log ( δ − 1 ) + κ 2 ) queries and the birthday estimator O ( 1 / ε ) O(1/\varepsilon) O ( 1/ ε ) queries; the dominant cost is ratio estimation. There are κ \kappa κ ratios, each estimated to accuracy ε / Θ ( κ ) \varepsilon/\Theta(\sqrt{\kappa}) ε /Θ ( κ ) with confidence 1 / O ( κ ) 1/O(\kappa) 1/ O ( κ ) , at a cost of O d ( κ log κ / ε 2 ) O_d(\kappa\log\kappa/\varepsilon^2) O d ( κ log κ / ε 2 ) queries per ratio, hence O d ( κ 2 log κ / ε 2 ) O_d(\kappa^2\log\kappa/\varepsilon^2) O d ( κ 2 log κ / ε 2 ) in total. Taking expectations over κ \kappa κ using E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) \mathbb{E}[\kappa^2\log\kappa] = O(\log^2 n\cdot\log\log n) E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) gives an expected cost of O d ( log 2 n ⋅ log log n / ε 2 ) O_d(\log^2 n\cdot\log\log n/\varepsilon^2) O d ( log 2 n ⋅ log log n / ε 2 ) per instance. One logarithm is thus the length of the approximation preserving sequence, and the other arises because each ratio must be estimated to accuracy ε / κ \varepsilon/\sqrt{\kappa} ε / κ . Both phenomena are governed solely by the vertex-halving rate 1 / 2 1/2 1/2 , so the exponent of the log n \log n log n factor is an absolute constant: the parameters s s s and d d d enter only through the constants 2 d + 3 2^{d+3} 2 d + 3 , 4 d 4^d 4 d and f ( s , d ) f(s,d) f ( s , d ) hidden in O s , d ( ⋅ ) O_{s,d}(\cdot) O s , d ( ⋅ ) . Finally, the outer reduction runs the instance estimator t = O s , d ( 1 / ε 2 ) t = O_{s,d}(1/\varepsilon^2) t = O s , d ( 1/ ε 2 ) times with confidence parameter Θ ( 1 / t ) \Theta(1/t) Θ ( 1/ t ) , contributing a factor O ( log ( 1 / ε ) / ε 2 ) O(\log(1/\varepsilon)/\varepsilon^2) O ( log ( 1/ ε ) / ε 2 ) and yielding the bound of Theorem 1. This is in sharp contrast to the decision-oracle setting at s = d s=d s = d , where the exponent of the log n \log n log n factor is Θ ( d ) \Theta(d) Θ ( d ) [5 , 23 ] .
Lower Bounds
Let α : = d − s d − s + 1 \alpha:= \frac{d-s}{d-s+1} α := d − s + 1 d − s . We prove the lower bound in two regimes based on the number of hyperedges. In the dense regime, where m ≥ c n d − 1 / ( 2 d ) d − 1 m \ge c n^{d-1}/(2d)^{d-1} m ≥ c n d − 1 / ( 2 d ) d − 1 , we prove a lower bound of Ω ~ ( ( n d / m ) α ) \widetilde{\Omega}((n^d/m)^\alpha) Ω (( n d / m ) α ) queries. In the sparse regime, where m < c n d − 1 / ( 2 d ) d − 1 m < c n^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 , we prove a lower bound of Ω ~ ( m α / ( d − 1 ) ) \widetilde{\Omega}(m^{\alpha/(d-1)}) Ω ( m α / ( d − 1 ) ) queries. These two bounds match, up to polylogarithmic factors, when m = Θ ( n d − 1 ) m = \Theta(n^{d-1}) m = Θ ( n d − 1 ) . So the worst case query complexity is Ω ~ ( n α ) \widetilde{\Omega}(n^\alpha) Ω ( n α ) , as stated in Theorem 2.
Dense regime. We prove the lower bound of Ω ~ ( ( n d / m ) α ) \widetilde{\Omega}((n^d/m)^\alpha) Ω (( n d / m ) α ) queries for s s s -colorful cIS oracle access, where s < d s < d s < d . The main idea is to hide a small set of vertices, each of which is part of many hyperedges. We show that finding even one such vertex takes many queries.
We prove the bound using Yao’s min-max principle. We define two distributions, D Y e s \mathcal{D}_{\mathrm{Yes}} D Yes and D N o \mathcal{D}_{\mathrm{No}} D No , over hypergraphs G G G . In both distributions, the vertex set V ( G ) V(G) V ( G ) is split into d d d parts A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d uniformly at random. Every colorful d d d tuple ( a 1 , … , a d ) ∈ A 1 × ⋯ × A d (a_1,\ldots,a_d) \in A_1 \times\cdots\times A_d ( a 1 , … , a d ) ∈ A 1 × ⋯ × A d is made a hyperedge independently, with probability Θ ( d d m / n d ) \Theta(d^d m/n^d) Θ ( d d m / n d ) .
To build G ∼ D N o G \sim\mathcal{D}_{\mathrm{No}} G ∼ D No , we add one more step. We form a set B ⊆ A 1 B \subseteq A_1 B ⊆ A 1 by placing each vertex of A 1 A_1 A 1 into B B B independently, with probability Θ ( ( 2 d ) d m log n / n d ) \Theta((2d)^d m\log n/n^d) Θ (( 2 d ) d m log n / n d ) . For every vertex v ∈ B v \in B v ∈ B , we add all hyperedges of the form ⟨ v , a 2 , … , a d ⟩ \langle v,a_2,\ldots,a_d\rangle ⟨ v , a 2 , … , a d ⟩ where a i ∈ A i a_i \in A_i a i ∈ A i for each i ≥ 2 i \ge2 i ≥ 2 . Hence, B B B forms the small set of high degree vertices to establish the indistinguishability argument.
We choose the constants above so that the following hold with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) . First, ∣ V ( G ) ∣ = n |V(G)|=n ∣ V ( G ) ∣ = n and ∣ E ( G ) ∣ = Θ ( m ) |E(G)|=\Theta(m) ∣ E ( G ) ∣ = Θ ( m ) under both distributions. Second, a graph from D Y e s D_{\mathrm{Yes}} D Yes has at most m / 2 m/2 m /2 hyperedges. Third, a graph from D N o D_{\mathrm{No}} D No has ∣ B ∣ = Θ ( m log n / n d − 1 ) |B|=\Theta(m\log n/n^{d-1}) ∣ B ∣ = Θ ( m log n / n d − 1 ) , and so has at least m m m hyperedges. This means a graph from D N o D_{\mathrm{No}} D No has at least twice as many hyperedges as a graph from D Y e s D_{\mathrm{Yes}} D Yes .
Let q : = Θ ~ ( ( n d / m ) α ) q:=\widetilde{\Theta}((n^d/m)^\alpha) q := Θ (( n d / m ) α ) . We want to show that any algorithm making o ( q ) o(q) o ( q ) queries can not hit a vertex in the dense subset B B B . However, this can not hold if the query sets can be arbitrarily large. On the other hand, due to the construction of the graph distributions, any large query sets contain an edge with high probability. We leverage these observations by considering two possible cases for the queries. Given a cIS query ( Q 1 , … , Q s ) (Q_1,\ldots,Q_s) ( Q 1 , … , Q s ) , and a fixed threshold τ : = Θ ( ( n d / m ) 1 / ( d − s + 1 ) ) \tau:=\Theta((n^d/m)^{1/(d-s+1)}) τ := Θ (( n d / m ) 1/ ( d − s + 1 ) ) , we consider the following cases: either ∣ Q i ∣ ≤ τ |Q_i|\le\tau ∣ Q i ∣ ≤ τ for all i i i , or ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ for some i i i .
If ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ for some i i i , we show that the query sets either contain an edge or there exists a small certificate to show that they are not independent. If each of the remaining query sets contain at least one colorful ( s − 1 ) (s-1) ( s − 1 ) -tuple (i.e. ( s − 1 ) (s-1) ( s − 1 ) vertices of different colors consisting of one from each of the remaining query sets), then the value of τ \tau τ ensures that these query sets contains at least Θ ( n d / m ) \Theta(n^d/m) Θ ( n d / m ) possible colorful tuples. This is the reciprocal of the hyperedge probability. Hence, we can use a Chernoff argument to establish that any such query throughout the algorithm contains an edge with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) .
On the other hand, if there are a subset of the query sets that does not contain a colorful tuple, we show that all query sets in this subset contain less than τ \tau τ vertices. Observe that the coloring A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d is chosen at random, and it does not depend on the query. So a large query set meets every color class with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) . By an argument using the Hall’s marriage theorem, we show that any such set can not be part of such subsets. Based on these two results, we restrict the size of the query sets to τ \tau τ for the remaining part of the proof.
We now bound the number of queries needed to tell D Y e s D_{\mathrm{Yes}} D Yes apart from D N o D_{\mathrm{No}} D No with probability at least 2 / 3 2/3 2/3 . Since B = ∅ B=\varnothing B = ∅ under D Y e s D_{\mathrm{Yes}} D Yes , this task requires at least as many queries as are needed to touch a vertex of B B B under D N o D_{\mathrm{No}} D No . Here, touching B B B means the query’s vertex set meets B B B . Since only small queries are useful, the chance that one such query touches B B B is at most
p = O ( τ ⋅ m log n n d ) = O ~ ( ( m n d ) α ) . p=O\left(\tau\cdot\frac{m\log n}{n^d}\right)=\widetilde{O}\left(\left(\frac{m}{n^d}\right)^\alpha\right). p = O ( τ ⋅ n d m log n ) = O ( ( n d m ) α ) .
So the number of queries needed to touch B B B is at least 1 / p = Ω ~ ( q ) 1/p=\widetilde{\Omega}(q) 1/ p = Ω ( q ) , which is Ω ~ ( ( n d / m ) α ) \widetilde{\Omega}((n^d/m)^\alpha) Ω (( n d / m ) α ) . For this argument to work, we need ∣ B ∣ = Θ ( m log n / n d − 1 ) |B|=\Theta(m\log n/n^{d-1}) ∣ B ∣ = Θ ( m log n / n d − 1 ) to be Ω ( log n ) \Omega(\log n) Ω ( log n ) . This lets ∣ B ∣ |B| ∣ B ∣ concentrate using Chernoff bounds. This is exactly why we need m ≥ c n d − 1 / ( 2 d ) d − 1 m\ge cn^{d-1}/(2d)^{d-1} m ≥ c n d − 1 / ( 2 d ) d − 1 .
From non-adaptive to adaptive algorithms. The argument above only holds for non-adaptive algorithms. A non-adaptive algorithm fixes all its queries in advance, before seeing any answers. An adaptive algorithm can choose a query based on earlier answers. For example, it might learn the colors of the vertices it has already explored, and use them to grow a query set past τ \tau τ while avoiding hyperedges, specifically to search for B B B more cheaply.
To handle this case, we describe an augmented oracle that simulates the cIS oracle but reveals more information. At each stage, the algorithm maintains a knowledge triplet ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) , where K K K is the set of explored vertices, ℓ \ell ℓ labels each vertex of K K K by the set among A 1 , … , A d , B A_1,\ldots,A_d,B A 1 , … , A d , B containing it, and e e e records the hyperedges among the vertices of K K K . Given a query ( Q 1 , … , Q s ) (Q_1,\ldots,Q_s) ( Q 1 , … , Q s ) , the augmented oracle updates ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) as follows. If some subset of the query sets cannot form a colorful tuple, it reveals a minimal such subset. If ∣ Q i ∣ ≤ τ |Q_i|\le\tau ∣ Q i ∣ ≤ τ for all i i i , it reveals all queried vertices. If ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ for some i i i , it samples a subset R i ⊆ Q i R_i\subseteq Q_i R i ⊆ Q i of size τ \tau τ uniformly at random and reveals these vertices; if ( R 1 , … , R s ) (R_1,\ldots,R_s) ( R 1 , … , R s ) is an independent set, the oracle fails and reveals the entire graph. The answer to the original cIS query can always be determined from the updated triplet. Hence, it is enough to prove the lower bound for algorithms using the augmented oracle.
We view such an algorithm as a tree of depth q q q where q q q is the number of queries made by the algorithm. We say a node is good if no vertex of B B B has been revealed so far. The key observation is that, given the algorithm is at a good node, the conditional distribution of the unexplored graph retains sufficient randomness. The unexplored vertices are still assigned to A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d and to B B B independently at random. Moreover, every colourful d d d -tuple containing an unexplored vertex is still a hyperedge independently with probability Θ ( d d m / n d ) \Theta(d^d m/n^d) Θ ( d d m / n d ) , exactly as in the construction. Hence, no matter how a query was chosen based on earlier answers, the algorithm has not seen the randomness that decides its answer. Using this, we show that each query takes the algorithm from a good node to a bad node with probability o ( 1 / q ) o(1/q) o ( 1/ q ) . If all query sets have size at most τ \tau τ , the query hits B B B with probability o ( 1 / q ) o(1/q) o ( 1/ q ) . A query set larger than τ \tau τ meets every color class with high probability, so by Hall’s marriage theorem it cannot be part of a minimal subset that fails to form a colourful tuple. Finally, if some query set is larger than τ \tau τ , the sampled sets ( R 1 , … , R s ) (R_1,\ldots,R_s) ( R 1 , … , R s ) contain Ω ( log d − s + 1 n ) \Omega(\log^{d-s+1} n) Ω ( log d − s + 1 n ) potential hyperedges in expectation, so by a Chernoff bound the oracle fails with probability o ( 1 / q ) o(1/q) o ( 1/ q ) . By a union bound over all q q q queries, the algorithm reaches a bad node with probability o ( 1 ) o(1) o ( 1 ) .
To complete the argument, we couple D Y e s \mathcal{D}_{\mathrm{Yes}} D Yes and D N o \mathcal{D}_{\mathrm{No}} D No : we draw a graph from D Y e s \mathcal{D}_{\mathrm{Yes}} D Yes , and obtain a graph from D N o \mathcal{D}_{\mathrm{No}} D No by choosing B ⊆ A 1 B \subseteq A_1 B ⊆ A 1 and adding the corresponding hyperedges. As long as no vertex of B B B is revealed, the algorithm behaves identically on both graphs. Hence, every good node is reached with probability no larger under D N o \mathcal{D}_{\mathrm{No}} D No than under D Y e s \mathcal{D}_{\mathrm{Yes}} D Yes , and the algorithm cannot distinguish the two distributions with probability more than o ( 1 ) o(1) o ( 1 ) . The formal analysis is presented in Section 5.
Sparse regime. The lower bound of Ω ~ ( m α / ( d − 1 ) ) \widetilde{\Omega}(m^{\alpha/(d-1)}) Ω ( m α / ( d − 1 ) ) , for the case m < c n d − 1 / ( 2 d ) d − 1 m < c n^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 , follows by a reduction from the dense regime.
Let n 2 : = ( ( 2 d ) d − 1 m / c ) 1 / ( d − 1 ) n_2 := ((2d)^{d-1}m/c)^{1/(d-1)} n 2 := (( 2 d ) d − 1 m / c ) 1/ ( d − 1 ) , so that m = c n 2 d − 1 / ( 2 d ) d − 1 m = c n_2^{d-1}/(2d)^{d-1} m = c n 2 d − 1 / ( 2 d ) d − 1 . Let H 2 H_2 H 2 be an instance of the dense regime on n 2 n_2 n 2 vertices. We build H 1 : = H 2 ⊔ H 0 H_1 := H_2 \sqcup H_0 H 1 := H 2 ⊔ H 0 , where H 0 H_0 H 0 is a rank d d d hypergraph on Θ ( n ) \Theta(n) Θ ( n ) new vertices, disjoint from H 2 H_2 H 2 , respecting the same color partition, and containing no hyperedges. Then H 1 H_1 H 1 has Θ ( n ) \Theta(n) Θ ( n ) vertices and the same number of hyperedges as H 2 H_2 H 2 , matching the input size a sparse regime algorithm is assumed to handle. Since m < c n d − 1 / ( 2 d ) d − 1 m < c n^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 , we get n 2 d − 1 = ( 2 d ) d − 1 m / c < n d − 1 n_2^{d-1} = (2d)^{d-1}m/c < n^{d-1} n 2 d − 1 = ( 2 d ) d − 1 m / c < n d − 1 , so n 2 < n n_2 < n n 2 < n . Thus ( n 2 , m ) (n_2,m) ( n 2 , m ) satisfies the requirement of the dense regime.
Every s s s -colorful cIS query on H 1 H_1 H 1 can be answered using exactly one query on H 2 H_2 H 2 : restrict each queried set to its intersection with V ( H 2 ) V(H_2) V ( H 2 ) . The answer is unchanged, since H 0 H_0 H 0 has no hyperedges and none exist between H 0 H_0 H 0 and H 2 H_2 H 2 .
Now suppose an algorithm violates the claimed sparse bound. Using the simulation above, it gives an algorithm on H 2 H_2 H 2 using o ( ( n 2 d / m ) α ) o((n_2^d/m)^\alpha) o (( n 2 d / m ) α ) queries. Substituting n 2 = ( ( 2 d ) d − 1 m / c ) 1 / ( d − 1 ) n_2 = ((2d)^{d-1}m/c)^{1/(d-1)} n 2 = (( 2 d ) d − 1 m / c ) 1/ ( d − 1 ) , this is exactly the bound ruled out by the dense regime. Hence, a contradiction. This establishes the lower bound holds for the sparse regime.
Hyperedge Estimation of s s s -Partite d d d -Hypergraph
In this section, we design a randomized algorithm to estimate the number of hyperedges in a s s s -partite d d d -hypergraph. Specifically, we will show that,
Theorem 3 (Hyperedge estimation of s s s -partite d d d -hypergraph). For every integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , ϵ ∈ ( 0 , 1 / 3 ) \epsilon\in(0,1/3) ϵ ∈ ( 0 , 1/3 ) and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , there exists a randomized algorithm that, given access to the s s s -colorful
random certificate oracle cISC of a s s s -partite d d d -hypergraph H H H , outputs a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges of H H H with probability at least 1 − δ 1-\delta 1 − δ using O d ( ε − 2 log 2 n log log n log ( δ − 1 ) ) O_d(\varepsilon^{-2}\log^2 n\log\log n\log(\delta^{-1})) O d ( ε − 2 log 2 n log log n log ( δ − 1 )) cISC queries.
In Section 3.1, we present the threshold checking procedures. Section 3.2 is organised into three parts that describe the procedure to generate an approximation preserving sequence. Section 3.2.1 introduces the sequential procedures EnsembleColorPartite (Lemma 9) and ApproxSubhypergraph (Lemma 10) to generate an approximation preserving subhypergraph. Section 3.2.2 presents the procedure ApproxSubsequence (Lemma 12) to generate an approximation preserving subsequence. Finally, in Section 3.3 we describe the procedure to estimate the hyperedge count in a s s s -partite d d d -hypergraph.
Threshold checking
Let a fixed threshold (τ ≥ 1 \tau\ge1 τ ≥ 1 ) be given. We consider the following threshold-checking problem: given a s s s -partite d d d -hypergraph H H H , determine whether m ( H ) < τ m(H) < \tau m ( H ) < τ . If this condition holds, the goal is to estimate the ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) approximation of m ( H ) m(H) m ( H ) .
To address this task, we present two algorithms IsCollision and BirthdayEstimate based on the birthday paradox techniques [27 Chapter 5] . IsCollision distinguishes between the cases m ( H ) < τ m(H) < \tau m ( H ) < τ or m ( H ) ≥ 8 τ m(H) \ge8\tau m ( H ) ≥ 8 τ (Lemma 4). BirthdayEstimate outputs an ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) approximation of m ( H ) m(H) m ( H ) , if m ( H ) < τ m(H) < \tau m ( H ) < τ (Lemma 5). The corresponding guarantees are stated below. For details, refer to Appendix A.
Lemma 4 (Correctness of IsCollision). For a s s s -partite d d d -hypergraph H H H and a threshold τ ≥ 1 \tau\ge1 τ ≥ 1 , the following statements hold for IsCollision with probability at least 1 − δ 1-\delta 1 − δ :
(i) If m ( H ) ≤ τ m(H) \le\tau m ( H ) ≤ τ , then IsCollision outputs 1.
(ii) If m ( H ) ≥ 8 τ m(H) \ge8\tau m ( H ) ≥ 8 τ , then IsCollision outputs 0.
The number of cISC queries made is O ( τ log ( δ − 1 ) ) O(\sqrt{\tau}\log(\delta^{-1})) O ( τ log ( δ − 1 )) .
Suppose that a collision is detected, i.e., IsCollision outputs 1. We can obtain a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of m ( H ) m(H) m ( H ) using additional cISC queries. This estimation procedure is implemented in BirthdayEstimate.
Lemma 5 (Correctness of BirthdayEstimate). For a s s s -partite d d d -hypergraph H H H , threshold τ ≥ 1 \tau\ge1 τ ≥ 1 and approximation error ε > 0 \varepsilon> 0 ε > 0 . If m ( H ) ≤ τ m(H) \le\tau m ( H ) ≤ τ , then BirthdayEstimate outputs an ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) estimate of m ( H ) m(H) m ( H ) with probability at least 1 − δ 1-\delta 1 − δ . The number of cISC query made is Θ ( ε − 1 τ log ( δ − 1 ) ) \Theta(\varepsilon^{-1}\sqrt{\tau}\log(\delta^{-1})) Θ ( ε − 1 τ log ( δ − 1 )) .
Graph sparsification
In this section, we will describe a procedure to generate an approximation preserving sequence (formally defined below) H 0 , … , H κ H_0,\ldots,H_\kappa H 0 , … , H κ with probability at least 1 − δ 1-\delta 1 − δ . Moreover, the expected query complexity of the procedure is O ( log 2 n ) O(\log^2 n) O ( log 2 n ) .
Definition 6 (Approximation preserving subhypergraph). Let H 1 , H 2 H^1,H^2 H 1 , H 2 be subhypergraphs of H H H such that V ( H 2 ) ⊆ V ( H 1 ) V(H^2) \subseteq V(H^1) V ( H 2 ) ⊆ V ( H 1 ) , we say that H 2 H^2 H 2 is an approximation preserving subhypergraph of H 1 H^1 H 1 if
m ( H 2 ) m ( H 1 ) ≥ 1 2 d + 3 . \frac{m(H^2)}{m(H^1)} \ge\frac{1}{2^{d+3}}. m ( H 1 ) m ( H 2 ) ≥ 2 d + 3 1 .
Definition 7 (Approximation preserving sequence). For a sequence of subhypergraphs H 0 , H 1 , … , H κ H_0, H_1, \ldots, H_\kappa H 0 , H 1 , … , H κ with V ( H 0 ) ⊇ V ( H 1 ) … ⊇ V ( H κ ) V(H_0) \supseteq V(H_1) \ldots\supseteq V(H_\kappa) V ( H 0 ) ⊇ V ( H 1 ) … ⊇ V ( H κ ) . We say that H 0 , H 1 , … , H κ H_0, H_1, \ldots, H_\kappa H 0 , H 1 , … , H κ is an approximation preserving sequence if H i − 1 H_{i-1} H i − 1 is an approximation preserving subset of H i H_i H i for all i ∈ [ κ ] i \in[\kappa] i ∈ [ κ ] .
Formally, we will prove the following lemma in this section.
Lemma 8 (Approximate sequence lemma). There exists an algorithm that outputs an approximation preserving sequence H 0 , H 1 , … , H κ H_0, H_1, \ldots, H_\kappa H 0 , H 1 , … , H κ with probability at least 1 − δ 1-\delta 1 − δ . The expected value of κ \kappa κ is O ( log n ) O(\log n) O ( log n ) , and the expected number of cISC queries made is O ( log 2 n ) O(\log^2 n) O ( log 2 n ) .
Procedure to find an approximation preserving subhypergraph
In this section, we describe two procedures EnsembleColorPartite and ApproxSubhypergraph (see Algorithm 2 and 1) for finding the approximation preserving subhypergraph H ′ H' H ′ of H H H , for any given s s s -partite d d d -hypergraph H H H .
EnsembleColorPartite takes a s s s -partite d d d -hypergraph H H H as input. It outputs multiple s s s -partite candidates for an approximation preserving subhypergraph. ApproxSubhypergraph takes the original hypergraph H H H and its subhypergraphs H 1 , H 2 , … , H t H^1, H^2, \ldots, H^t H 1 , H 2 , … , H t (output of EnsembleColorPartite) as input and generates an approximation preserving subhypergraph using the cISC queries.
These two procedures will be used in the next section for the construction of an approximation preserving sequence. Formally, we will prove the following:
Lemma 9 (Correctness of EnsembleColorPartite). For any s s s -partite d d d -hypergraph H H H with m ( H ) ≥ ζ m(H) \ge\zeta m ( H ) ≥ ζ and ( ε , δ ) ∈ ( 0 , 1 ) (\varepsilon,\delta) \in(0,1) ( ε , δ ) ∈ ( 0 , 1 ) . Let H 1 , H 2 , … , H t H^1, H^2, \ldots, H^t H 1 , H 2 , … , H t be the output of EnsembleColorPartite, then we have,
Pr [ ∃ i ∈ [ t ] , m ( H i ) ≥ m ( H ) 2 d + 1 ] ≥ 1 − δ \Pr\left[\exists i \in[t],\ m(H^i) \ge\frac{m(H)}{2^{d+1}}\right] \ge1-\delta Pr [ ∃ i ∈ [ t ] , m ( H i ) ≥ 2 d + 1 m ( H ) ] ≥ 1 − δ where t = O ( 4 d log ( δ − 1 ) ) t=O(4^d\log(\delta^{-1})) t = O ( 4 d log ( δ − 1 )) .
Lemma 10 (Correctness of ApproxSubhypergraph). Let H ′ H' H ′ be the output of ApproxSubhypergraph that takes s s s -partite d d d -hypergraph H H H and its subhypergraphs H 1 , … , H t H^1, \ldots, H^t H 1 , … , H t as input. Then, H ′ H' H ′ is an approximation preserving subhypergraph of H H H with probability at least 1 − δ 1-\delta 1 − δ . The number of cISC queries made is O ( 4 d log ( δ − 1 ) ) O(4^d\log(\delta^{-1})) O ( 4 d log ( δ − 1 )) .
Algorithm 1 EnsembleColorPartite(H, δ)
Require: s-partite d-hypergraph H with partite sets V₁, . . . , Vₛ, confidence parameter δ ∈ (0, 1).
Ensure: Subhypergraphs H¹, H², . . . , Hᵗ of H where t = O(4ᵈ log(δ⁻¹))
1: for i = 1 to t = O(4ᵈ log(δ⁻¹)) do
2: for j = 1 to s do
3: Sample each vertex of Vⱼ with probability 1/2 and let Vᵢⱼ be the subset of sampled vertices.
4: end for
5: Let Hⁱ = H [Vᵢ₁, Vᵢ₂, . . . , Vᵢₛ].
6: end for
7: return H¹, H², . . . , Hᵗ
Now, we present the proof of Lemma 9 Proof of Lemma 9. Fix an s s s -partite d d d -hypergraph H i H^i H i . For every hyperedge e ∈ E ( H ) e \in E(H) e ∈ E ( H ) , define a indicator random variable
I e = { 1 If e ∈ H i 0 Otherwise I_e =
\begin{cases}
1 & \text{If } e \in H^i \\
0 & \text{Otherwise}
\end{cases} I e = { 1 0 If e ∈ H i Otherwise
The expected number of hyperedges in H i H^i H i is
E [ m ( H i ) ] = ∑ e ∈ E ( H ) Pr [ I e = 1 ] = m ( H ) 2 d \mathbb{E}\left[m(H^i)\right] = \sum_{e \in E(H)} \Pr[I_e = 1] = \frac{m(H)}{2^d} E [ m ( H i ) ] = e ∈ E ( H ) ∑ Pr [ I e = 1 ] = 2 d m ( H )
Therefore,
E [ ∑ i = 1 t m ( H i ) ] = m ( H ) ⋅ t 2 d \mathbb{E}\left[\sum_{i=1}^{t}m(H^i)\right] = \frac{m(H)\cdot t}{2^d} E [ i = 1 ∑ t m ( H i ) ] = 2 d m ( H ) ⋅ t
Now, applying Hoeffding’s Bound (lemma 35), with t = O ~ ( 4 d ) t = \widetilde{O}(4^d) t = O ( 4 d ) and 0 ≤ m ( H i ) ≤ m ( H ) 0 \leq m(H^i) \leq m(H) 0 ≤ m ( H i ) ≤ m ( H ) , for all i ∈ [ t ] i \in[t] i ∈ [ t ] , we get
Pr [ ∣ 2 d t ⋅ ∑ i = 1 t m ( H i ) − m ( H ) ∣ ≥ m ( H ) 2 ] = Pr [ ∣ ∑ i = 1 t m ( H i ) − t 2 d ⋅ m ( H ) ∣ ≥ t 2 d + 1 ⋅ m ( H ) ] ≤ 2 ⋅ exp ( 2 t 2 2 d + 1 ) ≤ δ \Pr\left[\left|\frac{2^d}{t}\cdot\sum_{i=1}^{t}m(H^i)-m(H)\right|\geq\frac{m(H)}{2}\right]
=
\Pr\left[\left|\sum_{i=1}^{t}m(H^i)-\frac{t}{2^d}\cdot m(H)\right|\geq\frac{t}{2^{d+1}}\cdot m(H)\right]
\leq2\cdot\exp\left(\frac{2t}{2^{2d+1}}\right)\leq\delta Pr [ t 2 d ⋅ i = 1 ∑ t m ( H i ) − m ( H ) ≥ 2 m ( H ) ] = Pr [ i = 1 ∑ t m ( H i ) − 2 d t ⋅ m ( H ) ≥ 2 d + 1 t ⋅ m ( H ) ] ≤ 2 ⋅ exp ( 2 2 d + 1 2 t ) ≤ δ
Therefore, we get
Pr [ 3 m ( H ) 2 d + 1 ≥ ∑ i = 1 t m ( H i ) t ≥ m ( H ) 2 d + 1 ] ≥ 1 − δ \Pr\left[\frac{3m(H)}{2^{d+1}}\geq\frac{\sum_{i=1}^{t}m(H^i)}{t}\geq\frac{m(H)}{2^{d+1}}\right]\geq1-\delta Pr [ 2 d + 1 3 m ( H ) ≥ t ∑ i = 1 t m ( H i ) ≥ 2 d + 1 m ( H ) ] ≥ 1 − δ
which completes the proof.
Algorithm 2 ApproxSubhypergraph( H , H 1 , … , H t , δ ) (H,H^1,\ldots,H^t,\delta) ( H , H 1 , … , H t , δ )
Require: Subhypergraphs H 1 , … , H t H^1,\ldots,H^t H 1 , … , H t of H H H where t = O ( 4 d log ( δ − 1 ) ) t=O(4^d\log(\delta^{-1})) t = O ( 4 d log ( δ − 1 )) , cISC query access to H H H and a confidence parameter δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) .
Ensure: A subhypergraph H ′ H' H ′ of H H H .
Uniformly and independently sample O ( 4 d log ( δ − 1 ) ) O(4^d\log(\delta^{-1})) O ( 4 d log ( δ − 1 )) random hyperedges from H H H and let S S S be the multi-set of sampled hyperedges.
Compute p ^ ( H i ) = 1 ∣ S ∣ ∑ e ∈ S 1 e ∈ E ( H i ) \widehat{p}(H^i)=\frac{1}{|S|}\sum_{e\in S}1_{e\in E(H^i)} p ( H i ) = ∣ S ∣ 1 ∑ e ∈ S 1 e ∈ E ( H i ) for i ∈ [ t ] i\in[t] i ∈ [ t ] .
if There exists i ∈ [ t ] i\in[t] i ∈ [ t ] such that p ^ ( H i ) ≥ 1 2 d + 2 \widehat{p}(H^i)\geq\frac{1}{2^{d+2}} p ( H i ) ≥ 2 d + 2 1 then
return H i H^i H i
else
return Any H i H^i H i arbitrarily.
end if
Lemma 11. With probability at least 1 − δ 1-\delta 1 − δ , the following statements hold for ApproxSubhypergraph
(i) If m ( H i ) m ( H ) ≥ 1 2 d + 1 \frac{m(H^i)}{m(H)}\geq\frac{1}{2^{d+1}} m ( H ) m ( H i ) ≥ 2 d + 1 1 , then p ^ ( H i ) ≥ 1 2 d + 2 \widehat{p}(H^i)\geq\frac{1}{2^{d+2}} p ( H i ) ≥ 2 d + 2 1 .
(ii) If m ( H i ) m ( H ) < 1 2 d + 3 \frac{m(H^i)}{m(H)}<\frac{1}{2^{d+3}} m ( H ) m ( H i ) < 2 d + 3 1 , then p ^ ( H i ) < 1 2 d + 2 \widehat{p}(H^i)<\frac{1}{2^{d+2}} p ( H i ) < 2 d + 2 1 .
The number of cISC queries made is O ( 4 d log ( δ − 1 ) ) O(4^d\log(\delta^{-1})) O ( 4 d log ( δ − 1 )) samples.
Proof. Fix a graph H i H^i H i for any i ∈ [ t ] i \in[t] i ∈ [ t ] . For each sampled hyperedge e ∈ E ( H ) e \in E(H) e ∈ E ( H ) , define the indicator random variable
X j = { 1 If e ∈ E ( H i ) 0 otherwise. X_j =
\begin{cases}
1 & \text{If } e \in E(H^i)\\
0 & \text{otherwise.}
\end{cases} X j = { 1 0 If e ∈ E ( H i ) otherwise.
Observe that E [ X j ] = m ( H i ) m ( H ) \mathbb{E}[X_j] = \frac{m(H^i)}{m(H)} E [ X j ] = m ( H ) m ( H i ) .
Define the fraction of sampled hyperedges that belong to H i H^i H i by X = 1 ∣ S ∣ ∑ j ∈ [ ∣ S ∣ ] X j X = \frac{1}{|S|}\sum_{j\in[|S|]}X_j X = ∣ S ∣ 1 ∑ j ∈ [ ∣ S ∣ ] X j , where S S S is the multiset of sampled hyperedges obtained via cISC queries on H H H . Note that X = p ^ ( H i ) X = \widehat{p}(H^i) X = p ( H i ) and hence
E [ p ^ ( H i ) ] = 1 ∣ S ∣ ∑ j ∈ [ ∣ S ∣ ] E [ X j ] = m ( H i ) m ( H ) \mathbb{E}[\widehat{p}(H^i)] = \frac{1}{|S|}\sum_{j\in[|S|]}\mathbb{E}[X_j] = \frac{m(H^i)}{m(H)} E [ p ( H i )] = ∣ S ∣ 1 j ∈ [ ∣ S ∣ ] ∑ E [ X j ] = m ( H ) m ( H i )
Now, applying Hoeffding’s Bound (lemma 35), with ∣ S ∣ = O ( 4 d log ( δ − 1 ) ) |S| = O(4^d\log(\delta^{-1})) ∣ S ∣ = O ( 4 d log ( δ − 1 )) we get
Pr [ p ^ ( H i ) ≥ m ( H i ) m ( H ) − 1 2 d + 2 ] ≥ exp ( − ∣ S ∣ 2 2 d + 3 ) ≥ 1 − δ \Pr\left[\widehat{p}(H^i) \ge\frac{m(H^i)}{m(H)}-\frac{1}{2^{d+2}}\right] \ge\exp\left(-\frac{|S|}{2^{2d+3}}\right) \ge1-\delta Pr [ p ( H i ) ≥ m ( H ) m ( H i ) − 2 d + 2 1 ] ≥ exp ( − 2 2 d + 3 ∣ S ∣ ) ≥ 1 − δ
Using m ( H i ) m ( H ) ≥ 1 2 d + 1 \frac{m(H^i)}{m(H)} \ge\frac{1}{2^{d+1}} m ( H ) m ( H i ) ≥ 2 d + 1 1 , we get the result in ( i ) (i) ( i ) . Similarly, ( i i ) (ii) ( ii ) can be proved.
We are now ready to prove Lemma 10 .
Proof of Lemma 10. Let E a p s \mathcal{E}_{\mathrm{aps}} E aps denote the event that H ′ H' H ′ is an approximation-preserving subhypergraph of H H H , that is, m ( H ′ ) / m ( H ) ≥ 1 / 2 d + 3 m(H')/m(H) \ge1/2^{d+3} m ( H ′ ) / m ( H ) ≥ 1/ 2 d + 3 . Let E \mathcal{E} E be the event that there exists i ∈ [ t ] i \in[t] i ∈ [ t ] such that m ( H i ) / m ( H ) ≥ 1 / 2 d + 1 m(H^i)/m(H) \ge1/2^{d+1} m ( H i ) / m ( H ) ≥ 1/ 2 d + 1 . By Lemma 9 , Pr [ E ] ≥ 1 − δ / 2 \Pr[\mathcal{E}] \ge1-\delta/2 Pr [ E ] ≥ 1 − δ /2 .
Let us condition on the event E \mathcal{E} E . It suffices to bound Pr [ E a p s ∣ E ] \Pr[\mathcal{E}_{\mathrm{aps}} \mid\mathcal{E}] Pr [ E aps ∣ E ] . Under the event E a p s \mathcal{E}_{\mathrm{aps}} E aps there exists i ∈ [ t ] i \in[t] i ∈ [ t ] such that m ( H i ) / m ( H ) ≥ 1 / 2 d + 1 m(H^i)/m(H) \ge1/2^{d+1} m ( H i ) / m ( H ) ≥ 1/ 2 d + 1 , w.l.o.g assume m ( H 1 ) / m ( H ) ≥ 1 / 2 d + 1 m(H^1)/m(H) \ge1/2^{d+1} m ( H 1 ) / m ( H ) ≥ 1/ 2 d + 1 . If there exists j ∈ [ t ] ∖ { 1 } j \in[t]\setminus\{1\} j ∈ [ t ] ∖ { 1 } such that m ( H j ) / m ( H ) < 1 / 2 d + 3 m(H^j)/m(H) < 1/2^{d+3} m ( H j ) / m ( H ) < 1/ 2 d + 3 , then from Lemma 11 , we have p ^ ( H j ) ≤ 1 / 2 d + 2 \widehat{p}(H^j) \le1/2^{d+2} p ( H j ) ≤ 1/ 2 d + 2 with probability atleast 1 − δ / 2 1-\delta/2 1 − δ /2 and ApproxSubhypergraph will only output
H i ∈ { H 1 ∪ H j : m ( H j ) / m ( H ) ≥ 1 / 2 d + 3 } H^i \in\left\{H^1 \cup H^j : m(H^j)/m(H) \ge1/2^{d+3}\right\} H i ∈ { H 1 ∪ H j : m ( H j ) / m ( H ) ≥ 1/ 2 d + 3 }
. Hence,
Pr [ E a p s ∣ E ] ≥ 1 − δ 2 \Pr[\mathcal{E}_{\mathrm{aps}} \mid\mathcal{E}] \ge1-\frac{\delta}{2} Pr [ E aps ∣ E ] ≥ 1 − 2 δ
Therefore,
Pr [ E a p s ] = Pr [ E ] ⋅ Pr [ E a p s ∣ E ] ≥ 1 − δ \Pr[\mathcal{E}_{\mathrm{aps}}] = \Pr[\mathcal{E}] \cdot\Pr[\mathcal{E}_{\mathrm{aps}} \mid\mathcal{E}] \ge1-\delta Pr [ E aps ] = Pr [ E ] ⋅ Pr [ E aps ∣ E ] ≥ 1 − δ
Procedure to find approximation preserving sequence
We now describe the algorithm ApproxSubsequence (see Algorithm 3), which constructs an approximation preserving sequence used by the estimator.
Lemma 12 (Correctness of ApproxSubsequence). Consider ApproxSubsequence as described in (Algorithm 3). With probability at least 1 − δ 1-\delta 1 − δ , it outputs an approximation preserving sequence H 1 , H 2 , … , H κ H_1,H_2,\ldots,H_\kappa H 1 , H 2 , … , H κ such that m ( H κ ) ≤ 8 ζ m(H_\kappa) \le8\zeta m ( H κ ) ≤ 8 ζ . Here ζ \zeta ζ is a large constant. The number of cISC queries made is O ( log δ − 1 + κ 2 ) O(\log\delta^{-1}+\kappa^2) O ( log δ − 1 + κ 2 ) .
Algorithm 3 ApproxSubsequence($H$, $\delta$)
Require: cISC access to a $s$-partite $d$-hypergraph $H$.
Ensure: A nested sequence $H_1,H_2,\ldots,H_\kappa$ such that $V(H_1) \supseteq \cdots \supseteq V(H_\kappa)$
1: Initialize $H_0 \leftarrow H$; $coll \leftarrow 1$; $\kappa \leftarrow 0$
2: while true do
3: $coll \leftarrow$ IsCollision$(H_\kappa,\zeta,\frac{\delta}{3\cdot 2^\kappa})$
4: if $coll$ equals 1 then
5: break
6: else
7: $H^{\kappa 1},\ldots,H^{\kappa t} \leftarrow$ EnsembleColorPartite$(H_\kappa,\frac{\delta}{3\cdot 2^\kappa})$
8: $H_{\kappa+1} \leftarrow$ ApproxSubhypergraph$(H_\kappa,H^{\kappa 1},\ldots,H^{\kappa t},\frac{\delta}{3\cdot 2^\kappa})$
9: $\kappa \leftarrow \kappa+1$
10: end if
11: end while
12: return $H_1,H_2,\ldots,H_\kappa$
Proof. Correctness: We can assume that m ( H 0 ) m(H_0) m ( H 0 ) is sufficiently large, that is, m ( H ) ≥ ζ m(H) \ge\zeta m ( H ) ≥ ζ . If not, then from Lemma 4 IsCollision will output 1 with probability 1 − δ 1-\delta 1 − δ , and the algorithm will output nothing.
Now, we prove the claim by induction on κ \kappa κ . For each j ≥ 1 j \ge1 j ≥ 1 , let E j \mathcal{E}_j E j denote the event that the algorithm either terminates with m ( H j ) ≤ 8 ζ m(H_j) \le8\zeta m ( H j ) ≤ 8 ζ or produces H j + 1 H_{j+1} H j + 1 . Let E ≤ j \mathcal{E}_{\le j} E ≤ j denote the event that E i \mathcal{E}_i E i occurs for all i ∈ [ j ] i \in[j] i ∈ [ j ] , that is
E ≤ j = ⋂ i = 1 j E i . \mathcal{E}_{\le j}=\bigcap_{i=1}^{j}\mathcal{E}_i. E ≤ j = i = 1 ⋂ j E i .
First we claim that, If m ( H j ) ≥ ζ m(H_j) \ge\zeta m ( H j ) ≥ ζ then Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j \Pr[\mathcal{E}_j \mid\mathcal{E}_{\le j-1}] \ge1-\delta_j Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j where δ j = δ 2 j \delta_j=\frac{\delta}{2^j} δ j = 2 j δ . We consider two cases (m ( H j ) > 8 ζ m(H_j)>8\zeta m ( H j ) > 8 ζ ) and (ζ ≤ m ( U j ) ≤ 8 ζ \zeta\le m(U_j) \le8\zeta ζ ≤ m ( U j ) ≤ 8 ζ ), analyse them individually. In what follows, we assume that E ≤ j − 1 \mathcal{E}_{\le j-1} E ≤ j − 1 has occurred.
Case 1: (m ( H j ) > 8 ζ m(H_j)>8\zeta m ( H j ) > 8 ζ ). Let E j = E 1 ∩ E 2 ∩ E 3 \mathcal{E}_j=\mathcal{E}_1\cap\mathcal{E}_2\cap\mathcal{E}_3 E j = E 1 ∩ E 2 ∩ E 3 where E 1 \mathcal{E}_1 E 1 be the event that IsCollision output 0, E 2 \mathcal{E}_2 E 2 be the event that EnsembleColorPartite outputs H j 1 , … , H j t H_{j1},\ldots,H_{jt} H j 1 , … , H j t and E 3 \mathcal{E}_3 E 3 be the event that ApproxSubhypergraph outputs H j + 1 H_{j+1} H j + 1 . So, from Lemma 4 we have Pr [ E 1 ] ≥ δ j / 3 \Pr[\mathcal{E}_1] \ge\delta_j/3 Pr [ E 1 ] ≥ δ j /3 , from Lemma 9 we have Pr [ E 2 ∣ E 1 ] ≥ δ j / 3 \Pr[\mathcal{E}_2 \mid\mathcal{E}_1] \ge\delta_j/3 Pr [ E 2 ∣ E 1 ] ≥ δ j /3 and from Lemma 10 , we have Pr [ E 3 ∣ E 2 ∩ E 1 ] ≥ δ j / 3 \Pr[\mathcal{E}_3 \mid\mathcal{E}_2\cap\mathcal{E}_1] \ge\delta_j/3 Pr [ E 3 ∣ E 2 ∩ E 1 ] ≥ δ j /3 . Then
Pr [ E j ] = Pr [ E 1 ∩ E 2 ∩ E 3 ] ≥ 1 − δ j \Pr[\mathcal{E}_j]=\Pr[\mathcal{E}_1\cap\mathcal{E}_2\cap\mathcal{E}_3]\ge1-\delta_j Pr [ E j ] = Pr [ E 1 ∩ E 2 ∩ E 3 ] ≥ 1 − δ j
Case 2: (ζ ≤ m ( U j ) ≤ 8 ζ \zeta\le m(U_j) \le8\zeta ζ ≤ m ( U j ) ≤ 8 ζ ). In this case, we show that
Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j \Pr[\mathcal{E}_j\mid\mathcal{E}_{\le j-1}]\ge1-\delta_j Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j
regardless of whether ApproxSubhypergraph terminates after executing IsCollision or proceeds to execute EnsembleColorPartite and ApproxSubhypergraph.
In the former case, the claim follows directly from the definition of E j \mathcal{E}_j E j together with the fact that m ( H j ) ≤ 8 ζ m(H_j)\le8\zeta m ( H j ) ≤ 8 ζ . In the latter case, EnsembleColorPartite and ApproxSubhypergraph produces H j + 1 H_{j+1} H j + 1 , this occurs with probability 1 − 2 δ j / 3 1-2\delta_j/3 1 − 2 δ j /3 . Hence
Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j . \Pr[\mathcal{E}_j\mid\mathcal{E}_{\le j-1}]\ge1-\delta_j. Pr [ E j ∣ E ≤ j − 1 ] ≥ 1 − δ j .
Therefore, taking the union bound over all iterations, the probability that the algorithm produces a valid sequence is:
Pr [ E ≤ κ ] ≥ 1 − ∑ j = 1 κ δ j ≥ 1 − ∑ j = 1 ∞ δ 2 j = 1 − δ \Pr[\mathcal{E}_{\leq\kappa}] \geq1-\sum_{j=1}^{\kappa}\delta_j \geq1-\sum_{j=1}^{\infty}\frac{\delta}{2^j}=1-\delta Pr [ E ≤ κ ] ≥ 1 − j = 1 ∑ κ δ j ≥ 1 − j = 1 ∑ ∞ 2 j δ = 1 − δ
Query Complexity: From Lemma 4, 9 and 10, the number of cISC queries made by IsCollision (for a constant threshold τ = ζ \tau=\zeta τ = ζ ), EnsembleColorPartite and ApproxSubhypergraph over κ \kappa κ iterations is,
O ( ∑ j = 1 κ log ( δ − 1 ⋅ 2 κ ) ) = O ( log δ − 1 + κ 2 ) O\left(\sum_{j=1}^{\kappa}\log(\delta^{-1}\cdot2^\kappa)\right)=O\left(\log\delta^{-1}+\kappa^2\right) O ( j = 1 ∑ κ log ( δ − 1 ⋅ 2 κ ) ) = O ( log δ − 1 + κ 2 )
Note that the number of iterations and the query complexity of ApproxSubsequence (as mentioned in the above lemma) are random variables. We will argue their expectation in the following lemma. Moreover, when we discuss the algorithm of estimating the hyperedge count of s s s -partite d d d -hypergraph in 3.3 (that uses ApproxSubsequence as a subroutine), we show that the query complexity of the this algorithm is O ( κ 2 ⋅ log κ ) O(\kappa^2\cdot\log\kappa) O ( κ 2 ⋅ log κ ) , where κ \kappa κ is the number of iterations of ApproxSubsequence. The following lemmas will be useful in establishing the query complexity in 3.3.
Lemma 13. E [ κ ] = O ( log n ) \mathbb{E}[\kappa]=O(\log n) E [ κ ] = O ( log n ) , E [ κ 2 ] = O ( log 2 n ) \mathbb{E}[\kappa^2]=O(\log^2 n) E [ κ 2 ] = O ( log 2 n ) , and E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) \mathbb{E}[\kappa^2\log\kappa]=O(\log^2 n\cdot\log\log n) E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) .
Proof. Let H 1 , H 2 , ⋯ , H κ H_1,H_2,\cdots,H_\kappa H 1 , H 2 , ⋯ , H κ be the output of ApproxSubhypergraph, where the vertices of H i H_i H i is chosen independently with probability 1 / 2 1/2 1/2 from the vertex set of H i − 1 H_{i-1} H i − 1 , for all i ∈ [ κ ] i\in[\kappa] i ∈ [ κ ] and H 0 = H H_0=H H 0 = H .
Let X i X_i X i be the number of rounds it takes for vertex j j j in H H H to be picked and removed. X j X_j X j follows a geometric distribution where the probability of success of being removed on the k k k -th round is
Pr [ X j = k ] = ( 1 2 ) k − 1 1 2 = ( 1 2 ) k \Pr[X_j=k]=\left(\frac{1}{2}\right)^{k-1}\frac{1}{2}=\left(\frac{1}{2}\right)^k Pr [ X j = k ] = ( 2 1 ) k − 1 2 1 = ( 2 1 ) k
Then the total number of rounds, κ = max ( X 1 , X 2 , … , X n ) \kappa=\max(X_1,X_2,\ldots,X_n) κ = max ( X 1 , X 2 , … , X n ) . Therefore,
Pr [ κ > k ] = Pr [ max ( X 1 , X 2 , … , X n ) > k ] = Pr [ ⋃ j = 1 n { X j > k } ] ≤ ∑ j = 1 n Pr [ X j > k ] = n ( 1 2 ) k \Pr[\kappa>k]=\Pr[\max(X_1,X_2,\ldots,X_n)>k]=\Pr\left[\bigcup_{j=1}^{n}\{X_j>k\}\right]\leq\sum_{j=1}^{n}\Pr[X_j>k]=n\left(\frac{1}{2}\right)^k Pr [ κ > k ] = Pr [ max ( X 1 , X 2 , … , X n ) > k ] = Pr [ j = 1 ⋃ n { X j > k } ] ≤ j = 1 ∑ n Pr [ X j > k ] = n ( 2 1 ) k
Now, we will show that E [ κ ] = O ( log n ) \mathbb{E}[\kappa]=O(\log n) E [ κ ] = O ( log n ) ,
E [ κ ] = ∑ k = 0 ∞ k Pr [ κ = k ] = ∑ k = 0 log n k Pr [ κ = k ] + ∑ k = log n + 1 ∞ k Pr [ κ = k ] ≤ log n + ∑ ℓ = 1 ∞ ( log n + ℓ ) Pr [ κ = log n + ℓ ] ≤ log n + ∑ ℓ = 1 ∞ n ( log n + ℓ ) 2 log n + ℓ ≤ log n + O ( 1 ) = O ( log n ) (1) \begin{aligned}
\mathbb{E}[\kappa]&=\sum_{k=0}^{\infty}k\Pr[\kappa=k]\\
&=\sum_{k=0}^{\log n}k\Pr[\kappa=k]+\sum_{k=\log n+1}^{\infty}k\Pr[\kappa=k]\\
&\leq\log n+\sum_{\ell=1}^{\infty}(\log n+\ell)\Pr[\kappa=\log n+\ell]\\
&\leq\log n+\sum_{\ell=1}^{\infty}\frac{n(\log n+\ell)}{2^{\log n+\ell}}\\
&\leq\log n+O(1)=O(\log n) \tag*{(1)}
\end{aligned} E [ κ ] = k = 0 ∑ ∞ k Pr [ κ = k ] = k = 0 ∑ l o g n k Pr [ κ = k ] + k = l o g n + 1 ∑ ∞ k Pr [ κ = k ] ≤ log n + ℓ = 1 ∑ ∞ ( log n + ℓ ) Pr [ κ = log n + ℓ ] ≤ log n + ℓ = 1 ∑ ∞ 2 l o g n + ℓ n ( log n + ℓ ) ≤ log n + O ( 1 ) = O ( log n ) (1)
E [ κ 2 ] = O ( log 2 n ) \mathbb{E}[\kappa^2] = O(\log^2 n) E [ κ 2 ] = O ( log 2 n ) , E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) \mathbb{E}[\kappa^2 \log\kappa] = O(\log^2 n \cdot\log\log n) E [ κ 2 log κ ] = O ( log 2 n ⋅ log log n ) can be shown in a similar manner.
Procedure to hyperedge estimation of s s s -partite d d d -hypergraph
In this section, we present the algorithm for estimating the number of hyperedges of s s s -partite d d d -hypergraph using cISC queries and prove Theorem 3.
EdgeEstimationPartite (Algorithm 5) begins by calling subseeq which outputs an approximation preserving sequence H 1 , … , H κ H_1,\ldots,H_\kappa H 1 , … , H κ , where each p i = m ( H i ) / m ( H i − 1 ) p_i = m(H_i)/m(H_{i-1}) p i = m ( H i ) / m ( H i − 1 ) is bounded below by a constant. This ensures that each ratio can be estimated efficiently. To estimate each p i p_i p i , we use the subroutine MulEstimation which returns an ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of p i p_i p i . The procedure MulEstimation is described in Algorithm 4 and its guarantee is established in Lemma 14.
Algorithm 4 MulEstimation(H ′ , H , ε , δ H', H, \varepsilon, \delta H ′ , H , ε , δ )
Require: A subhypergraph H ′ H' H ′ of H H H and cISC access to the hypergraph H H H .
Ensure: An estimate of p ( H ′ ) p(H') p ( H ′ )
Uniformly and Independently sample O ( 4 d log ( δ − 1 ) / ε 2 ) O(4^d \log(\delta^{-1})/\varepsilon^2) O ( 4 d log ( δ − 1 ) / ε 2 ) random hyperedges from H H H and let S S S be the multi-set of sampled hyperedges.
return p ^ ( H ′ ) = 1 ∣ S ∣ ∑ e ∈ S 1 e ∈ E ( H ′ ) \widehat{p}(H') = \frac{1}{|S|}\sum_{e\in S}1_{e\in E(H')} p ( H ′ ) = ∣ S ∣ 1 ∑ e ∈ S 1 e ∈ E ( H ′ ) .
Lemma 14 (Correctness of MulEstimation). For hypergraph H ′ H' H ′ such that V ( H ′ ) ⊆ V ( H ) V(H') \subseteq V(H) V ( H ′ ) ⊆ V ( H ) and ε > 0 \varepsilon> 0 ε > 0 , If p ( H ′ ) = m ( H ′ ) m ( H ) ≥ 1 2 d + 3 p(H') = \frac{m(H')}{m(H)} \ge\frac{1}{2^{d+3}} p ( H ′ ) = m ( H ) m ( H ′ ) ≥ 2 d + 3 1 , then MulEstimation outputs p ^ ( H ′ ) = ( 1 + x ) p ( H ) \widehat{p}(H') = (1+x)p(H) p ( H ′ ) = ( 1 + x ) p ( H ) , where E [ x ] = 0 \mathbb{E}[x] = 0 E [ x ] = 0 and x ∈ ( − ε , ε ) x \in(-\varepsilon,\varepsilon) x ∈ ( − ε , ε ) with probability at least 1 − δ 1-\delta 1 − δ . The number of cISC queries made is O ( 4 d log ( δ − 1 ) / ε 2 ) O(4^d\log(\delta^{-1})/\varepsilon^2) O ( 4 d log ( δ − 1 ) / ε 2 ) .
Proof. Let X j X_j X j be the indicator random variable such that,
X j = { 1 If the j th sampled hyperedge is in H ′ 0 Otherwise X_j =
\begin{cases}
1 & \text{If the }j^{\text{th}}\text{ sampled hyperedge is in }H' \\
0 & \text{Otherwise}
\end{cases} X j = { 1 0 If the j th sampled hyperedge is in H ′ Otherwise
Define the number of hyperedges sampled that belong to H ′ H' H ′ as X = ∑ j ∈ [ ∣ S ∣ ] X j X = \sum_{j\in[|S|]}X_j X = ∑ j ∈ [ ∣ S ∣ ] X j , where S S S is the multi-set of sampled hyperedges and the expected size of X X X is
E [ X ] = ∑ j ∈ [ ∣ S ∣ ] E [ X j ] = ∣ S ∣ ⋅ m ( H ′ ) m ( H ) = ∣ S ∣ ⋅ p ( H ′ ) ≥ ∣ S ∣ 2 d + 3 \mathbb{E}[X] = \sum_{j\in[|S|]}\mathbb{E}[X_j] = |S|\cdot\frac{m(H')}{m(H)} = |S|\cdot p(H') \ge\frac{|S|}{2^{d+3}} E [ X ] = j ∈ [ ∣ S ∣ ] ∑ E [ X j ] = ∣ S ∣ ⋅ m ( H ) m ( H ′ ) = ∣ S ∣ ⋅ p ( H ′ ) ≥ 2 d + 3 ∣ S ∣
Therefore,
E [ x ] = E [ p ^ ( H ′ ) p ( H ) ] − 1 = E [ X ] ∣ S ∣ p ( H ′ ) − 1 = 0 \mathbb{E}[x] = \mathbb{E}\left[\frac{\widehat{p}(H')}{p(H)}\right]-1 = \frac{\mathbb{E}[X]}{|S|p(H')} - 1 = 0 E [ x ] = E [ p ( H ) p ( H ′ ) ] − 1 = ∣ S ∣ p ( H ′ ) E [ X ] − 1 = 0
By the Chernoff Bound (see Lemma 36), we have
Pr [ x ∈ ( − ε , ε ) ] = Pr [ p ^ ( H ′ ) ∈ ( 1 ± ε ) p ( H ′ ) ] = Pr [ X ∈ ( 1 ± ε ) E [ X ] ] ≥ 1 − 2 exp ( − ε 2 ∣ S ∣ 96 ) ≥ 1 − δ \Pr[x\in(-\varepsilon,\varepsilon)] = \Pr[\widehat{p}(H')\in(1\pm\varepsilon)p(H')] = \Pr[X\in(1\pm\varepsilon)\mathbb{E}[X]] \ge1-2\exp\left(-\frac{\varepsilon^2|S|}{96}\right)\ge1-\delta Pr [ x ∈ ( − ε , ε )] = Pr [ p ( H ′ ) ∈ ( 1 ± ε ) p ( H ′ )] = Pr [ X ∈ ( 1 ± ε ) E [ X ]] ≥ 1 − 2 exp ( − 96 ε 2 ∣ S ∣ ) ≥ 1 − δ
where the last step uses ∣ S ∣ = O ( 4 d log ( δ − 1 ) / ε 2 ) |S| = O(4^d\log(\delta^{-1})/\varepsilon^2) ∣ S ∣ = O ( 4 d log ( δ − 1 ) / ε 2 ) .
We prove Theorem 3 by proving Lemma 15 and Lemma 16.
Algorithm 5 EdgeEstimationPartite($H,\varepsilon,\delta$)
Require: cISC access to the hypergraph $H$.
Ensure: An estimate of $\widehat{m}$
1: for $j = 1$ to $s = O(\log \delta^{-1})$ do
2: $H_1,H_2,\ldots,H_\kappa \leftarrow \operatorname{ApproxSubsequence}(H,\frac{1}{5})$
3: $\widehat{m}_b \leftarrow \operatorname{BirthdayEstimate}(H_\kappa,8\zeta,\frac{\varepsilon}{3},\frac{1}{16})$
4: Initialize $\widehat{p}_i \leftarrow 1$, for all $i \in [\kappa]$
5: for $i = 1$ to $\kappa$ do
6: $\widehat{p}_i \leftarrow \operatorname{MulEstimation}(H_i,H_{i-1},\frac{\varepsilon}{200\sqrt{\kappa}},\frac{1}{16\kappa})$
7: end for
8: $\widehat{m}_j \leftarrow \widehat{m}_b/\prod_{i=1}^{\kappa}\widehat{p}_i$
9: end for
10: return median $(\widehat{m}_1,\widehat{m}_2,\ldots,\widehat{m}_s)$
Lemma 15. The expected query complexity of EdgeEstimationPartite is O d ( log 2 n ⋅ log log n ⋅ log δ − 1 / ε 2 ) O_d(\log^2 n\cdot\log\log n\cdot\log\delta^{-1}/\varepsilon^2) O d ( log 2 n ⋅ log log n ⋅ log δ − 1 / ε 2 ) .
Proof. From Lemma 14, the number of cISC queries made by MulEstimation in every iteration is
O d ( log ( κ ) ε ′ 2 ) where ε ′ = ε 200 κ . O_d\left(\frac{\log(\kappa)}{\varepsilon'^2}\right) \quad\text{where } \varepsilon'=\frac{\varepsilon}{200\sqrt{\kappa}}. O d ( ε ′2 log ( κ ) ) where ε ′ = 200 κ ε .
Summing over κ \kappa κ iterations, we get
O d ( ∑ j = 1 κ log κ ε ′ 2 ) = O d ( κ 2 log κ ε 2 ) . O_d\left(\sum_{j=1}^{\kappa}\frac{\log\kappa}{\varepsilon'^2}\right)=O_d\left(\frac{\kappa^2\log\kappa}{\varepsilon^2}\right). O d ( j = 1 ∑ κ ε ′2 log κ ) = O d ( ε 2 κ 2 log κ ) .
From Lemma 12, the number of ISC queries made by ApproxSubsequence is O ( κ 2 ) O(\kappa^2) O ( κ 2 ) . Finally, from Lemma 5, the number of cISC queries made by BirthdayEstimate is O ( 8 ζ / ε ) = O ( 1 / ε ) O(\sqrt{8\zeta}/\varepsilon)=O(1/\varepsilon) O ( 8 ζ / ε ) = O ( 1/ ε ) . Combining all contributions, the query complexity of a single execution of the outer loop is dominated by MulEstimation, and hence is O d ( κ 2 log κ / ε 2 ) O_d(\kappa^2\log\kappa/\varepsilon^2) O d ( κ 2 log κ / ε 2 ) . From Lemma 13,
E [ κ 2 log κ ] = O d ( log 2 n ⋅ log log n ) . \mathbb{E}[\kappa^2\log\kappa]=O_d(\log^2 n\cdot\log\log n). E [ κ 2 log κ ] = O d ( log 2 n ⋅ log log n ) .
Since the outer loop is repeated O ( log δ − 1 ) O(\log\delta^{-1}) O ( log δ − 1 ) times, the expected query complexity is
O d ( log 2 n ⋅ log log n ⋅ log δ − 1 / ε 2 ) O_d(\log^2 n\cdot\log\log n\cdot\log\delta^{-1}/\varepsilon^2) O d ( log 2 n ⋅ log log n ⋅ log δ − 1 / ε 2 )
as claimed.
Lemma 16. EdgeEstimationPartite, outputs a ( 1 ± ε ) (1\pm\varepsilon) ( 1 ± ε ) -approximation to m m m with probability at least 1 − δ 1-\delta 1 − δ .
Proof. In the outer loop of EdgeEstimationPartite (Line 1), the algorithm is repeated O ( log δ − 1 ) O(\log\delta^{-1}) O ( log δ − 1 ) times to boost its success probability to at least 1 − δ 1-\delta 1 − δ using the standard median-of-mean tricks. In what follows, we prove that a single execution of EdgeEstimationPartite outputs a ( 1 ± ε ) (1\pm\varepsilon) ( 1 ± ε ) -approximation to m m m with probability at least 2 / 3 2/3 2/3 .
Let E 1 = E s u b ∩ E b i r \mathcal{E}_1=\mathcal{E}_{\mathrm{sub}}\cap\mathcal{E}_{\mathrm{bir}} E 1 = E sub ∩ E bir , where E s u b \mathcal{E}_{\mathrm{sub}} E sub be the event that ApproxSubsequence outputs an approximation-preserving sequence H 1 , H 2 , … , H κ H_1,H_2,\ldots,H_\kappa H 1 , H 2 , … , H κ with m ( H κ ) ≤ 8 ζ m(H_\kappa)\leq8\zeta m ( H κ ) ≤ 8 ζ . From lemma 12 we have Pr [ E s u b ] ≥ 4 / 5 \Pr[\mathcal{E}_{\mathrm{sub}}]\geq4/5 Pr [ E sub ] ≥ 4/5 . E b i r \mathcal{E}_{\mathrm{bir}} E bir be the event that BirthdayEstimate outputs an ( 1 ± ε / 3 ) (1 \pm\varepsilon/3) ( 1 ± ε /3 ) approximation of m ( H κ ) m(H_\kappa) m ( H κ ) , from Lemma 5, we have Pr [ E b i r ∣ E s u b ] ≥ 15 / 16 \Pr[\mathcal{E}_{\mathrm{bir}} \mid\mathcal{E}_{\mathrm{sub}}] \ge15/16 Pr [ E bir ∣ E sub ] ≥ 15/16 . Therefore,
Pr [ E 1 ] = Pr [ E s u b ] Pr [ E b i r ∣ E s u b ] ≥ 1 − ( 1 5 + 1 16 ) ≥ 59 80 \Pr[\mathcal{E}_1] = \Pr[\mathcal{E}_{\mathrm{sub}}]\Pr[\mathcal{E}_{\mathrm{bir}} \mid\mathcal{E}_{\mathrm{sub}}] \ge1 - \left(\frac{1}{5}+\frac{1}{16}\right) \ge\frac{59}{80} Pr [ E 1 ] = Pr [ E sub ] Pr [ E bir ∣ E sub ] ≥ 1 − ( 5 1 + 16 1 ) ≥ 80 59
Let E 2 \mathcal{E}_2 E 2 be the event that MulEstimation( H i , H i − 1 , ε ′ , 1 / 16 κ ) (H_i,H_{i-1},\varepsilon',1/16\kappa) ( H i , H i − 1 , ε ′ , 1/16 κ ) outputs p ^ i = ( 1 ± x i / 4 ) p i \widehat{p}_i=(1 \pm x_i/4)p_i p i = ( 1 ± x i /4 ) p i such that E [ x i ] = 0 \mathbb{E}[x_i]=0 E [ x i ] = 0 and x i ∈ ( − 4 ε ′ , 4 ε ′ ) x_i \in(-4\varepsilon',4\varepsilon') x i ∈ ( − 4 ε ′ , 4 ε ′ ) for all i ∈ [ κ ] i \in[\kappa] i ∈ [ κ ] , where ε ′ = ε 200 κ \varepsilon'=\frac{\varepsilon}{200\sqrt{\kappa}} ε ′ = 200 κ ε . Therefore, using Lemma 14 and applying the union bound over all i ∈ [ κ ] i \in[\kappa] i ∈ [ κ ] ,
Pr [ E 2 ∣ E 1 ] = 1 − ∑ j = 1 κ 1 16 κ ≥ 15 16 . \Pr[\mathcal{E}_2 \mid\mathcal{E}_1] = 1-\sum_{j=1}^{\kappa}\frac{1}{16\kappa}\ge\frac{15}{16}. Pr [ E 2 ∣ E 1 ] = 1 − j = 1 ∑ κ 16 κ 1 ≥ 16 15 .
Let E 3 \mathcal{E}_3 E 3 be the event that ∣ ∑ i = 1 κ x i ∣ ≤ ε / 9 \left|\sum_{i=1}^{\kappa}x_i\right|\le\varepsilon/9 ∣ ∑ i = 1 κ x i ∣ ≤ ε /9 . By Hoeffding’s bound (Lemma 35),
Pr [ E 3 ∣ E 1 ∩ E 2 ] = 1 − Pr [ ∣ ∑ i = 1 κ x i ∣ > ε 9 | E 1 ∩ E 2 ] \Pr[\mathcal{E}_3 \mid\mathcal{E}_1\cap\mathcal{E}_2] = 1-\Pr\left[\left|\sum_{i=1}^{\kappa}x_i\right|>\frac{\varepsilon}{9}\,\middle|\,\mathcal{E}_1\cap\mathcal{E}_2\right] Pr [ E 3 ∣ E 1 ∩ E 2 ] = 1 − Pr [ i = 1 ∑ κ x i > 9 ε E 1 ∩ E 2 ]
≥ 1 − 2 exp ( − 2 ε 2 81 ∑ i = 1 κ ( 2 ε 50 κ ) 2 ) \ge1-2\exp\left(-\frac{2\varepsilon^2}{81\sum_{i=1}^{\kappa}\left(\frac{2\varepsilon}{50\sqrt{\kappa}}\right)^2}\right) ≥ 1 − 2 exp − 81 ∑ i = 1 κ ( 50 κ 2 ε ) 2 2 ε 2
≥ 1 − 1 e 12 . (2) \ge1-\frac{1}{e^{12}}. \tag*{(2)} ≥ 1 − e 12 1 . (2)
Hence,
Pr [ E 1 ∩ E 2 ∩ E 3 ] = Pr [ E 1 ] ⋅ Pr [ E 2 ∣ E 1 ] ⋅ Pr [ E 3 ∣ E 1 ∩ E 2 ] ≥ 1 − ( 21 80 + 1 16 + 1 e 12 ) ≥ 2 3 . \Pr[\mathcal{E}_1\cap\mathcal{E}_2\cap\mathcal{E}_3]=\Pr[\mathcal{E}_1]\cdot\Pr[\mathcal{E}_2\mid\mathcal{E}_1]\cdot\Pr[\mathcal{E}_3\mid\mathcal{E}_1\cap\mathcal{E}_2]\ge1-\left(\frac{21}{80}+\frac{1}{16}+\frac{1}{e^{12}}\right)\ge\frac{2}{3}. Pr [ E 1 ∩ E 2 ∩ E 3 ] = Pr [ E 1 ] ⋅ Pr [ E 2 ∣ E 1 ] ⋅ Pr [ E 3 ∣ E 1 ∩ E 2 ] ≥ 1 − ( 80 21 + 16 1 + e 12 1 ) ≥ 3 2 .
In what follows, we assume that all of the events E 1 \mathcal{E}_1 E 1 , E 2 \mathcal{E}_2 E 2 and E 3 \mathcal{E}_3 E 3 occur. Since, Pr [ E 1 ∩ E 2 ∩ E 3 ] ≥ 2 / 3 \Pr[\mathcal{E}_1\cap\mathcal{E}_2\cap\mathcal{E}_3]\ge2/3 Pr [ E 1 ∩ E 2 ∩ E 3 ] ≥ 2/3 , it is enough to argue that EdgeEstimationPartite returns an ( 1 ± ε ) (1\pm\varepsilon) ( 1 ± ε ) -approximation to m m m when all E 1 \mathcal{E}_1 E 1 , E 2 \mathcal{E}_2 E 2 and E 3 \mathcal{E}_3 E 3 holds.
Combining the output of MulEstimation over the κ \kappa κ iterations, we get,
∏ i = 1 κ p ^ i = ∏ i = 1 κ p i ⋅ ∏ i = 1 κ ( 1 + x i 4 ) \prod_{i=1}^{\kappa}\widehat{p}_i=\prod_{i=1}^{\kappa}p_i\cdot\prod_{i=1}^{\kappa}\left(1+\frac{x_i}{4}\right) i = 1 ∏ κ p i = i = 1 ∏ κ p i ⋅ i = 1 ∏ κ ( 1 + 4 x i )
Using the fact that for each x i ∈ ( 0 , 1 ) x_i\in(0,1) x i ∈ ( 0 , 1 ) , it can be shown that
1 − ∑ i = 1 κ x i 4 ≤ ∏ i = 1 κ ( 1 + x i 4 ) ≤ 1 + ∑ i = 1 κ x i 1-\frac{\sum_{i=1}^{\kappa}x_i}{4}\le\prod_{i=1}^{\kappa}\left(1+\frac{x_i}{4}\right)\le1+\sum_{i=1}^{\kappa}x_i 1 − 4 ∑ i = 1 κ x i ≤ i = 1 ∏ κ ( 1 + 4 x i ) ≤ 1 + i = 1 ∑ κ x i
Since event E 3 \mathcal{E}_3 E 3 occurs,
∏ i = 1 κ p i ⋅ ( 1 − ε 36 ) ≤ ∏ i = 1 κ p ^ i ≤ ∏ i = 1 κ p i ⋅ ( 1 + ε 9 ) \prod_{i=1}^{\kappa}p_i\cdot\left(1-\frac{\varepsilon}{36}\right)\le\prod_{i=1}^{\kappa}\widehat{p}_i\le\prod_{i=1}^{\kappa}p_i\cdot\left(1+\frac{\varepsilon}{9}\right) i = 1 ∏ κ p i ⋅ ( 1 − 36 ε ) ≤ i = 1 ∏ κ p i ≤ i = 1 ∏ κ p i ⋅ ( 1 + 9 ε )
Using the fact that for any ε ∈ ( 0 , 1 / 3 ) \varepsilon\in(0,1/3) ε ∈ ( 0 , 1/3 ) , we have 1 − 3 ε ≤ ( 1 + ε ) − 1 1-3\varepsilon\le(1+\varepsilon)^{-1} 1 − 3 ε ≤ ( 1 + ε ) − 1 and ( 1 − ε ) − 1 ≤ 1 + 3 ε (1-\varepsilon)^{-1}\le1+3\varepsilon ( 1 − ε ) − 1 ≤ 1 + 3 ε . We get,
( 1 − ε 3 ) ⋅ 1 ∏ i = 1 κ p i ≤ 1 ∏ i = 1 κ p ^ i ≤ 1 ∏ i = 1 κ p i ⋅ ( 1 + ε 12 ) (3) \left(1-\frac{\varepsilon}{3}\right)\cdot\frac{1}{\prod_{i=1}^{\kappa}p_i}\le\frac{1}{\prod_{i=1}^{\kappa}\widehat{p}_i}\le\frac{1}{\prod_{i=1}^{\kappa}p_i}\cdot\left(1+\frac{\varepsilon}{12}\right) \tag*{(3)} ( 1 − 3 ε ) ⋅ ∏ i = 1 κ p i 1 ≤ ∏ i = 1 κ p i 1 ≤ ∏ i = 1 κ p i 1 ⋅ ( 1 + 12 ε ) (3)
Since E 1 \mathcal{E}_1 E 1 occurs, i.e., E b i r \mathcal{E}_{\mathrm{bir}} E bir occurs, m ^ b \widehat{m}_{\mathrm{b}} m b satisfies the following:
( 1 − ε 3 ) ⋅ m ( H κ ) ≤ m ^ b ≤ ( 1 + ε 3 ) ⋅ m ( H κ ) (4) \left(1-\frac{\varepsilon}{3}\right) \cdot m(H_{\kappa}) \leq\widehat{m}_{\mathrm{b}} \leq\left(1+\frac{\varepsilon}{3}\right) \cdot m(H_{\kappa}) \tag*{(4)} ( 1 − 3 ε ) ⋅ m ( H κ ) ≤ m b ≤ ( 1 + 3 ε ) ⋅ m ( H κ ) (4)
Combining (2) and (3), we get,
( 1 − ε 3 ) 2 ⋅ m ( H κ ) ∏ i = 1 κ p i ≤ m ^ = m ^ b ∏ i = 1 κ p ^ i ≤ ( 1 + ε 12 ) ( 1 + ε 3 ) ⋅ m ( H κ ) ∏ i = 1 κ p i \left(1-\frac{\varepsilon}{3}\right)^2 \cdot\frac{m(H_{\kappa})}{\prod_{i=1}^{\kappa} p_i} \leq\widehat{m}=\frac{\widehat{m}_{\mathrm{b}}}{\prod_{i=1}^{\kappa} \widehat{p}_i} \leq\left(1+\frac{\varepsilon}{12}\right)\left(1+\frac{\varepsilon}{3}\right) \cdot\frac{m(H_{\kappa})}{\prod_{i=1}^{\kappa} p_i} ( 1 − 3 ε ) 2 ⋅ ∏ i = 1 κ p i m ( H κ ) ≤ m = ∏ i = 1 κ p i m b ≤ ( 1 + 12 ε ) ( 1 + 3 ε ) ⋅ ∏ i = 1 κ p i m ( H κ )
Since, p i = m ( H i ) m ( H i − 1 ) p_i=\frac{m(H_i)}{m(H_{i-1})} p i = m ( H i − 1 ) m ( H i ) for each i ∈ [ κ ] i \in[\kappa] i ∈ [ κ ] and H 0 = G H_0=G H 0 = G , m ( H κ ) ∏ i = 1 κ p i = m ( H 0 ) = m \frac{m(H_{\kappa})}{\prod_{i=1}^{\kappa}p_i}=m(H_0)=m ∏ i = 1 κ p i m ( H κ ) = m ( H 0 ) = m . So, simplifying the above expression, we have
( 1 − ε ) m ≤ m ^ ≤ ( 1 + ε ) m (1-\varepsilon)m \leq\widehat{m} \leq(1+\varepsilon)m ( 1 − ε ) m ≤ m ≤ ( 1 + ε ) m
We are now ready to prove Theorem 3.
Proof of Theorem 3. The correctness of the algorithm follows from Lemma 16, and its query complexity follows from Lemma 15.
Hyperedge Estimation of d d d -hypergraph
In this section, we present the full algorithm for estimating the number of hyperedges of d d d -hypergraph using cISC queries and prove our main upper bound stated below.
Theorem 1. For every integer 1 ≤ s ≤ d 1 \leq s \leq d 1 ≤ s ≤ d and ε ∈ ( 0 , 1 / 3 ) \varepsilon\in(0,1/3) ε ∈ ( 0 , 1/3 ) , there exists a randomized algorithm that, given access to the s s s -colorful random certificate oracle cISC, outputs a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges with probability at least 2 / 3 2/3 2/3 using O s , d ( ε − 2 log 2 n log log n log 2 ( 1 / ε ) ) O_{s,d}\left(\varepsilon^{-2}\log^2 n\log\log n\log^2(1/\varepsilon)\right) O s , d ( ε − 2 log 2 n log log n log 2 ( 1/ ε ) ) s s s -colorful random certificate queries.
EdgeEstimation (Algorithm 7) begins by calling EnsembleColor which outputs multiple s s s -partite d d d -hypergraphs by uniformly partition the vertex set into s s s classes. The procedure for EnsembleColor is described in Algorithm 6 and its guarantee is established in Lemma 18.
Algorithm 6 EnsembleColor( G , ε , δ ) (G,\varepsilon,\delta) ( G , ε , δ )
Require: cISC query access to G G G , error parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) and a confidence parameter δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) .
for i = 1 i=1 i = 1 to t = O ( f 2 ( s , d ) ε − 2 log ( δ − 1 ) ) t=O\left(f^2(s,d)\varepsilon^{-2}\log(\delta^{-1})\right) t = O ( f 2 ( s , d ) ε − 2 log ( δ − 1 ) ) do
Uniformly and independently partition V V V into V 1 , V 2 , … , V s V_1,V_2,\ldots,V_s V 1 , V 2 , … , V s and let G i = G [ V 1 , V 2 , … , V s ] G_i=G[V_1,V_2,\ldots,V_s] G i = G [ V 1 , V 2 , … , V s ] .
end for
return G 1 , G 2 , … , G t G_1,G_2,\ldots,G_t G 1 , G 2 , … , G t
Lemma 18. Let f ( s , d ) = s d / ∑ i = 0 s ( − 1 ) i ( s i ) ( s − i ) d f(s,d)=s^d/\sum_{i=0}^{s}(-1)^i\binom{s}{i}(s-i)^d f ( s , d ) = s d / ∑ i = 0 s ( − 1 ) i ( i s ) ( s − i ) d , then EnsembleColor outputs a set of s s s -partite d d d -hypergraph G 1 , G 2 , … , G t G_1,G_2,\ldots,G_t G 1 , G 2 , … , G t where t = O ~ ( f 2 ( s , d ) ε 2 ) t=\widetilde{O}\left(\frac{f^2(s,d)}{\varepsilon^2}\right) t = O ( ε 2 f 2 ( s , d ) ) , such that we have,
Pr [ f ( s , d ) t ⋅ ∑ i = 1 t m ( G i ) ∈ ( 1 ± ε ) m ] ≥ 1 − δ \Pr\left[\frac{f(s,d)}{t}\cdot\sum_{i=1}^{t}m(G_i)\in(1\pm\varepsilon)m\right]\geq1-\delta Pr [ t f ( s , d ) ⋅ i = 1 ∑ t m ( G i ) ∈ ( 1 ± ε ) m ] ≥ 1 − δ
Proof. Fix an s s s -hypergraph G i G_i G i . For every hyperedge e ∈ E ( G ) e \in E(G) e ∈ E ( G ) , define a indicator random variable
I e = { 1 If e ∈ G i 0 Otherwise I_e =
\begin{cases}
1 & \text{If } e \in G_i\\
0 & \text{Otherwise}
\end{cases} I e = { 1 0 If e ∈ G i Otherwise
The expected number of hyperedges in G i G_i G i is
E [ m ( G i ) ] = ∑ e ∈ E ( G ) Pr [ I e = 1 ] = m f ( s , d ) \mathbb{E}[m(G_i)] = \sum_{e \in E(G)} \Pr[I_e = 1] = \frac{m}{f(s,d)} E [ m ( G i )] = e ∈ E ( G ) ∑ Pr [ I e = 1 ] = f ( s , d ) m
Therefore,
E [ ∑ i = 1 t m ( G i ) ] = m ⋅ t f ( s , d ) \mathbb{E}\left[\sum_{i=1}^{t}m(G_i)\right] = \frac{m \cdot t}{f(s,d)} E [ i = 1 ∑ t m ( G i ) ] = f ( s , d ) m ⋅ t
Now, applying Hoeffding’s Bound 35, with t = O ~ ( f 2 ( s , d ) ε 2 ) t = \widetilde{O}\left(\frac{f^2(s,d)}{\varepsilon^2}\right) t = O ( ε 2 f 2 ( s , d ) ) and 0 ≤ m ( G i ) ≤ m 0 \leq m(G_i) \leq m 0 ≤ m ( G i ) ≤ m , for all i ∈ [ t ] i \in[t] i ∈ [ t ] , we get
Pr [ ∣ f ( s , d ) t ⋅ ∑ i = 1 t m ( G i ) − m ∣ ≥ ε m ] = Pr [ ∣ ∑ i = 1 t m ( G i ) − t f ( s , d ) ⋅ m ∣ ≥ ε t f ( s , d ) ⋅ m ] \Pr\left[\left|\frac{f(s,d)}{t}\cdot\sum_{i=1}^{t}m(G_i)-m\right|\geq\varepsilon m\right]
=
\Pr\left[\left|\sum_{i=1}^{t}m(G_i)-\frac{t}{f(s,d)}\cdot m\right|\geq\frac{\varepsilon t}{f(s,d)}\cdot m\right] Pr [ t f ( s , d ) ⋅ i = 1 ∑ t m ( G i ) − m ≥ ε m ] = Pr [ i = 1 ∑ t m ( G i ) − f ( s , d ) t ⋅ m ≥ f ( s , d ) εt ⋅ m ]
≤ 2 ⋅ exp ( − 2 t ε 2 f 2 ( s , d ) ) ≤ δ \leq2\cdot\exp\left(-\frac{2t\varepsilon^2}{f^2(s,d)}\right)\leq\delta ≤ 2 ⋅ exp ( − f 2 ( s , d ) 2 t ε 2 ) ≤ δ
□
Algorithm 7 EdgeEstimation( G , ε ) (G,\varepsilon) ( G , ε )
Require: cISC access to the hypergraph G G G .
Ensure: An estimate of m ~ \widetilde{m} m
G 1 , G 2 , ⋯ , G t ← EnsembleColor ( G , ε 3 , 1 6 ) G_1,G_2,\cdots,G_t \leftarrow\operatorname{EnsembleColor}\left(G,\frac{\varepsilon}{3},\frac{1}{6}\right) G 1 , G 2 , ⋯ , G t ← EnsembleColor ( G , 3 ε , 6 1 )
for j = 1 j=1 j = 1 to t t t do
m ~ ( G j ) ← EdgeEstimationPartite ( G j , ε 3 , 1 6 t ) \widetilde{m}(G_j)\leftarrow\operatorname{EdgeEstimationPartite}\left(G_j,\frac{\varepsilon}{3},\frac{1}{6t}\right) m ( G j ) ← EdgeEstimationPartite ( G j , 3 ε , 6 t 1 )
end for
return m ~ ← f ( s , d ) t ⋅ ∑ i = 1 t m ~ ( G i ) \widetilde{m}\leftarrow\frac{f(s,d)}{t}\cdot\sum_{i=1}^{t}\widetilde{m}(G_i) m ← t f ( s , d ) ⋅ ∑ i = 1 t m ( G i )
Now, we prove the main upper bound.
Proof of Theorem 1. Correctness: Let E 1 \mathcal{E}_1 E 1 be the event that EnsembleColor outputs a set of s s s -partite d d d -hypergraph G 1 , G 2 , ⋯ , G t G_1,G_2,\cdots,G_t G 1 , G 2 , ⋯ , G t such that
f ( s , d ) t ⋅ ∑ i = 1 t m ( G i ) ∈ ( 1 ± ε 3 ) m \frac{f(s,d)}{t}\cdot\sum_{i=1}^{t}m(G_i)\in\left(1\pm\frac{\varepsilon}{3}\right)m t f ( s , d ) ⋅ i = 1 ∑ t m ( G i ) ∈ ( 1 ± 3 ε ) m
Then, from Lemma 18, Pr [ E 1 ] ≥ 5 / 6 \Pr[\mathcal{E}_1]\geq5/6 Pr [ E 1 ] ≥ 5/6 .
Let, for any i ∈ [ t ] i\in[t] i ∈ [ t ] , E 2 i \mathcal{E}_{2i} E 2 i be the event that EdgeEstimationPartite outputs an ( 1 ± ε / 3 ) (1\pm\varepsilon/3) ( 1 ± ε /3 ) -approximation of m ( G i ) m(G_i) m ( G i ) . By Lemma 16, Pr [ E 2 i ∣ E 1 ] ≥ 1 − 1 / 6 t \Pr[\mathcal{E}_{2i}\mid\mathcal{E}_1]\geq1-1/6t Pr [ E 2 i ∣ E 1 ] ≥ 1 − 1/6 t . Let E 2 \mathcal{E}_2 E 2 be the event that E 2 i \mathcal{E}_{2i} E 2 i occurs for all i ∈ [ t ] i\in[t] i ∈ [ t ] , that is
E 2 = ⋂ i = 1 t E 2 i (5) \mathcal{E}_2=\bigcap_{i=1}^{t}\mathcal{E}_{2i} \tag*{(5)} E 2 = i = 1 ⋂ t E 2 i (5)
Using the union bound, we can write Pr [ E 2 ∣ E 1 ] ≥ 5 / 6 \Pr[\mathcal{E}_2 \mid\mathcal{E}_1] \ge5/6 Pr [ E 2 ∣ E 1 ] ≥ 5/6 which implies
Pr [ ∑ i = 1 t m ~ ( G i ) ∈ ( 1 ± ε 3 ) ∑ i = 1 t m ( G i ) | E 1 ] ≥ 5 6 \Pr\left[\sum_{i=1}^{t}\widetilde{m}(G_i) \in\left(1 \pm\frac{\varepsilon}{3}\right)\sum_{i=1}^{t}m(G_i)\,\middle|\,\mathcal{E}_1\right] \ge\frac{5}{6} Pr [ i = 1 ∑ t m ( G i ) ∈ ( 1 ± 3 ε ) i = 1 ∑ t m ( G i ) E 1 ] ≥ 6 5
Therefore, Pr [ E 1 ∩ E 2 ] = Pr [ E 1 ] Pr [ E 2 ∣ E 1 ] ≥ 2 / 3 \Pr[\mathcal{E}_1 \cap\mathcal{E}_2] = \Pr[\mathcal{E}_1]\Pr[\mathcal{E}_2 \mid\mathcal{E}_1] \ge2/3 Pr [ E 1 ∩ E 2 ] = Pr [ E 1 ] Pr [ E 2 ∣ E 1 ] ≥ 2/3 .
In what follows, we assume that events E 1 \mathcal{E}_1 E 1 and E 2 \mathcal{E}_2 E 2 have occurred. we show that EdgeEstimation outputs ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of m ( G ) m(G) m ( G ) when both E 1 \mathcal{E}_1 E 1 and E 2 \mathcal{E}_2 E 2 holds. we have,
∑ i = 1 t m ~ ( G i ) ∈ ( 1 ± ε 3 ) ∑ i = 1 t m ( G i ) and f ( s , d ) t ⋅ ∑ i = 1 t m ( G i ) ∈ ( 1 ± ε 3 ) m \sum_{i=1}^{t}\widetilde{m}(G_i) \in\left(1 \pm\frac{\varepsilon}{3}\right)\sum_{i=1}^{t}m(G_i) \quad\text{and} \quad\frac{f(s,d)}{t}\cdot\sum_{i=1}^{t}m(G_i) \in\left(1 \pm\frac{\varepsilon}{3}\right)m i = 1 ∑ t m ( G i ) ∈ ( 1 ± 3 ε ) i = 1 ∑ t m ( G i ) and t f ( s , d ) ⋅ i = 1 ∑ t m ( G i ) ∈ ( 1 ± 3 ε ) m
Combining the above, we get
( 1 − ε 3 ) 2 m ( G ) ≤ f ( s , d ) t ∑ i = 1 t m ~ ( G i ) ≤ ( 1 + ε 3 ) 2 m ( G ) \left(1-\frac{\varepsilon}{3}\right)^2m(G) \le\frac{f(s,d)}{t}\sum_{i=1}^{t}\widetilde{m}(G_i) \le\left(1+\frac{\varepsilon}{3}\right)^2m(G) ( 1 − 3 ε ) 2 m ( G ) ≤ t f ( s , d ) i = 1 ∑ t m ( G i ) ≤ ( 1 + 3 ε ) 2 m ( G )
Using the fact that 1 − ε ≤ ( 1 − ε ) 2 1-\varepsilon\le(1-\varepsilon)^2 1 − ε ≤ ( 1 − ε ) 2 , ( 1 + ε ) 2 ≤ 1 + ε (1+\varepsilon)^2 \le1+\varepsilon ( 1 + ε ) 2 ≤ 1 + ε , for any ε ∈ ( 0 , 1 / 3 ) \varepsilon\in(0,1/3) ε ∈ ( 0 , 1/3 ) , we get
( 1 − ε ) m ( G ) ≤ f ( s , d ) t ∑ i = 1 t m ~ ( G i ) ≤ ( 1 + ε ) m ( G ) (1-\varepsilon)m(G) \le\frac{f(s,d)}{t}\sum_{i=1}^{t}\widetilde{m}(G_i) \le(1+\varepsilon)m(G) ( 1 − ε ) m ( G ) ≤ t f ( s , d ) i = 1 ∑ t m ( G i ) ≤ ( 1 + ε ) m ( G )
Query Complexity: EdgeEstimationPartite is executed t = O ( f 2 ( s , d ) / ε 2 ) t = O(f^2(s,d)/\varepsilon^2) t = O ( f 2 ( s , d ) / ε 2 ) times. So, from Lemma 15 the total query expected complexity is
O d ( f 2 ( s , d ) log 2 n ⋅ log log n ⋅ log 2 ( 1 / ε ) / ε 4 ) = C s , d ⋅ log 2 n ⋅ log log n ⋅ log 2 ( 1 / ε ) / ε 4 O_d\left(f^2(s,d)\log^2 n \cdot\log\log n \cdot\log^2(1/\varepsilon)/\varepsilon^4\right) = C_{s,d}\cdot\log^2 n \cdot\log\log n \cdot\log^2(1/\varepsilon)/\varepsilon^4 O d ( f 2 ( s , d ) log 2 n ⋅ log log n ⋅ log 2 ( 1/ ε ) / ε 4 ) = C s , d ⋅ log 2 n ⋅ log log n ⋅ log 2 ( 1/ ε ) / ε 4
where C s , d C_{s,d} C s , d is function in terms of s s s and d d d .
Lower Bounds
In this section, we establish the main lower bound of our work. We show that for every ( 1 ≤ s < d ) (1 \le s < d) ( 1 ≤ s < d ) , any randomized algorithm with access only to the s s s -colorful decision oracle (cIS) must make a polynomial number of queries to estimate the number of hyperedges in a d d d -uniform hypergraph.
We prove the following theorem in this section which is stronger that Theorem 2 in the sense that this is parametrized by the number of edges.
Theorem 19 (Main lower bound). Let d ≥ 2 d \ge2 d ≥ 2 , 1 ≤ s < d 1 \le s < d 1 ≤ s < d , and let m , n ∈ N m,n \in\mathbb{N} m , n ∈ N satisfy 1 ≤ m ≤ ( n d ) 1 \le m \le\binom{n}{d} 1 ≤ m ≤ ( d n ) . Any randomized algorithm that has access to an s s s -colorful c I S cIS c I S oracle must make
Ω ~ d , s ( min { 1 m 1 d − 1 ⋅ d − s d − s + 1 , ( n d m ) d − s d − s + 1 } ) \widetilde{\Omega}_{d,s}\left(\min\left\{\frac{1}{m^{\frac{1}{d-1}}\cdot\frac{d-s}{d-s+1}},\left(\frac{n^d}{m}\right)^{\frac{d-s}{d-s+1}}\right\}\right) Ω d , s ( min { m d − 1 1 ⋅ d − s + 1 d − s 1 , ( m n d ) d − s + 1 d − s } ) queries to distinguish whether a rank-d d d hypergraph has at most m m m hyperedges or at least 2 m 2m 2 m hyperedges, with probability at least 2 / 3 2/3 2/3 .
Theorem 19 immediately implies Theorem 2. Indeed, setting m = Θ ( n d − 1 ) m = \Theta(n^{d-1}) m = Θ ( n d − 1 ) in Theorem 19 yields a lower bound of
Ω ~ d , s ( ( n d m ) d − s d − s + 1 ) = Ω ~ d , s ( n d − s d − s + 1 ) . \widetilde{\Omega}_{d,s}\left(\left(\frac{n^d}{m}\right)^{\frac{d-s}{d-s+1}}\right) = \widetilde{\Omega}_{d,s}\left(n^{\frac{d-s}{d-s+1}}\right). Ω d , s ( ( m n d ) d − s + 1 d − s ) = Ω d , s ( n d − s + 1 d − s ) .
We remark that the lower bound in Theorem 19 continues to hold even if the algorithm is given access to a stronger s s s -colorful decision oracle (cIS), in which the s s s queried sets are allowed to overlap. For simplicity of notation, throughout this section we continue to use cIS to denote this stronger oracle.
We prove Theorem 19 by proving Lemma 20 and Lemma 21, stated below. Note that Lemmas 20 and 21 establish the desired lower bound when the number of hyperedges is large (m ≥ c n d − 1 / ( 2 d ) d − 1 m \ge cn^{d-1}/(2d)^{d-1} m ≥ c n d − 1 / ( 2 d ) d − 1 ) and small (m < c n d − 1 / ( 2 d ) d − 1 m < cn^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 ), respectively. Here c c c is a suitable constant.
Lemma 20 (Lower bound for dense hypergraphs). Let m ≥ c n d − 1 / d d − 1 m \ge cn^{d-1}/d^{d-1} m ≥ c n d − 1 / d d − 1 . Any randomized algorithm that has access to an s s s -colorful cIS oracle must make
C s , d ⋅ ( n d m ) d − s d − s + 1 ⋅ 1 log 6 n C_{s,d}\cdot\left(\frac{n^d}{m}\right)^{\frac{d-s}{d-s+1}}\cdot\frac{1}{\log^6 n} C s , d ⋅ ( m n d ) d − s + 1 d − s ⋅ log 6 n 1 queries to distinguish whether a rank-d d d hypergraph has at most m m m hyperedges or at least 2 m 2m 2 m hyperedges, with probability at least 2 / 3 2/3 2/3 . Here C s , d C_{s,d} C s , d is a constant that depends only on s s s and d d d .
Lemma 21 (Lower bound for sparse hypergraphs). Let m < c n d − 1 / d d − 1 m < cn^{d-1}/d^{d-1} m < c n d − 1 / d d − 1 . Any randomized algorithm that has access to an s s s -colorful cIS oracle must make
C s , d ′ ⋅ m 1 d − 1 ⋅ d − s d − s + 1 ⋅ 1 log 6 n C'_{s,d}\cdot m^{\frac{1}{d-1}\cdot\frac{d-s}{d-s+1}}\cdot\frac{1}{\log^6 n} C s , d ′ ⋅ m d − 1 1 ⋅ d − s + 1 d − s ⋅ log 6 n 1 queries to distinguish whether a rank-d d d hypergraph has at most m m m hyperedges or at least 2 m 2m 2 m hyperedges, with probability at least 2 / 3 2/3 2/3 . Here C s , d C_{s,d} C s , d is a constant that depends only on s s s and d d d .
We first prove Lemma 20 in We first prove Lemma 20 in Section 5.1. We then establish Lemma 21 in Section 5.2, whose proof relies on Lemma 20. Here α s , d \alpha_{s,d} α s , d is a constant that depends only on s s s and $d.
Proof of the lower bound in dense hypergraphs
For technical reasons, we assume m ≤ c u n d d d log 6 n m \le\frac{c_u n^d}{d^d\log^6 n} m ≤ d d l o g 6 n c u n d for some sufficiently small constant c u c_u c u . Otherwise, the claimed lower bound is straightforward as Ω ~ s , d ( ⋅ ) \widetilde{\Omega}_{s,d}(\cdot) Ω s , d ( ⋅ ) hides polylog term.
To establish the lower bound for the case of dense hypergraphs, we argue using Yao’s principle [Yao77]. We design two hypergraph distributions that are indistinguishable by any deterministic algorithm that uses less than o ( q ) o(q) o ( q ) queries, where:
q = ( n d m ) d − s d − s + 1 ⋅ 1 log 3 n q = \left(\frac{n^d}{m}\right)^{\frac{d-s}{d-s+1}}\cdot\frac{1}{\log^3 n} q = ( m n d ) d − s + 1 d − s ⋅ log 3 n 1
We start by describing the two distributions, D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no . Without loss of generality, we assume the vertex set of both the graphs to be [ n ] [n] [ n ] for some n ∈ N n \in\mathbb{N} n ∈ N .
D y e s \mathcal{D}_{\mathrm{yes}} D yes : The vertex set is partitioned into A 1 , A 2 , … , A d A_1, A_2, \ldots, A_d A 1 , A 2 , … , A d by putting each vertex in one of the { A i } i ∈ [ d ] \{A_i\}_{i \in[d]} { A i } i ∈ [ d ] independently and uniformly at random. For every d d d -tuple v 1 , v 2 , … , v d v_1, v_2, \ldots, v_d v 1 , v 2 , … , v d such that v i ∈ A i v_i \in A_i v i ∈ A i for all i ∈ [ d ] i \in[d] i ∈ [ d ] , the graph has an edge ⟨ v 1 , v 2 , … , v d ⟩ \langle v_1, v_2, \ldots, v_d\rangle ⟨ v 1 , v 2 , … , v d ⟩ with probability:
d d m 4 n d \frac{d^d m}{4n^d} 4 n d d d m
( 2 d ) d m log n n d \frac{(2d)^d m \log n}{n^d} n d ( 2 d ) d m log n
For every v b ∈ B v_b \in B v b ∈ B , we add edges { ⟨ v b , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … a d ∈ A d } \{\langle v_b,a_2,a_3,\ldots,a_d\rangle\mid a_2 \in A_2, a_3 \in A_3,\ldots a_d \in A_d\} {⟨ v b , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … a d ∈ A d } .
Both the probabilities above are less than 1 as we are working with m ≤ c u n d d d log 6 n m \le\frac{c_u n^d}{d^d \log^6 n} m ≤ d d l o g 6 n c u n d . We show (in Lemma 22) that, with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) , graphs sampled from D n o \mathcal{D}_{\mathrm{no}} D no contain almost twice as many edges as graphs sampled from D y e s \mathcal{D}_{\mathrm{yes}} D yes . However, any algorithm that distinguishes between D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no must encounter at least one vertex in the set B B B . We prove that, unless the algorithm makes Ω ( q ) \Omega(q) Ω ( q ) queries, it encounters a vertex in B B B with probability only o ( 1 ) o(1) o ( 1 ) . This forms the core of our lower-bound argument, which we formalize in the remainder of this section.
Lemma 22. With probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) ,
A graph sampled from D y e s \mathcal{D}_{\mathrm{yes}} D yes has at most m 2 \frac{m}{2} 2 m edges, and
A graph sampled from D n o \mathcal{D}_{\mathrm{no}} D no has at least m m m edges.
Proof. We proceed by analysing D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no separately.
D y e s \mathcal{D}_{\mathrm{yes}} D yes : For graphs generated by D y e s \mathcal{D}_{\mathrm{yes}} D yes , there are at most n d d d \frac{n^d}{d^d} d d n d d d d -tuples ⟨ v 1 , v 2 , … , v d ⟩ \langle v_1,v_2,\ldots,v_d\rangle ⟨ v 1 , v 2 , … , v d ⟩ such that v i ∈ A i v_i \in A_i v i ∈ A i for all i ∈ [ d ] i \in[d] i ∈ [ d ] . Each of which forms an hyperedge with probability d d m 4 n d \frac{d^d m}{4n^d} 4 n d d d m . Hence, the expected number of edges is m 4 \frac{m}{4} 4 m . As each hyperedge is formed independently, the claim follows by a Chernoff bound argument.
D n o \mathcal{D}_{\mathrm{no}} D no : For graphs generated by D n o \mathcal{D}_{\mathrm{no}} D no , we first note that with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) , we have ∣ A i ∣ ≥ n 2 d |A_i| \ge\frac{n}{2d} ∣ A i ∣ ≥ 2 d n for all i ∈ [ d ] i \in[d] i ∈ [ d ] . Furthermore, with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) , we have ∣ B ∣ ≥ ( 2 d ) d − 1 m n d − 1 |B| \ge\frac{(2d)^{d-1}m}{n^{d-1}} ∣ B ∣ ≥ n d − 1 ( 2 d ) d − 1 m . This is true since we assume m ≥ c n d − 1 ( 2 d ) d − 1 m \ge\frac{c n^{d-1}}{(2d)^{d-1}} m ≥ ( 2 d ) d − 1 c n d − 1 . Note that each vertex in B B B forms an edge with all ( d − 1 ) (d-1) ( d − 1 ) -tuples of the form ⟨ v 2 , v 3 , … , v d ⟩ \langle v_2,v_3,\ldots,v_d\rangle ⟨ v 2 , v 3 , … , v d ⟩ such that v i ∈ A i v_i \in A_i v i ∈ A i for all i i i . Hence, by a union bound, we have that the graph has at least m m m edges with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) .
Next, we want to show that the probability that an algorithm using o ( q ) o(q) o ( q ) queries hits a vertex in B B B is very small. However, such a claim is obviously false if the algorithm makes the queries set of vertices arbitrarily large. However, if the query set is too large, the hypergraph construction ensures that it is not independent with high probability. Hence, we can restrict meaningful queries to be of bounded size, say τ \tau τ and argue based on that. For this purpose, we describe an augmented oracle that simulates the cIS query for graphs generated by D y e s \mathcal{D}_{\mathrm{yes}} D yes or D n o \mathcal{D}_{\mathrm{no}} D no .
At each stage, an algorithm with access to the augmented oracle can maintain a triplet ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) where K ⊆ [ n ] K \subseteq[n] K ⊆ [ n ] is a set of vertices, ℓ : K → A 1 , A 2 , … , A d , B \ell: K \to A_1,A_2,\ldots,A_d,B ℓ : K → A 1 , A 2 , … , A d , B is a labelling function that denotes the set containing the vertices, and e : ( K d ) → { 0 , 1 } e:\binom{K}{d}\to\{0,1\} e : ( d K ) → { 0 , 1 } is the indicator function denoting whether the corresponding hyperedge exists or not. Initially, ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) is initiated with K = ∅ K=\emptyset K = ∅ . The augmented oracle takes as input the current state of ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) and a set of vertices Q 1 , Q 2 , … , Q s ⊆ [ n ] Q_1,Q_2,\ldots,Q_s\subseteq[n] Q 1 , Q 2 , … , Q s ⊆ [ n ] , and returns an updated ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) with additional information updated as outlined below depending on the size of query sets ∣ Q i ∣ |Q_i| ∣ Q i ∣ , and a threshold τ \tau τ where:
τ = 1 s ( n d m ) 1 d − s + 1 log n \tau=\frac{1}{s}\left(\frac{n^d}{m}\right)^{\frac{1}{d-s+1}}\log n τ = s 1 ( m n d ) d − s + 1 1 log n
If ∃ T ⊆ [ s ] \exists T\subseteq[s] ∃ T ⊆ [ s ] such that no colorful ∣ T ∣ |T| ∣ T ∣ -tuple can be formed using { Q t } t ∈ T \{Q_t\}_{t\in T} { Q t } t ∈ T : First, we consider the case that a subset of queries { Q t } t ∈ T \{Q_t\}_{t\in T} { Q t } t ∈ T prohibits the formation of a colorful tuple, i.e. there is no v 1 , v 2 , … , v ∣ T ∣ v_1,v_2,\ldots,v_{|T|} v 1 , v 2 , … , v ∣ T ∣ such that each v i v_i v i belongs to a different color class in A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d . This implies that the query set is an independent set according to the definition of the cIS oracle. The augmented oracle chooses a minimal such tuple T ∗ T^* T ∗ , and returns an updated ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) with K ← K ∪ { ⋃ i ∈ T ∗ Q i } K\leftarrow K\cup\{\bigcup_{i\in T^*}Q_i\} K ← K ∪ { ⋃ i ∈ T ∗ Q i } , and updates ℓ \ell ℓ for vertices in ⋃ t ∈ T ∗ Q t \bigcup_{t\in T^*}Q_t ⋃ t ∈ T ∗ Q t .
∣ Q i ∣ ≤ τ |Q_i|\leq\tau ∣ Q i ∣ ≤ τ for all i ∈ [ s ] i\in[s] i ∈ [ s ] : The augmented oracle returns K ← K ∪ { ⋃ i ∈ [ s ] Q i } K\leftarrow K\cup\{\bigcup_{i\in[s]}Q_i\} K ← K ∪ { ⋃ i ∈ [ s ] Q i } , and ℓ \ell ℓ and e e e are updated for the vertices in K ∪ { ⋃ i ∈ [ s ] Q i } K\cup\{\bigcup_{i\in[s]}Q_i\} K ∪ { ⋃ i ∈ [ s ] Q i } according to A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d , B B B , and the set of hyperedges in the sampled graph G G G .
∃ i ∈ [ s ] \exists i\in[s] ∃ i ∈ [ s ] such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ : The augmented oracle samples a subset R i ⊆ Q i R_i\subseteq Q_i R i ⊆ Q i of size τ \tau τ uniformly at random, for all i ∈ [ s ] i\in[s] i ∈ [ s ] such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ . For all i ∈ [ s ] i\in[s] i ∈ [ s ] such that ∣ Q i ∣ ≤ τ |Q_i|\leq\tau ∣ Q i ∣ ≤ τ , denote R i = Q i R_i=Q_i R i = Q i . If R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is not an independent set, the oracle returns K ← K ∪ { ⋃ i ∈ [ s ] R i } K\leftarrow K\cup\{\bigcup_{i\in[s]}R_i\} K ← K ∪ { ⋃ i ∈ [ s ] R i } , and returns ℓ \ell ℓ and e e e on the updated set of vertices. If R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is an independent set, the oracle fails , and returns the entire graph, i.e. K ← [ n ] K\leftarrow[n] K ← [ n ] , and ℓ \ell ℓ and e e e updated the vertices in K ∪ { ⋃ i ∈ [ s ] R i } K\cup\{\bigcup_{i\in[s]}R_i\} K ∪ { ⋃ i ∈ [ s ] R i } according to A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d , B B B , and the set of hyperedges in the sampled graph G G G .
Note that, without loss of generality, we can assume that all the queries consists of vertices not explored already, i.e. Q i ⊆ [ n ] ∖ K Q_i\subseteq[n]\setminus K Q i ⊆ [ n ] ∖ K . Next, we show that the augmented oracle can simulate the original cIS queries. We formalize this in the following result.
Lemma 23. Given a deterministic algorithm A \mathcal{A} A with access to cIS queries that makes q q q queries, there exists an algorithm A ‾ \overline{\mathcal{A}} A with access to augmented oracle such that:
Proof. We show how to simulate the cIS queries using augmented queries. The algorithm A ‾ \overline{\mathcal{A}} A then executes the algorithm A \mathcal{A} A using the simulated cIS queries. We consider the cases whether ∣ Q ∣ |Q| ∣ Q ∣ is less than or equal to τ \tau τ , or greater than τ \tau τ separately:
If ∃ T ⊆ [ s ] \exists T\subseteq[s] ∃ T ⊆ [ s ] such that no colorful ∣ T ∣ |T| ∣ T ∣ -tuple can be formed using { Q t } t ∈ T \{Q_t\}_{t\in T} { Q t } t ∈ T : The updated triplet contains the labels for vertices in ⋃ t ∈ T ∗ Q t \bigcup_{t\in T^*}Q_t ⋃ t ∈ T ∗ Q t . Given the updated labels, it can be checked that the query sets { ⋃ t ∈ T ∗ Q t } \{\bigcup_{t\in T^*}Q_t\} { ⋃ t ∈ T ∗ Q t } does not form a colorful tuple, i.e. the query forms an independent set.
∣ Q i ∣ ≤ τ |Q_i|\leq\tau ∣ Q i ∣ ≤ τ for all i ∈ [ s ] i\in[s] i ∈ [ s ] : The updated triplet ( K , ℓ , e ) (K,\ell,e) ( K , ℓ , e ) returned by the augmented oracle can be directly used to determine whether the queries vertices form an independent set or not based on the edges $e.
∃ i ∈ [ s ] \exists i \in[s] ∃ i ∈ [ s ] such that ∣ Q i ∣ > τ |Q_i| > \tau ∣ Q i ∣ > τ : We consider the two possible cases for the augmented oracle depending on whether R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is an independent set or not.
If R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is not an independent set, then Q 1 , Q 2 , … , Q s Q_1,Q_2,\ldots,Q_s Q 1 , Q 2 , … , Q s is also not an independent set.
If R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is an independent set, then the augmented oracle reveals the graph completely. Hence, one can decide whether Q 1 , Q 2 , … , Q s Q_1,Q_2,\ldots,Q_s Q 1 , Q 2 , … , Q s is an independent set or not.
We now focus on analyzing A ˉ \bar{\mathcal{A}} A ˉ , and bound its ability to distinguish between graphs generated by D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no using q q q queries. Observe that A ˉ \bar{\mathcal{A}} A ˉ can be seen as a tree of depth q q q whose each edge is labeled by a knowledge triplet ( K , ℓ , e ) (\mathbf{K},\ell,e) ( K , ℓ , e ) , and each node is labeled by a query set Q 1 , Q 2 , … , Q s Q_1,Q_2,\ldots,Q_s Q 1 , Q 2 , … , Q s . Given an edge ( u , v ) (u,v) ( u , v ) , we define the knowledge triplet of the node v v v to be the knowledge triplet associated with the incoming edge ( u , v ) (u,v) ( u , v ) . Furthermore, each leaf node is additionally labeled either ‘yes’ or ‘no’ denoting the output of the algorithm A ˉ \bar{\mathcal{A}} A ˉ . Below, we define the notion of good nodes that would be useful in our proof.
Definition 24 (Good and Bad Nodes). We say a node v v v in the tree is good if its corresponding knowledge triplet ( K , ℓ , e ) (\mathbf{K},\ell,e) ( K , ℓ , e ) satisfies ℓ − 1 ( B ) = ∅ \ell^{-1}(B)=\varnothing ℓ − 1 ( B ) = ∅ , and say the node v v v to be bad otherwise.
Now, we bound the probability that A ˉ \bar{\mathcal{A}} A ˉ reaches a bad node. Note that A ˉ \bar{\mathcal{A}} A ˉ can not reach a bad node if the graph G G G is generated by D y e s \mathcal{D}_{\mathrm{yes}} D yes . Hence, we only bound the probability for the case when the graph G G G is generated by D n o \mathcal{D}_{\mathrm{no}} D no . Next, we outline the conditional distribution of the graph G G G given the algorithm A ˉ \bar{\mathcal{A}} A ˉ is at a node v v v . The fact shows that given the algorithm is at a good node v v v , the conditional distribution of the unexplored graph retains sufficient randomness.
Fact 25. Let the algorithm A ˉ \bar{\mathcal{A}} A ˉ arrive at a good node v v v with corresponding knowledge triplet ( K , ℓ , e ) (\mathbf{K},\ell,e) ( K , ℓ , e ) . Then, the conditional distribution of the graph G G G is as follows:
G ∼ D y e s G \sim\mathcal{D}_{\mathrm{yes}} G ∼ D yes : Assign each i ∈ K i \in\mathbf{K} i ∈ K to A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d as fixed in ℓ \ell ℓ , and add edges as fixed in e e e . Assign vertices in [ n ] ∖ K [n]\setminus\mathbf{K} [ n ] ∖ K uniformly at random to one of A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d . For any pair ( a 1 , a 2 , … , a d ) (a_1,a_2,\ldots,a_d) ( a 1 , a 2 , … , a d ) such that ∃ i : a i ∉ K \exists i: a_i \notin\mathbf{K} ∃ i : a i ∈ / K , add an edge ( a 1 , a 2 , … , a d ) (a_1,a_2,\ldots,a_d) ( a 1 , a 2 , … , a d ) with probability d d m 4 n d \frac{d^d m}{4n^d} 4 n d d d m .
G ∼ D n o G \sim\mathcal{D}_{\mathrm{no}} G ∼ D no : Assign each i ∈ K i \in\mathbf{K} i ∈ K to A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d as fixed in ℓ \ell ℓ , and add edges as fixed in e e e . Assign vertices in [ n ] ∖ K [n]\setminus\mathbf{K} [ n ] ∖ K uniformly at random to one of A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d . For each i ∈ A 1 i \in A_1 i ∈ A 1 such that i ∉ K i \notin\mathbf{K} i ∈ / K , include i i i in B B B independently with probability ( 2 d ) d m log n n d \frac{(2d)^d m\log n}{n^d} n d ( 2 d ) d m l o g n . For any pair ( a 1 , a 2 , … , a d ) (a_1,a_2,\ldots,a_d) ( a 1 , a 2 , … , a d ) such that ∃ i \exists i ∃ i such that a i ∉ K a_i \notin\mathbf{K} a i ∈ / K , add an edge ( a 1 , a 2 , … , a d ) (a_1,a_2,\ldots,a_d) ( a 1 , a 2 , … , a d ) with probability d d m 4 n d \frac{d^d m}{4n^d} 4 n d d d m . For every v B ∖ K ∈ B ∖ K v_{B\setminus\mathbf{K}} \in B\setminus\mathbf{K} v B ∖ K ∈ B ∖ K , we add edges { ⟨ v B ∖ K , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … , a d ∈ A d } \{\langle v_{B\setminus\mathbf{K}},a_2,a_3,\ldots,a_d\rangle\mid a_2 \in A_2,a_3 \in A_3,\ldots,a_d \in A_d\} {⟨ v B ∖ K , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … , a d ∈ A d } .
Next, we show that if the query sets does not form a colorful tuple, then all of the sets have their size bounded by τ \tau τ with high probability. Note that, here the randomness comes from generating the graphs according to the underlying distribution.
Lemma 26. Let Q i Q_i Q i be a set such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ , and T ∗ ⊆ [ s ] \mathcal{T}^{*}\subseteq[s] T ∗ ⊆ [ s ] be a minimal set of query sets { Q t } t ∈ T ∗ \{Q_t\}_{t\in\mathcal{T}^{*}} { Q t } t ∈ T ∗ such that no colorful ∣ T ∗ ∣ |\mathcal{T}^{*}| ∣ T ∗ ∣ -tuple can be formed using them. Then, with probability 1 − o ( 1 q ) 1-o\left(\frac{1}{q}\right) 1 − o ( q 1 ) , i ∉ T ∗ i\notin\mathcal{T}^{*} i ∈ / T ∗ .
Proof. We prove by contradiction. Assume that i ∈ T ∗ i\in\mathcal{T}^{*} i ∈ T ∗ such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ . We first show that any such query set Q i Q_i Q i intersects with all the colored partitions A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d with high probability. Recall that the vertices are assigned to the partitions A 1 , A 2 , … , A d A_1, A_2, \ldots, A_d A 1 , A 2 , … , A d uniformly, and independently at random. The probability that Q i Q_i Q i fails to intersect a specific partition A j A_j A j is bounded by ( 1 − 1 d ) ∣ Q i ∣ \left(1-\frac{1}{d}\right)^{|Q_i|} ( 1 − d 1 ) ∣ Q i ∣ . By a union bound, the probability that Q i Q_i Q i misses any of the d d d partitions is at most:
d ( 1 − 1 d ) ∣ Q i ∣ ≤ d e − ∣ Q i ∣ d < d e − τ d ≤ d exp ( − 1 s d q 1 d − s ) = o ( 1 q ) d\left(1-\frac{1}{d}\right)^{|Q_i|} \leq d e^{-\frac{|Q_i|}{d}} < d e^{-\frac{\tau}{d}} \leq d\exp\left(-\frac{1}{sd}q^{\frac{1}{d-s}}\right)=o\left(\frac{1}{q}\right) d ( 1 − d 1 ) ∣ Q i ∣ ≤ d e − d ∣ Q i ∣ < d e − d τ ≤ d exp ( − s d 1 q d − s 1 ) = o ( q 1 )
Where the second last inequality follows from the fact that τ = 1 s ( n d m ) 1 d − s + 1 \tau=\frac{1}{s}\left(\frac{n^d}{m}\right)^{\frac{1}{d-s+1}} τ = s 1 ( m n d ) d − s + 1 1 and q = ( n d m ) d − s d − s + 1 q=\left(\frac{n^d}{m}\right)^{\frac{d-s}{d-s+1}} q = ( m n d ) d − s + 1 d − s , and the last equality follows from the fact that d > s d>s d > s .
Now, we show that if a query set spans all colors, it can not be part of a minimal set of queries that can not form a colorful tuple. Consider the bipartite graph ( T , A , E ) (T,A,E) ( T , A , E ) where T = { Q t } t ∈ T ∗ T=\{Q_t\}_{t\in T^*} T = { Q t } t ∈ T ∗ , A = { A 1 , A 2 , … , A d } A=\{A_1,A_2,\ldots,A_d\} A = { A 1 , A 2 , … , A d } , and ( Q t , A i ) ∈ E (Q_t,A_i)\in E ( Q t , A i ) ∈ E if Q t ∩ A i ≠ ∅ Q_t\cap A_i\neq\emptyset Q t ∩ A i = ∅ . If there exists a matching of ∣ T ∗ ∣ |T^*| ∣ T ∗ ∣ in this graph, then there exists a colorful ∣ T ∗ ∣ |T^*| ∣ T ∗ ∣ -tuple that can be formed using { Q t } t ∈ T ∗ \{Q_t\}_{t\in T^*} { Q t } t ∈ T ∗ . Hence, we consider the case where no matching of ∣ T ∗ ∣ |T^*| ∣ T ∗ ∣ exists in this graph. By Hall’s Marriage Theorem, and the minimality of T ∗ T^* T ∗ , we have:
∣ N ( T ∗ ) ∣ < ∣ T ∗ ∣ |N(T^*)|<|T^*| ∣ N ( T ∗ ) ∣ < ∣ T ∗ ∣
Note that the query set Q i Q_i Q i is part of T ∗ T^* T ∗ , and hence with probability 1 − o ( 1 q ) 1-o\left(\frac{1}{q}\right) 1 − o ( q 1 ) ,
∣ N ( T ∗ ) ∣ = d |N(T^*)|=d ∣ N ( T ∗ ) ∣ = d
On the other hand, we have:
∣ T ∗ ∣ ≤ s < d |T^*|\leq s<d ∣ T ∗ ∣ ≤ s < d
Hence, a contradiction.
Now, we bound the probability that A ‾ \overline{A} A reaches a bad node. Note that A ‾ \overline{A} A can not reach a bad node if the graph G G G is generated by D y e s \mathcal{D}_{\mathrm{yes}} D yes . Hence, we only bound the probability for the case when the graph G G G is generated by D n o \mathcal{D}_{\mathrm{no}} D no .
Lemma 27. Pr G ∼ D n o [ A ‾ ( G ) reaches a bad node ] = o ( 1 ) \Pr_{G\sim\mathcal{D}_{\mathrm{no}}}\left[\overline{A}(G)\text{ reaches a bad node}\right]=o(1) Pr G ∼ D no [ A ( G ) reaches a bad node ] = o ( 1 )
Proof. Note that the root note is always good as K = ∅ K=\emptyset K = ∅ . We now bound the probability that a query made by the algorithm A ‾ \overline{A} A causes it to reach a bad node given it started from a good node v v v . We consider the cases whether ∣ Q i ∣ ≤ τ |Q_i|\leq\tau ∣ Q i ∣ ≤ τ for all i ∈ [ s ] i\in[s] i ∈ [ s ] or ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ for some i ∈ [ s ] i\in[s] i ∈ [ s ] separately.
∣ Q i ∣ ≤ τ |Q_i|\leq\tau ∣ Q i ∣ ≤ τ for all i ∈ [ s ] i\in[s] i ∈ [ s ] : In this case, the query sets Q i Q_i Q i must share a vertex with B B B . Hence, we have:
Pr [ Q i ∩ B ≠ ∅ ∣ A ‾ is at a good node v ] ≤ ∣ Q i ∣ ⋅ 1 d ⋅ ( 2 d ) d m log n n d ≤ 1 s ( n d m ) 1 d − s + 1 log n ⋅ 1 d ⋅ ( 2 d ) d m log n n d = 1 s ( n d m ) s − d d − s + 1 ⋅ d d − 1 log 2 n = 1 s o ( 1 q ) \begin{aligned}
\Pr[Q_i\cap B\neq\emptyset\mid\overline{A}\text{ is at a good node }v]
\leq|Q_i|\cdot\frac{1}{d}\cdot\frac{(2d)^d m\log n}{n^d} \\
&\leq\frac{1}{s}\left(\frac{n^d}{m}\right)^{\frac{1}{d-s+1}}\log n\cdot\frac{1}{d}\cdot\frac{(2d)^d m\log n}{n^d} \\
&=\frac{1}{s}\left(\frac{n^d}{m}\right)^{\frac{s-d}{d-s+1}}\cdot d^{d-1}\log^2 n \\
&=\frac{1}{s}o\left(\frac{1}{q}\right)
\end{aligned} Pr [ Q i ∩ B = ∅ ∣ A is at a good node v ] ≤ ∣ Q i ∣ ⋅ d 1 ⋅ n d ( 2 d ) d m log n ≤ s 1 ( m n d ) d − s + 1 1 log n ⋅ d 1 ⋅ n d ( 2 d ) d m log n = s 1 ( m n d ) d − s + 1 s − d ⋅ d d − 1 log 2 n = s 1 o ( q 1 )
Hence, by union bound, no query set Q i Q_i Q i intersect with B B B with probability 1 − o ( 1 q ) 1-o\left(\frac{1}{q}\right) 1 − o ( q 1 ) . If ∃ T ⊆ [ s ] \exists T \subseteq[s] ∃ T ⊆ [ s ] such that no colorful ∣ T ∣ |T| ∣ T ∣ -tuple can be formed using { Q t } t ∈ T \{Q_t\}_{t\in T} { Q t } t ∈ T : By Lemma 26 , we have that any such query can contain a Q i Q_i Q i such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ with probability at most o ( 1 q ) o\left(\frac{1}{q}\right) o ( q 1 ) . Hence, all such queries reveals ⋃ i ∈ T ∗ Q i \bigcup_{i\in T^*}Q_i ⋃ i ∈ T ∗ Q i such that ∣ Q i ∣ < τ |Q_i|<\tau ∣ Q i ∣ < τ for all i ∈ T ∗ i\in T^* i ∈ T ∗ with probability at least 1 − o ( 1 q ) 1-o\left(\frac{1}{q}\right) 1 − o ( q 1 ) . Conditioning on the fact, we can bound the probability of reaching a bad node by o ( 1 q ) o\left(\frac{1}{q}\right) o ( q 1 ) using the same argument as the previous case.
∃ i ∈ [ s ] \exists i\in[s] ∃ i ∈ [ s ] such that ∣ Q i ∣ > τ |Q_i|>\tau ∣ Q i ∣ > τ : In this case, there are two ways for A ‾ \overline{\mathcal{A}} A to reach a bad node: 1) If R i ∩ B ≠ ∅ R_i\cap B\ne\emptyset R i ∩ B = ∅ for some i ∈ [ s ] i\in[s] i ∈ [ s ] , and 2) If R 1 , R 2 , … , R s R_1,R_2,\ldots,R_s R 1 , R 2 , … , R s is an independent set. The probability of the first event can be bounded as above. Hence, we focus on the second event. Observe that in this case there exits an i i i such that ∣ R i ∣ ≥ τ |R_i|\ge\tau ∣ R i ∣ ≥ τ . Let us denote R i ∗ R_i^* R i ∗ to be the largest query set R i R_i R i satisfying ∣ R i ∣ ≥ τ |R_i|\ge\tau ∣ R i ∣ ≥ τ . Observe that with probability 1 − 1 poly ( n ) 1-\frac{1}{\operatorname{poly}(n)} 1 − poly ( n ) 1 , we have that A j ∩ R i ∗ = Ω ( τ d ) A_j\cap R_i^*=\Omega\left(\frac{\tau}{d}\right) A j ∩ R i ∗ = Ω ( d τ ) for all j ∈ [ d ] j\in[d] j ∈ [ d ] . Now, we consider the number of edges ( v 1 , v 2 , … , v d ) (v_1,v_2,\ldots,v_d) ( v 1 , v 2 , … , v d ) such that ( v 1 , v 2 , … , v s − 1 ) (v_1,v_2,\ldots,v_{s-1}) ( v 1 , v 2 , … , v s − 1 ) forms a colorful tuple formed by { R i } i ∈ d ∖ R i ∗ \{R_i\}_{i\in d}\setminus R_i^* { R i } i ∈ d ∖ R i ∗ , and v s , v s , … , v d ∈ R i ∗ v_s,v_s,\ldots,v_d\in R_i^* v s , v s , … , v d ∈ R i ∗ . The existence of valid ( s − 1 ) (s-1) ( s − 1 ) -colorful tuple ensures that the expected number of such edges is at least:
∏ i = s d Ω ( τ d ) = Ω ( ( τ d ) d − s + 1 ) = Ω ( q ) \prod_{i=s}^{d}\Omega\left(\frac{\tau}{d}\right)=\Omega\left(\left(\frac{\tau}{d}\right)^{d-s+1}\right)=\Omega(q) i = s ∏ d Ω ( d τ ) = Ω ( ( d τ ) d − s + 1 ) = Ω ( q )
By Chernoff Bound, we have that with probability 1 − o ( 1 q ) 1-o\left(\frac{1}{q}\right) 1 − o ( q 1 ) , there exists such an edge. Hence, by an union bound over all possible queries q q q , the algorithm A \mathcal{A} A reaches a bad node with probability at most o ( 1 ) o(1) o ( 1 ) .
Next, we show that the probability of hitting a good node is not higher for a graph sampled from D n o \mathcal{D}_{\mathrm{no}} D no compared to that sampled from D y e s \mathcal{D}_{\mathrm{yes}} D yes .
Lemma 28. For every good node v v v in the tree of A ‾ \overline{\mathcal{A}} A , we have:
Pr G ∼ D n o [ A ‾ ( G ) reaches v ] ≤ Pr G ∼ D y e s [ A ‾ ( G ) reaches v ] \Pr_{G\sim\mathcal{D}_{\mathrm{no}}}\left[\overline{\mathcal{A}}(G)\text{ reaches }v\right]\le\Pr_{G\sim\mathcal{D}_{\mathrm{yes}}}\left[\overline{\mathcal{A}}(G)\text{ reaches }v\right] G ∼ D no Pr [ A ( G ) reaches v ] ≤ G ∼ D yes Pr [ A ( G ) reaches v ]
Proof. We first show a coupling between the distributions D y e s \mathcal{D}_{\mathrm{yes}} D yes , and D n o \mathcal{D}_{\mathrm{no}} D no . First, draw a graph G G G from D y e s \mathcal{D}_{\mathrm{yes}} D yes and obtain corresponding labeling A 1 , A 2 , … , A d A_1,A_2,\ldots,A_d A 1 , A 2 , … , A d . Then, we draw r ∈ { 0 , 1 } ∣ A 1 ∣ r\in\{0,1\}^{|A_1|} r ∈ { 0 , 1 } ∣ A 1 ∣ where each bit is set to 1 independently with probability d d m log n n d \frac{d^d m\log n}{n^d} n d d d m l o g n . Next, we construct G ′ G' G ′ from G G G by adding edges { ⟨ i , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … , a d ∈ A d } \{\langle i,a_2,a_3,\ldots,a_d\rangle\mid a_2\in A_2,a_3\in A_3,\ldots,a_d\in A_d\} {⟨ i , a 2 , a 3 , … , a d ⟩ ∣ a 2 ∈ A 2 , a 3 ∈ A 3 , … , a d ∈ A d } for all i ∈ A 1 i\in A_1 i ∈ A 1 such that r i = 1 r_i=1 r i = 1 . This defines a coupling between D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no as G ′ G' G ′ has the marginal distribution D n o \mathcal{D}_{\mathrm{no}} D no .
Now, let us consider v v v to be a good node in the execution tree of the algorithm A ‾ \overline{\mathcal{A}} A , and let ( K , ℓ , e ) (\mathbf{K},\ell,e) ( K , ℓ , e ) be its corresponding knowledge triple. A ‾ ( G ′ ) \overline{\mathcal{A}}(G') A ( G ′ ) reaches v v v if A ‾ ( G ) \overline{\mathcal{A}}(G) A ( G ) reaches v v v and r i = 0 r_i=0 r i = 0 for all i ∈ ℓ − 1 ( A 1 ) i\in\ell^{-1}(A_1) i ∈ ℓ − 1 ( A 1 ) . Hence, we have:
Pr ( G , G ′ ) [ A ‾ ( G ′ ) reaches v ] = Pr ( G , G ′ ) [ A ‾ ( G ) reaches v and r i = 0 , ∀ i ∈ ℓ − 1 ( A 1 ) ] ≤ Pr ( G , G ′ ) [ A ‾ ( G ) reaches v ] \Pr_{(G,G')}\left[\overline{\mathcal{A}}(G')\text{ reaches }v\right]
=
\Pr_{(G,G')}\left[\overline{\mathcal{A}}(G)\text{ reaches }v\text{ and }r_i=0,\ \forall i\in\ell^{-1}(A_1)\right]
\le
\Pr_{(G,G')}\left[\overline{\mathcal{A}}(G)\text{ reaches }v\right] ( G , G ′ ) Pr [ A ( G ′ ) reaches v ] = ( G , G ′ ) Pr [ A ( G ) reaches v and r i = 0 , ∀ i ∈ ℓ − 1 ( A 1 ) ] ≤ ( G , G ′ ) Pr [ A ( G ) reaches v ]
Now we show that an algorithm A ‾ \overline{\mathcal{A}} A using augmented oracle can not distinguish between graphs generated from D y e s \mathcal{D}_{\mathrm{yes}} D yes and D n o \mathcal{D}_{\mathrm{no}} D no .
Lemma 29. Let A ˉ \bar{A} A ˉ be a deterministic algorithm using at most q q q augmented oracles. Then, we have:
Pr G ∼ D n o [ A ˉ ( G ) outputs “no” ] − Pr G ∼ D y e s [ A ˉ ( G ) outputs “no” ] ≤ o ( 1 ) \Pr_{G\sim\mathcal{D}_{\mathrm{no}}}[\bar{A}(G)\text{ outputs “no”}]-\Pr_{G\sim\mathcal{D}_{\mathrm{yes}}}[\bar{A}(G)\text{ outputs “no”}]\leq o(1) G ∼ D no Pr [ A ˉ ( G ) outputs “no” ] − G ∼ D yes Pr [ A ˉ ( G ) outputs “no” ] ≤ o ( 1 ) Proof. Let L \mathcal{L} L denote the set of leaves in the execution tree of A ˉ \bar{A} A ˉ that are labeled “no”. Let L g ⊆ L \mathcal{L}_g\subseteq\mathcal{L} L g ⊆ L denote the subset of good nodes in L \mathcal{L} L . Then, we have:
Pr G ∼ D n o [ A ˉ ( G ) outputs “no” ] ≤ ∑ v ∈ L g Pr G ∼ D n o [ A ˉ reaches v ] + Pr G ∼ D n o [ A ˉ ( G ) reaches a bad node ] \Pr_{G\sim\mathcal{D}_{\mathrm{no}}}[\bar{A}(G)\text{ outputs “no”}]\leq\sum_{v\in\mathcal{L}_g}\Pr_{G\sim\mathcal{D}_{\mathrm{no}}}[\bar{A}\text{ reaches }v]+\Pr_{G\sim\mathcal{D}_{\mathrm{no}}}[\bar{A}(G)\text{ reaches a bad node}] G ∼ D no Pr [ A ˉ ( G ) outputs “no” ] ≤ v ∈ L g ∑ G ∼ D no Pr [ A ˉ reaches v ] + G ∼ D no Pr [ A ˉ ( G ) reaches a bad node ] ≤ ∑ v ∈ L g Pr G ∼ D y e s [ A ˉ reaches v ] + o ( 1 ) \leq\sum_{v\in\mathcal{L}_g}\Pr_{G\sim\mathcal{D}_{\mathrm{yes}}}[\bar{A}\text{ reaches }v]+o(1) ≤ v ∈ L g ∑ G ∼ D yes Pr [ A ˉ reaches v ] + o ( 1 ) ≤ Pr G ∼ D y e s [ A ˉ ( G ) outputs “no” ] + o ( 1 ) \leq\Pr_{G\sim\mathcal{D}_{\mathrm{yes}}}[\bar{A}(G)\text{ outputs “no”}]+o(1) ≤ G ∼ D yes Pr [ A ˉ ( G ) outputs “no” ] + o ( 1 )
Note that the proof of Lemma 20 is done.
Proof of the lower bound in sparse hypergraphs
Let α = d − s d − s + 1 \alpha=\frac{d-s}{d-s+1} α = d − s + 1 d − s . Suppose, for the sake of contradiction, that there exists an algorithm A A A which, for every d d d -uniform hypergraph H 1 H_1 H 1 on Θ ( n ) \Theta(n) Θ ( n ) vertices satisfying m < c n d − 1 / ( 2 d ) d − 1 m<c n^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 (the sparse case), distinguishes between ∣ E ( H 1 ) ∣ ≤ m |E(H_1)|\leq m ∣ E ( H 1 ) ∣ ≤ m and ∣ E ( H 1 ) ∣ ≥ 2 m |E(H_1)|\geq2m ∣ E ( H 1 ) ∣ ≥ 2 m using s s s -colorful cIS queries with probability at least 2 / 3 2/3 2/3 , while making fewer than
C s , d ′ m α / ( d − 1 ) log 6 n C'_{s,d}\frac{m^{\alpha/(d-1)}}{\log^6 n} C s , d ′ log 6 n m α / ( d − 1 )
queries, where C s , d ′ C'_{s,d} C s , d ′ is a constant to be fixed later. We use A A A to contradict Lemma 20. Define n 2 : = ( ( 2 d ) d − 1 m / c ) 1 / ( d − 1 ) n_2:=((2d)^{d-1}m/c)^{1/(d-1)} n 2 := (( 2 d ) d − 1 m / c ) 1/ ( d − 1 ) , so that m = c n 2 d − 1 / ( 2 d ) d − 1 m=cn_2^{d-1}/(2d)^{d-1} m = c n 2 d − 1 / ( 2 d ) d − 1 . That is, ( n 2 , m ) (n_2,m) ( n 2 , m ) sits exactly on the dense/sparse threshold for n 2 n_2 n 2 , and in particular satisfies (with equality) the hypothesis m ≥ c n 2 d − 1 / ( 2 d ) d − 1 m\geq cn_2^{d-1}/(2d)^{d-1} m ≥ c n 2 d − 1 / ( 2 d ) d − 1 of Lemma 20. Moreover, since m < c n d − 1 / ( 2 d ) d − 1 m<cn^{d-1}/(2d)^{d-1} m < c n d − 1 / ( 2 d ) d − 1 , we get n 2 d − 1 = ( 2 d ) d − 1 m / c < n d − 1 n_2^{d-1}=(2d)^{d-1}m/c<n^{d-1} n 2 d − 1 = ( 2 d ) d − 1 m / c < n d − 1 , so n 2 < n n_2<n n 2 < n . Therefore the pair ( n 2 , m ) (n_2,m) ( n 2 , m ) satisfies the assumptions of Lemma 20. Let H 2 H_2 H 2 be an arbitrary instance of Lemma 20, and construct H 1 : = H 2 ⊔ H 0 H_1:=H_2\sqcup H_0 H 1 := H 2 ⊔ H 0 , where H 0 H_0 H 0 is a vertex-disjoint d d d -uniform hypergraph containing Θ ( n ) \Theta(n) Θ ( n ) additional vertices and no hyperedges. The added vertices respect the given s s s -color partition. Thus, H 1 H_1 H 1 has Θ ( n ) \Theta(n) Θ ( n ) vertices and exactly the same number of hyperedges as H 2 H_2 H 2 .
Every s s s -colorful cIS query made by A A A to H 1 H_1 H 1 can be simulated using one query to H 2 H_2 H 2 . Suppose A A A queries the sets ( S 1 , … , S s ) (S_1,\ldots,S_s) ( S 1 , … , S s ) . For every i ∈ [ s ] i\in[s] i ∈ [ s ] , let S i ′ : = S i ∩ V ( H 2 ) S'_i:=S_i\cap V(H_2) S i ′ := S i ∩ V ( H 2 ) . Since the sets ( S 1 , … , S s ) (S_1,\ldots,S_s) ( S 1 , … , S s ) are pairwise disjoint, so are ( S 1 ′ , … , S s ′ ) (S'_1,\ldots,S'_s) ( S 1 ′ , … , S s ′ ) , and therefore they form a valid s s s -colorful cIS query to H 2 H_2 H 2 . Furthermore, H 0 H_0 H 0 contains no hyperedges, and there are no hyperedges between H 0 H_0 H 0 and H 2 H_2 H 2 . Hence, the answer to the query ( S 1 , … , S s ) (S_1,\ldots,S_s) ( S 1 , … , S s ) on H 1 H_1 H 1 is identical to the answer to ( S 1 ′ , … , S s ′ ) (S'_1,\ldots,S'_s) ( S 1 ′ , … , S s ′ ) on H 2 H_2 H 2 . Consequently, A ′ A' A ′ simulates every query of A A A using exactly one oracle query, and therefore has the same success probability and query complexity as A A A .
A direct computation gives n 2 d / m = ( ( 2 d ) d − 1 / c ) d / ( d − 1 ) m 1 / ( d − 1 ) n_2^d/m=((2d)^{d-1}/c)^{d/(d-1)}m^{1/(d-1)} n 2 d / m = (( 2 d ) d − 1 / c ) d / ( d − 1 ) m 1/ ( d − 1 ) , so that, writing C = ( ( 2 d ) d − 1 / c ) d / ( d − 1 ) C=((2d)^{d-1}/c)^{d/(d-1)} C = (( 2 d ) d − 1 / c ) d / ( d − 1 ) for a constant depending only on d d d ,
( n 2 d m ) α = C α m α / ( d − 1 ) . \left(\frac{n_2^d}{m}\right)^\alpha=C^\alpha m^{\alpha/(d-1)}. ( m n 2 d ) α = C α m α / ( d − 1 ) .
Hence, the query bound assumed for A \mathcal{A} A (and hence for its simulation A ′ \mathcal{A}' A ′ on H 2 H_2 H 2 ) can be rewritten as
C s , d ′ ⋅ m α / ( d − 1 ) log c n = C s , d ′ C α ( n 2 d m ) α 1 log 6 n . C'_{s,d} \cdot\frac{m^{\alpha/(d-1)}}{\log^c n} = \frac{C'_{s,d}}{C^\alpha} \left(\frac{n_2^d}{m}\right)^\alpha\frac{1}{\log^6 n}. C s , d ′ ⋅ log c n m α / ( d − 1 ) = C α C s , d ′ ( m n 2 d ) α log 6 n 1 .
We now set C s , d ′ : = C α ⋅ C s , d C'_{s,d} := C^\alpha\cdot C_{s,d} C s , d ′ := C α ⋅ C s , d , where C s , d C_{s,d} C s , d is the constant appearing in Lemma 20. On the other hand, Lemma 20 asserts that every algorithm for distinguishing whether ∣ E ( H 2 ) ∣ ≤ m |E(H_2)| \le m ∣ E ( H 2 ) ∣ ≤ m or ∣ E ( H 2 ) ∣ ≥ 2 m |E(H_2)| \ge2m ∣ E ( H 2 ) ∣ ≥ 2 m requires at least C s , d ( n 2 d / m ) α / ( log n ) 6 C_{s,d}(n_2^d/m)^\alpha/(\log n)^6 C s , d ( n 2 d / m ) α / ( log n ) 6 queries. This directly contradicts the query bound assumed for A ′ \mathcal{A}' A ′ . Therefore, A \mathcal{A} A cannot exist, proving the desired lower bound. Hence, we are done with the proof of Lemma 21.
Discussion and Applications
Our main algorithm naturally yields a high-probability constant-factor approximation to the number of hyperedges. Such a coarse estimator is a fundamental primitive in the framework of [22 ] for hyperedge estimation and almost-uniform hyperedge sampling. We observe that this framework, although originally developed for the d d d -colorful decision oracle, applies verbatim to the s s s -colorful random certificate oracle. Consequently, our main result immediately implies efficient algorithms for both problems.
By standard probability amplification, Theorem 1 immediately yields the following.
Corollary 30. For every integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , there exists a randomized algorithm that, given access to the s s s -colorful random certificate oracle c I S C \mathsf{cISC} cISC , outputs an estimate m ^ \widehat{m} m satisfying m 2 ≤ m ^ ≤ 2 m \frac{m}{2} \le\widehat{m} \le2m 2 m ≤ m ≤ 2 m with probability at least 1 − 1 / poly ( n ) 1 - 1/\operatorname{poly}(n) 1 − 1/ poly ( n ) using O s , d ( log 3 n log log n ) O_{s,d}(\log^3 n \log\log n) O s , d ( log 3 n log log n ) s s s -colorful random certificate queries.
Besides hyperedge estimation, another fundamental task is almost-uniform hyperedge sampling, where the goal is to output a hyperedge according to a distribution D \mathcal{D} D satisfying
Pr e ∼ D [ e ] ∈ [ 1 ( 1 + ε ) m , 1 + ε m ] . \Pr_{e\sim\mathcal{D}}[e] \in\left[\frac{1}{(1+\varepsilon)m}, \frac{1+\varepsilon}{m}\right]. e ∼ D Pr [ e ] ∈ [ ( 1 + ε ) m 1 , m 1 + ε ] .
for every hyperedge e e e .
As observed by [5 ] , the framework of [22 ] reduces both hyperedge estimation and almost-uniform hyperedge sampling to the problem of obtaining a high-probability constant-factor estimate of the number of hyperedges.
Proposition 31 ([22 , 5 ] ). Suppose there exists an algorithm C o a r s e \mathsf{Coarse} Coarse that, given access to the s s s -colorful random certificate oracle, makes q q q queries and outputs an estimate m ^ ∈ [ m / b , b m ] \widehat{m} \in[m/b,bm] m ∈ [ m / b , bm ] with probability at least 1 − 1 / poly ( n ) 1 - 1/\operatorname{poly}(n) 1 − 1/ poly ( n ) . Then:
Hyperedge estimation can be solved using O ~ d ( ( log ( n b ) + b 2 ε − 2 log 2 n ) log 2 n ⋅ q ) \widetilde{O}_d\left((\log(nb) + b^2\varepsilon^{-2}\log^2 n)\log^2 n \cdot q\right) O d ( ( log ( nb ) + b 2 ε − 2 log 2 n ) log 2 n ⋅ q ) queries.
Almost-uniform hyperedge sampling can be solved using O ~ d ( ( log ( n b ) + b 2 ε − 2 log 2 n ) log 6 n ⋅ q ) \widetilde{O}_d\left((\log(nb) + b^2\varepsilon^{-2}\log^2 n)\log^6 n \cdot q\right) O d ( ( log ( nb ) + b 2 ε − 2 log 2 n ) log 6 n ⋅ q ) queries.
Instantiating Proposition 31 with the coarse estimator from Corollary 30 immediately yields the following theorem.
Theorem 32. For every integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , there exists a randomized algorithm that, given access to the s s s -colorful random certificate oracle c I S C \mathsf{cISC} cISC , computes a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges using O ~ s , d ( ε − 2 log 7 n log log n ) \widetilde{O}_{s,d}(\varepsilon^{-2}\log^7 n\log\log n) O s , d ( ε − 2 log 7 n log log n ) queries.
Moreover, there exists a randomized algorithm that outputs a hyperedge according to a distribution D D D satisfying Pr e ∼ D [ e ] ∈ [ 1 ( 1 + ε ) m , 1 + ε m ] \Pr_{e\sim D}[e] \in\left[\frac{1}{(1+\varepsilon)m},\frac{1+\varepsilon}{m}\right] Pr e ∼ D [ e ] ∈ [ ( 1 + ε ) m 1 , m 1 + ε ] for every hyperedge e e e , using O ~ s , d ( ε − 2 log 11 n log log n ) \widetilde{O}_{s,d}(\varepsilon^{-2}\log^{11} n\log\log n) O s , d ( ε − 2 log 11 n log log n ) queries.
Combining Theorem 1 with Theorem 32 (or the theorem obtained from Proposition 31) immediately yields the following corollary.
Corollary 33. For every integer 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , there exists a randomized algorithm that, given access to the s s s -colorful random certificate oracle c I S C \mathsf{cISC} cISC , computes a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -approximation of the number of hyperedges with probability at least 1 − 1 / poly ( n ) 1 - 1/\operatorname{poly}(n) 1 − 1/ poly ( n ) using
O ~ s , d ( ε − 2 log 3 n log log n ⋅ min { ε − 2 , log 4 n } ) \widetilde{O}_{s,d}\left(\varepsilon^{-2}\log^3 n\log\log n \cdot\min\{\varepsilon^{-2},\log^4 n\}\right) O s , d ( ε − 2 log 3 n log log n ⋅ min { ε − 2 , log 4 n } ) s s s -colorful random certificate queries.
The above corollary combines the strengths of the two approaches. For ε ≥ 1 / log 2 n \varepsilon\ge1/\log^2 n ε ≥ 1/ log 2 n , the direct algorithm of Theorem 1 yields the better query complexity, whereas for ε < 1 / log 2 n \varepsilon< 1/\log^2 n ε < 1/ log 2 n , the reduction through the coarse estimator and the framework of [22 ] gives the better bound. In particular, while our direct algorithm provides the strongest known bounds for hyperedge estimation over a broad range of approximation parameters, the reduction via coarse estimation additionally yields an efficient algorithm for almost-uniform hyperedge sampling.
Conclusion
We introduced a hierarchy of s s s -colorful query oracles for hyperedge estimation and gave the first systematic study of their power. Our results show that, for every 1 ≤ s ≤ d 1 \le s \le d 1 ≤ s ≤ d , a polylogarithmic number of s s s -colorful random certificate queries suffice for hyperedge estimation, with the exponent of the log n \log n log n factor, is an absolute constant, independent of both s s s and d d d . In contrast, for every 1 ≤ s < d 1 \le s < d 1 ≤ s < d , any algorithm using only the corresponding s s s -colorful decision oracle requires polynomially many queries. Combined with the known bounds for the d d d -colorful decision oracle [22 , 5 , 23 ] , this reveals a phase transition at s = d s = d s = d : the decision query complexity drops from polynomial to polylogarithmic precisely at s = d s = d s = d , yet even there a separation persists, as random certificates provably reduce the exponent of the log n \log n log n factor from Θ ( d ) \Theta(d) Θ ( d ) to an absolute constant. More broadly, our work unifies several previously studied global query models within a common framework, and exhibits a fine-grained decision-versus-search separation for approximate counting: search with uniformly random certificates is exponentially more powerful than decision access whenever the underlying solver supports fewer than d d d restriction classes. Determining the exact query complexity of the s s s -colorful decision oracle as a function of s s s , and characterizing the query models in which random certificates provably help, are natural directions for future work.
Threshold Checking
In this section, we present the algorithms IsCollision, BirthdayEstimate and the proofs of Lemma 4 and Lemma 5.
Algorithm 8 IsCollision($G$, $\tau$, $\delta$)
Require: cISC access to the $s$-partite $d$-hypergraph $G$ and a threshold $\tau$.
Ensure: 0 or 1
1: for $i \leftarrow 1$ to $O(\log(\delta^{-1}))$ do
2: Uniformly and independently sample $t = \sqrt{2\tau}$ random hyperedges from $G$ using cISC query.
3: if there is a collision then
4: $k_i \leftarrow 1$
5: else
6: $k_i \leftarrow 0$
7: end if
8: end for
9: if more than half of $k_i$ are 1 then
10: return 1
11: else
12: return 0
13: end if
Lemma 4 (Correctness of IsCollision). For a s s s -partite d d d -hypergraph H H H and a threshold τ ≥ 1 \tau\ge1 τ ≥ 1 , the following statements hold for IsCollision with probability at least 1 − δ 1-\delta 1 − δ :
(i) If m ( H ) ≤ τ m(H) \le\tau m ( H ) ≤ τ , then IsCollision outputs 1.
(ii) If m ( H ) ≥ 8 τ m(H) \ge8\tau m ( H ) ≥ 8 τ , then IsCollision outputs 0.
The number of cISC queries made is O ( τ log ( δ − 1 ) ) O(\sqrt{\tau}\log(\delta^{-1})) O ( τ log ( δ − 1 ))
Proof. Fix an iteration i i i of IsCollision (Line 1). The probability that no collision occurs in the i i i -th iteration is
Pr [ k i = 0 ] = ∏ j = 0 t − 1 ( 1 − j m ( U ) ) . \Pr[k_i = 0] = \prod_{j=0}^{t-1}\left(1-\frac{j}{m(U)}\right). Pr [ k i = 0 ] = j = 0 ∏ t − 1 ( 1 − m ( U ) j ) .
If m ( G ) ≤ τ m(G) \le\tau m ( G ) ≤ τ , We upper bound the probability of no collision as follows:
Pr [ k i = 0 ] ≤ exp ( − ∑ j = 0 t − 1 j m ( G ) ) \Pr[k_i = 0] \le\exp\left(-\sum_{j=0}^{t-1}\frac{j}{m(G)}\right) Pr [ k i = 0 ] ≤ exp ( − j = 0 ∑ t − 1 m ( G ) j )
( 1 + x ≤ e x (1+x \le e^x ( 1 + x ≤ e x for all x ∈ R x \in\mathbb{R} x ∈ R )
= exp ( − t ( t − 1 ) 2 m ( G ) ) ≤ exp ( − t ( t − 1 ) 2 τ ) \begin{aligned}
= \exp\left(-\frac{t(t-1)}{2m(G)}\right) \\
&\le\exp\left(-\frac{t(t-1)}{2\tau}\right)
\end{aligned} = exp ( − 2 m ( G ) t ( t − 1 ) ) ≤ exp ( − 2 τ t ( t − 1 ) )
(since m ( G ) ≤ τ m(G) \le\tau m ( G ) ≤ τ )
(using t = 2 τ t=\sqrt{2\tau} t = 2 τ ).
If m ( G ) ≥ 8 τ m(G) \ge8\tau m ( G ) ≥ 8 τ , we lower bound the probability of no collision:
Pr [ k i = 0 ] ≥ exp ( − ∑ j = 0 t − 1 ( j m ( G ) + j 2 m ( G ) 2 ) ) \Pr[k_i = 0] \ge\exp\left(-\sum_{j=0}^{t-1}\left(\frac{j}{m(G)}+\frac{j^2}{m(G)^2}\right)\right) Pr [ k i = 0 ] ≥ exp ( − j = 0 ∑ t − 1 ( m ( G ) j + m ( G ) 2 j 2 ) )
( 1 − x ≥ e − x − x 2 (1-x \ge e^{-x-x^2} ( 1 − x ≥ e − x − x 2 for x ∈ [ 0 , 2 / 3 ] x \in[0,2/3] x ∈ [ 0 , 2/3 ] )
≥ exp ( − t ( t − 1 ) 16 τ + Θ ( 1 τ ) ) ≥ 1 2 \begin{aligned}
\ge\exp\left(-\frac{t(t-1)}{16\tau}+\Theta\left(\frac{1}{\sqrt{\tau}}\right)\right) \\
&\ge\frac{1}{2}
\end{aligned} ≥ exp ( − 16 τ t ( t − 1 ) + Θ ( τ 1 ) ) ≥ 2 1
(using t = 2 τ t=\sqrt{2\tau} t = 2 τ ).
If m ( G ) ≤ τ m(G) \le\tau m ( G ) ≤ τ , Pr [ k i = 0 ] ≤ 1 e \Pr[k_i = 0] \le\frac{1}{e} Pr [ k i = 0 ] ≤ e 1 . IsCollision outputs 0 when more than half of k i = 0 k_i = 0 k i = 0 . Over log ( δ − 1 ) \log(\delta^{-1}) log ( δ − 1 ) parallel runs, using the upper tail estimate of the Chernoff Bound (see Lemma 36 ), the probability that IsCollision outputs 0 is at most exp ( − log ( δ − 1 ) ) = δ \exp(-\log(\delta^{-1})) = \delta exp ( − log ( δ − 1 )) = δ . Similarly, if m ( G ) ≥ 8 τ m(G) \ge8\tau m ( G ) ≥ 8 τ , the probability that IsCollision outputs 1 is at most δ \delta δ .
Algorithm 9 BirthdayEstimate( G , τ , ε , δ ) (G,\tau,\varepsilon,\delta) ( G , τ , ε , δ )
Require: cISC access to the s s s -partite d d d -hypergraph G G G , error parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , confidence δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and a threshold τ ≥ 1 \tau\ge1 τ ≥ 1 .
Ensure: An estimate of m ( G ) m(G) m ( G )
Uniformly and independently sample Θ ( ε − 1 τ log ( δ − 1 ) ) \Theta\left(\varepsilon^{-1}\sqrt{\tau}\log(\delta^{-1})\right) Θ ( ε − 1 τ log ( δ − 1 ) ) random hyperedges from G G G using cISC query.
Let s = Θ ( ε − 1 τ log ( δ − 1 ) ) s=\Theta\left(\varepsilon^{-1}\sqrt{\tau}\log(\delta^{-1})\right) s = Θ ( ε − 1 τ log ( δ − 1 ) ) be the number of samples drawn and r r r is the number of collisions.
return ( s 2 ) / r \binom{s}{2}/r ( 2 s ) / r .
Lemma 5 (Correctness of BirthdayEstimate). For a s s s -partite d d d -hypergraph H H H , threshold τ ≥ 1 \tau\ge1 τ ≥ 1 and approximation error ε > 0 \varepsilon> 0 ε > 0 . If m ( H ) ≤ τ m(H) \le\tau m ( H ) ≤ τ , then BirthdayEstimate outputs an ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) estimate of m ( H ) m(H) m ( H ) with probability at least 1 − δ 1-\delta 1 − δ . The number of cISC query made is Θ ( ε − 1 τ log ( δ − 1 ) ) \Theta\left(\varepsilon^{-1}\sqrt{\tau}\log(\delta^{-1})\right) Θ ( ε − 1 τ log ( δ − 1 ) ) .
Proof. Let { e 1 , e 2 , … , e s } \{e_1,e_2,\ldots,e_s\} { e 1 , e 2 , … , e s } be the sampled edges. For $1 \le i < j \le s$, define the indicator random variable X i j X_{ij} X ij to be 1 if e i = e j e_i=e_j e i = e j and 0 otherwise. Then,
Pr [ X i j = 1 ] = 1 m ( G ) and E [ X i j ] = 1 m ( G ) \Pr[X_{ij}=1]=\frac{1}{m(G)} \quad\text{and} \quad\mathbb{E}[X_{ij}]=\frac{1}{m(G)} Pr [ X ij = 1 ] = m ( G ) 1 and E [ X ij ] = m ( G ) 1
Define the total number of collisions by X = ∑ 1 ≤ i < j ≤ s X i j X=\sum_{1\le i<j\le s}X_{ij} X = ∑ 1 ≤ i < j ≤ s X ij . By the linearity of expectation
E [ X ] = ( s 2 ) 1 m ( G ) \mathbb{E}[X]=\binom{s}{2}\frac{1}{m(G)} E [ X ] = ( 2 s ) m ( G ) 1
Since the random variables X i j X_{ij} X ij are not independent. We will bound the variance using
Var ( X ) = ∑ i < j Var ( X i j ) + 2 ∑ i < j , k < ℓ Cov ( X i j , X k ℓ ) (6) \operatorname{Var}(X)=\sum_{i<j}\operatorname{Var}(X_{ij})+2\sum_{i<j,k<\ell}\operatorname{Cov}(X_{ij},X_{k\ell}) \tag*{(6)} Var ( X ) = i < j ∑ Var ( X ij ) + 2 i < j , k < ℓ ∑ Cov ( X ij , X k ℓ ) (6)
Let us bound the first term Var ( X i j ) \operatorname{Var}(X_{ij}) Var ( X ij ) in (6)
∑ i < j Var ( X i j ) ≤ ∑ i < j E [ X i j 2 ] ≤ ( s 2 ) 1 m ( G ) = E [ X ] \sum_{i<j}\operatorname{Var}(X_{ij})\le\sum_{i<j}\mathbb{E}[X_{ij}^{2}]\le\binom{s}{2}\frac{1}{m(G)}=\mathbb{E}[X] i < j ∑ Var ( X ij ) ≤ i < j ∑ E [ X ij 2 ] ≤ ( 2 s ) m ( G ) 1 = E [ X ]
Next, consider the covariance terms in (6) . If X i j X_{ij} X ij and X k ℓ X_{k\ell} X k ℓ correspond to disjoint pairs, then they are independent and the covariance is zero. If they overlap in exactly one index (share exactly one index), then
Cov ( X i j , X j ℓ ) = E [ X i j X j ℓ ] − E [ X i j ] E [ X j ℓ ] = Pr [ X i j = X j ℓ = 1 ] − 1 m ( G ) 2 = Pr [ e i = e j = e ℓ ] − 1 m ( G ) 2 = 0 \begin{aligned}
\operatorname{Cov}(X_{ij},X_{j\ell})&=\mathbb{E}[X_{ij}X_{j\ell}]-\mathbb{E}[X_{ij}]\mathbb{E}[X_{j\ell}]\\
&=\Pr[X_{ij}=X_{j\ell}=1]-\frac{1}{m(G)^2}\\
&=\Pr[e_i=e_j=e_\ell]-\frac{1}{m(G)^2}\\
&=0
\end{aligned} Cov ( X ij , X j ℓ ) = E [ X ij X j ℓ ] − E [ X ij ] E [ X j ℓ ] = Pr [ X ij = X j ℓ = 1 ] − m ( G ) 2 1 = Pr [ e i = e j = e ℓ ] − m ( G ) 2 1 = 0
So, the bound on the variance is Var ( X ) = ∑ i < j Var ( X i j ) ≤ E [ X ] \operatorname{Var}(X)=\sum_{i<j}\operatorname{Var}(X_{ij})\le\mathbb{E}[X] Var ( X ) = ∑ i < j Var ( X ij ) ≤ E [ X ] . Using Chebyshev’s Inequality (Lemma 34 ), we have
Pr [ ∣ X − E [ X ] ∣ > ε 3 E [ X ] ] ≤ 9 Var ( X ) ε 2 ( E [ X ] ) 2 ≤ 9 ε 2 E [ X ] ( Var ( X ) ≤ E [ X ] ) = 18 m ( G ) ε 2 s ( s − 1 ) ( E [ X ] = ( s 2 ) 1 m ( G ) ) ≤ δ ( m ( G ) ≤ τ and s = Θ ( τ log ( δ − 1 ) / ε ) ) (7) \begin{aligned}
\Pr\left[|X-\mathbb{E}[X]|>\frac{\varepsilon}{3}\mathbb{E}[X]\right]&\le\frac{9\operatorname{Var}(X)}{\varepsilon^2(\mathbb{E}[X])^2}\\
&\le\frac{9}{\varepsilon^2\mathbb{E}[X]} && \left(\operatorname{Var}(X)\le\mathbb{E}[X]\right)\\
&=\frac{18m(G)}{\varepsilon^2s(s-1)} && \left(\mathbb{E}[X]=\binom{s}{2}\frac{1}{m(G)}\right)\\
&\le\delta&& \left(m(G)\le\tau\text{ and }s=\Theta\left(\sqrt{\tau\log(\delta^{-1})}/\varepsilon\right)\right) \tag*{(7)}
\end{aligned} Pr [ ∣ X − E [ X ] ∣ > 3 ε E [ X ] ] ≤ ε 2 ( E [ X ] ) 2 9 Var ( X ) ≤ ε 2 E [ X ] 9 = ε 2 s ( s − 1 ) 18 m ( G ) ≤ δ ( Var ( X ) ≤ E [ X ] ) ( E [ X ] = ( 2 s ) m ( G ) 1 ) ( m ( G ) ≤ τ and s = Θ ( τ log ( δ − 1 ) / ε ) ) (7)
To complete the proof, we need to show with probability at least 1 − δ 1-\delta 1 − δ
( 1 − ε ) m ( G ) ≤ ( s 2 ) 1 X ≤ m ( G ) ( 1 + ε ) (1-\varepsilon)m(G)\le\binom{s}{2}\frac{1}{X}\le m(G)(1+\varepsilon) ( 1 − ε ) m ( G ) ≤ ( 2 s ) X 1 ≤ m ( G ) ( 1 + ε )
From (7) , with probability at least 1 − δ 1-\delta 1 − δ ,
( 1 − ε 3 ) E [ X ] ≤ X ≤ ( 1 + ε 3 ) E [ X ] \left(1-\frac{\varepsilon}{3}\right)\mathbb{E}[X]\le X\le\left(1+\frac{\varepsilon}{3}\right)\mathbb{E}[X] ( 1 − 3 ε ) E [ X ] ≤ X ≤ ( 1 + 3 ε ) E [ X ]
This implies
⇒ m ( G ) 1 + ε 3 ≤ ( s 2 ) 1 X ≤ m ( G ) 1 − ε 3 \Rightarrow\frac{m(G)}{1+\frac{\varepsilon}{3}} \le\binom{s}{2}\frac{1}{X} \le\frac{m(G)}{1-\frac{\varepsilon}{3}} ⇒ 1 + 3 ε m ( G ) ≤ ( 2 s ) X 1 ≤ 1 − 3 ε m ( G )
For any ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 )
1 − ε ≤ ( 1 + ε 3 ) − 1 and ( 1 − ε 3 ) − 1 ≤ 1 + ε 1-\varepsilon\le\left(1+\frac{\varepsilon}{3}\right)^{-1}\ \text{and}\ \left(1-\frac{\varepsilon}{3}\right)^{-1} \le1+\varepsilon 1 − ε ≤ ( 1 + 3 ε ) − 1 and ( 1 − 3 ε ) − 1 ≤ 1 + ε
Since X X X is the number of collisions. We conclude that
( 1 − ε ) m ( G ) ≤ ( s 2 ) 1 r ≤ m ( G ) ( 1 + ε ) (1-\varepsilon)m(G) \le\binom{s}{2}\frac{1}{r} \le m(G)(1+\varepsilon) ( 1 − ε ) m ( G ) ≤ ( 2 s ) r 1 ≤ m ( G ) ( 1 + ε )
which completes the proof.
Concentration Bounds
We use the following concentration bounds [27 ] .
Lemma 34 (Chebyshev’s Inequality). Let X X X be a random variable and a > 0 a>0 a > 0 , Then
Pr [ ∣ X − E [ X ] ∣ > a ] ≤ Var ( X ) a 2 \Pr[|X-\mathbb{E}[X]|>a] \le\frac{\operatorname{Var}(X)}{a^2} Pr [ ∣ X − E [ X ] ∣ > a ] ≤ a 2 Var ( X )
Lemma 35 (Hoeffding’s bound). Let X 1 , X 2 , … , X t X_1,X_2,\ldots,X_t X 1 , X 2 , … , X t be independent random variables such that for all i ∈ [ t ] i \in[t] i ∈ [ t ] , E [ X ] = μ \mathbb{E}[X]=\mu E [ X ] = μ and Pr [ a ≤ X i ≤ b ] = 1 \Pr[a\le X_i\le b]=1 Pr [ a ≤ X i ≤ b ] = 1 . Then
Pr [ ∣ 1 t ∑ i = 1 t X i − μ ∣ ≥ ε ] ≤ 2 exp ( − 2 t ε 2 ( b − a ) 2 ) . \Pr\left[\left|\frac{1}{t}\sum_{i=1}^{t}X_i-\mu\right|\ge\varepsilon\right]\le2\exp\left(-\frac{2t\varepsilon^2}{(b-a)^2}\right). Pr [ t 1 i = 1 ∑ t X i − μ ≥ ε ] ≤ 2 exp ( − ( b − a ) 2 2 t ε 2 ) .
Lemma 36 (Multiplicative Chernoff Bound). Let X 1 , X 2 , … , X t X_1,X_2,\ldots,X_t X 1 , X 2 , … , X t be i.i.d. random variables where Pr [ X i = 1 ] = p \Pr[X_i=1]=p Pr [ X i = 1 ] = p and Pr [ X i = 0 ] = 1 − p \Pr[X_i=0]=1-p Pr [ X i = 0 ] = 1 − p for all i ∈ [ t ] i\in[t] i ∈ [ t ] , and X = ∑ i ∈ [ t ] X i X=\sum_{i\in[t]}X_i X = ∑ i ∈ [ t ] X i . Then, we have
Pr [ X ≤ ( 1 − ε ) E [ X ] ] ≤ exp ( − ε 2 E [ X ] 3 ) 0 ≤ ε < 1 \Pr[X\le(1-\varepsilon)\mathbb{E}[X]]\le\exp\left(-\frac{\varepsilon^2\mathbb{E}[X]}{3}\right)\qquad0\le\varepsilon<1 Pr [ X ≤ ( 1 − ε ) E [ X ]] ≤ exp ( − 3 ε 2 E [ X ] ) 0 ≤ ε < 1 Pr [ X ≥ ( 1 + ε ) E [ X ] ] ≤ exp ( − ε 2 E [ X ] 2 ) 0 ≤ ε ≤ 1 \Pr[X\ge(1+\varepsilon)\mathbb{E}[X]]\le\exp\left(-\frac{\varepsilon^2\mathbb{E}[X]}{2}\right)\qquad0\le\varepsilon\le1 Pr [ X ≥ ( 1 + ε ) E [ X ]] ≤ exp ( − 2 ε 2 E [ X ] ) 0 ≤ ε ≤ 1