English

Improved Bounds with a Simple Algorithm for Edge Estimation for Graphs of Unknown Size

Data Structures and Algorithms 2025-11-06 v1

Abstract

We propose a randomized algorithm with query access that given a graph GG with arboricity α\alpha, and average degree dd, makes O~(αε2d)\widetilde{O}\left(\frac{\alpha}{\varepsilon^2d}\right) \texttt{Degree} and O~(1ε2)\widetilde{O}\left(\frac{1}{\varepsilon^2}\right) \texttt{Random Edge} queries to obtain an estimate d^\widehat{d} satisfying d^(1±ε)d\widehat{d} \in (1\pm\varepsilon)d. This improves the O~ε,logn(nd)\widetilde{O}_{\varepsilon,\log n}\left(\sqrt{\frac{n}{d}}\right) query algorithm of [Beretta et al., SODA 2026] that has access to \texttt{Degree}, \texttt{Neighbour}, and \texttt{Random Edge} queries. Our algorithm does not require any graph parameter as input, not even the size of the vertex set, and attains both simplicity and practicality through a new estimation technique. We complement our upper bounds with a lower bound that shows for all valid n,dn,d, and α\alpha, any algorithm that has access to \texttt{Degree}, \texttt{Neighbour}, and \texttt{Random Edge} queries, must make at least Ω(min(d,αd))\Omega\left(\min\left(d,\frac{\alpha}{d}\right)\right) queries to obtain a (1±ε)(1\pm\varepsilon)-multiplicative estimate of dd, even with the knowledge of nn and α\alpha. We also show that even with \texttt{Pair} and \texttt{FullNbr} queries, an algorithm must make Ω(min(d,αd))\Omega\left(\min\left(d,\frac{\alpha}{d}\right)\right) queries to obtain a (1±ε)(1\pm\varepsilon)-multiplicative estimate of dd. Our work addresses both the questions raised by the work of [Beretta et al., SODA 2026].

Keywords

Cite

@article{arxiv.2511.03650,
  title  = {Improved Bounds with a Simple Algorithm for Edge Estimation for Graphs of Unknown Size},
  author = {Debarshi Chanda},
  journal= {arXiv preprint arXiv:2511.03650},
  year   = {2025}
}

Comments

25 pages, 2 Figures

R2 v1 2026-07-01T07:23:10.983Z