Abstract
This paper addresses the challenge of estimating the sum $S_p = \sum \binom{x_i}{p}$ in sublinear time. By introducing a query model that allows for random edge sampling in addition to degree queries, the authors develop algorithms that provide a $(1 \pm \epsilon)$-approximation of $S_p$ with query complexity $\tilde{O}(m / S_p^{1/p})$. This significantly improves upon prior work that relied solely on vertex sampling, particularly in the context of counting $p$-star subgraphs in graphs and estimating join selectivity in databases.
Introduction
Estimating the frequency of specific patterns in large datasets is a fundamental task in data science. In graph theory, this manifests as counting $p$-stars (a central node connected to $p$ neighbors); in databases, it corresponds to estimating the "selectivity" or size of a self-join query. When datasets are too massive to scan entirely, sublinear-time algorithms—which provide accurate estimates by sampling only a tiny fraction of the data—become essential.
The Power of Edge Sampling
Previous research, notably by Gonen, Ron, and Shavitt (2011), established fundamental lower bounds for these problems under a model that allowed uniform vertex sampling and degree queries. This paper bypasses those bottlenecks by introducing a stronger query model: random edge queries.
Sampling an edge is mathematically equivalent to sampling a vertex with probability proportional to its degree (weighted sampling). This is far more effective at finding "heavy" nodes—high-degree vertices that contribute most significantly to the sum $S_p$. In a "needle in a haystack" scenario where a few nodes have most of the connections, uniform sampling is likely to miss them, whereas edge sampling finds them quickly.
Algorithm and Complexity
The authors design an unbiased estimator $Y = \frac{2m}{X} \binom{X}{p}$, where $X$ is the degree of a vertex sampled via a random edge. They prove that the expected value of $Y$ is exactly $S_p$. To handle the fact that $S_p$ is unknown, the algorithm uses an iterative guessing strategy, starting from a maximum possible value and refining the estimate until convergence.
The resulting algorithm achieves a query and time complexity of $\tilde{O}(\frac{m \log \log n}{\epsilon^2 S_p^{1/p}})$. For the common database case where $p=2$ and $S_2 \approx n$, the complexity is $\tilde{O}(\sqrt{n})$, a massive improvement over the $\Omega(n^{2/3})$ required by older vertex-only sampling methods.
Comparison with Prior Work
The primary contribution of this work is demonstrating how the inclusion of random edge queries reduces the number of samples needed to achieve a $(1 \pm \epsilon)$-approximation. The table below provides a detailed comparison of the query complexities across different ranges of $S_p$ and query models.
As shown in the table, for the regime where $S_p \leq n$, the new approach achieves a complexity of $\tilde{\Theta}(n/S_p^{1/p})$, whereas the previous best was $\tilde{\Theta}(n/S_p^{1/(p+1)})$. The authors also provide new lower bound proofs using Yao’s Minimax Principle, showing that their algorithm is nearly optimal (up to logarithmic factors) for almost all ranges of $S_p$.
Conclusion
By leveraging a more powerful query model, this work provides a new theoretical foundation for efficient graph analysis and database query optimization. It demonstrates that the choice of sampling mechanism—specifically moving from vertex to edge sampling—is critical for achieving truly sublinear performance in large-scale data estimation tasks.
Summary updated