Faster Estimation of the Average Degree of a Graph Using Random Edges and Structural Queries
Lorenzo Beretta, Deeparnab Chakrabarty, C. Seshadhri
Abstract
We revisit the problem of designing sublinear algorithms for estimating the average degree of an n-vertex graph. The standard access model for graphs allows for the following queries: sampling a uniform random vertex, the degree of a vertex, sampling a uniform random neighbor of a vertex, and "pair queries" which determine if a pair of vertices form an edge. In this model, original results [Goldreich-Ron, RSA 2008; Eden-Ron-Seshadhri, SIDMA 2019] on this problem prove that the complexity of getting (1+ε)-multiplicative approximations to the average degree, ignoring ε-dependencies, is Θ( √ n). When random edges can be sampled, it is known that the average degree can estimated in O(n 1/3 ) queries, even without pair queries [Motwani-Panigrahy-Xu, ICALP 2007; Beretta-Tětek, TALG 2024].
We give a nearly optimal algorithm in the standard access model with random edge samples. Our algorithm makes O(n 1/4 ) queries exploiting the power of pair queries. We also analyze the "full neighborhood access" model wherein the entire adjacency list of a vertex can be obtained with a single query; this model is relevant in many practical applications. In a weaker version of this model, we give an algorithm that makes O(n 1/5 ) queries. Both these results underscore the power of structural queries, such as pair queries and full neighborhood access queries, for estimating the average degree. We give nearly matching lower bounds, ignoring ε-dependencies, for all our results.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on4
- Faster sublinear approximation of the number of k-cliques in low-arboricity graphsTalya Eden, Dana Ron, C. SeshadhriSODA 2020 · 17 citations
- Edge sampling and graph parameter estimation via vertex neighborhood accessesJakub Tetek, Mikkel ThorupSTOC 2022 · 12 citations
- Better Sum Estimation via Weighted SamplingLorenzo Beretta, Jakub TetekSODA 2022 · 7 citations
- Nearly optimal edge estimation with independent set queriesXi Chen, Amit Levi, Erik WaingartenSODA 2020 · 5 citations
Related papers
- Approximating the Arboricity in Sublinear TimeTalya Eden, Saleet Mossel, Dana RonSODA 2022
- Time-Optimal Sublinear Algorithms for Matching and Vertex CoverSoheil BehnezhadFOCS 2021 · 16 citations
- Tight Pair Query Lower Bounds for Matching and Earth Mover's DistanceAmir Azarmehr, Soheil Behnezhad, Mohammad Roghani, Aviad RubinsteinFOCS 2025 · 2 citations
- Average Sensitivity of Graph AlgorithmsNithin Varma, Yuichi YoshidaSODA 2021 · 8 citations
- Beating Greedy Matching in Sublinear TimeSoheil Behnezhad, Mohammad Roghani, Aviad Rubinstein, Amin SaberiSODA 2023 · 5 citations
