English

Towards a Decomposition-Optimal Algorithm for Counting and Sampling Arbitrary Motifs in Sublinear Time

Data Structures and Algorithms 2021-07-20 v2

Abstract

We consider the problem of sampling and approximately counting an arbitrary given motif HH in a graph GG, where access to GG is given via queries: degree, neighbor, and pair, as well as uniform edge sample queries. Previous algorithms for these tasks were based on a decomposition of HH into a collection of odd cycles and stars, denoted D(H)={Ok1,,Okq,Sp1,,Sp}\mathcal{D}^*(H)=\{O_{k_1}, \ldots, O_{k_q}, S_{p_1}, \ldots, S_{p_\ell}\}. These algorithms were shown to be optimal for the case where HH is a clique or an odd-length cycle, but no other lower bounds were known. We present a new algorithm for sampling and approximately counting arbitrary motifs which, up to poly(logn)\textrm{poly}(\log n) factors, is always at least as good as previous results, and for most graphs GG is strictly better. The main ingredient leading to this improvement is an improved uniform algorithm for sampling stars, which might be of independent interest, as it allows to sample vertices according to the pp-th moment of the degree distribution. Finally, we prove that this algorithm is \emph{decomposition-optimal} for decompositions that contain at least one odd cycle. These are the first lower bounds for motifs HH with a nontrivial decomposition, i.e., motifs that have more than a single component in their decomposition.

Keywords

Cite

@article{arxiv.2107.06582,
  title  = {Towards a Decomposition-Optimal Algorithm for Counting and Sampling Arbitrary Motifs in Sublinear Time},
  author = {Amartya Shankha Biswas and Talya Eden and Ronitt Rubinfeld},
  journal= {arXiv preprint arXiv:2107.06582},
  year   = {2021}
}
R2 v1 2026-06-24T04:11:05.371Z