English

Almost Optimal Bounds for Sublinear-Time Sampling of $k$-Cliques: Sampling Cliques is Harder Than Counting

Data Structures and Algorithms 2020-12-09 v1

Abstract

In this work, we consider the problem of sampling a kk-clique in a graph from an almost uniform distribution in sublinear time in the general graph query model. Specifically the algorithm should output each kk-clique with probability (1±ϵ)/nk(1\pm \epsilon)/n_k, where nkn_k denotes the number of kk-cliques in the graph and ϵ\epsilon is a given approximation parameter. We prove that the query complexity of this problem is Θ(max{((nα)k/2nk)1k1,  min{nα,nαk1nk}}). \Theta^*\left(\max\left\{ \left(\frac{(n\alpha)^{k/2}}{ n_k}\right)^{\frac{1}{k-1}} ,\; \min\left\{n\alpha,\frac{n\alpha^{k-1}}{n_k} \right\}\right\}\right). where nn is the number of vertices in the graph, α\alpha is its arboricity, and Θ\Theta^* suppresses the dependence on (logn/ϵ)O(k)(\log n/\epsilon)^{O(k)}. Interestingly, this establishes a separation between approximate counting and approximate uniform sampling in the sublinear regime. For example, if k=3k=3, α=O(1)\alpha = O(1), and n3n_3 (the number of triangles) is Θ(n)\Theta(n), then we get a lower bound of Ω(n1/4)\Omega(n^{1/4}) (for constant ϵ\epsilon), while under these conditions, a (1±ϵ)(1\pm \epsilon)-approximation of n3n_3 can be obtained by performing poly(log(n/ϵ))\textrm{poly}(\log(n/\epsilon)) queries (Eden, Ron and Seshadhri, SODA20). Our lower bound follows from a construction of a family of graphs with arboricity α\alpha such that in each graph there are nkn_k cliques (of size kk), where one of these cliques is "hidden" and hence hard to sample. Our upper bound is based on defining a special auxiliary graph HkH_k, such that sampling edges almost uniformly in HkH_k translates to sampling kk-cliques almost uniformly in the original graph GG. We then build on a known edge-sampling algorithm (Eden, Ron and Rosenbaum, ICALP19) to sample edges in HkH_k, where the challenge is simulate queries to HkH_k while being given access only to GG.

Keywords

Cite

@article{arxiv.2012.04090,
  title  = {Almost Optimal Bounds for Sublinear-Time Sampling of $k$-Cliques: Sampling Cliques is Harder Than Counting},
  author = {Talya Eden and Dana Ron and Will Rosenbaum},
  journal= {arXiv preprint arXiv:2012.04090},
  year   = {2020}
}