English

The Arboricity Captures the Complexity of Sampling Edges

Computational Complexity 2019-02-22 v1 Data Structures and Algorithms

Abstract

In this paper, we revisit the problem of sampling edges in an unknown graph G=(V,E)G = (V, E) from a distribution that is (pointwise) almost uniform over EE. We consider the case where there is some a priori upper bound on the arboriciy of GG. Given query access to a graph GG over nn vertices and of average degree dd and arboricity at most α\alpha, we design an algorithm that performs O ⁣(αdlog3nε)O\!\left(\frac{\alpha}{d} \cdot \frac{\log^3 n}{\varepsilon}\right) queries in expectation and returns an edge in the graph such that every edge eEe \in E is sampled with probability (1±ε)/m(1 \pm \varepsilon)/m. The algorithm performs two types of queries: degree queries and neighbor queries. We show that the upper bound is tight (up to poly-logarithmic factors and the dependence in ε\varepsilon), as Ω ⁣(αd)\Omega\!\left(\frac{\alpha}{d} \right) queries are necessary for the easier task of sampling edges from any distribution over EE that is close to uniform in total variational distance. We also prove that even if GG is a tree (i.e., α=1\alpha = 1 so that αd=Θ(1)\frac{\alpha}{d}=\Theta(1)), Ω(lognloglogn)\Omega\left(\frac{\log n}{\log\log n}\right) queries are necessary to sample an edge from any distribution that is pointwise close to uniform, thus establishing that a poly(logn)\mathrm{poly}(\log n) factor is necessary for constant α\alpha. Finally we show how our algorithm can be applied to obtain a new result on approximately counting subgraphs, based on the recent work of Assadi, Kapralov, and Khanna (ITCS, 2019).

Keywords

Cite

@article{arxiv.1902.08086,
  title  = {The Arboricity Captures the Complexity of Sampling Edges},
  author = {Talya Eden and Dana Ron and Will Rosenbaum},
  journal= {arXiv preprint arXiv:1902.08086},
  year   = {2019}
}
R2 v1 2026-06-23T07:47:14.802Z