Sampling Arbitrary Subgraphs Exactly Uniformly in Sublinear Time

05/04/2020
by   Hendrik Fichtenberger, et al.
0

We present a simple sublinear-time algorithm for sampling an arbitrary subgraph Hexactly uniformly from a graph G, to which the algorithm has access by performing the following types of queries: (1) uniform vertex queries, (2) degree queries, (3) neighbor queries, (4) pair queries and (5) edge sampling queries. The query complexity and running time of our algorithm are Õ(min{m, m^ρ(H)/# H}) and Õ(m^ρ(H)/# H), respectively, where ρ(H) is the fractional edge-cover of H and # H is the number of copies of H in G. For any clique on r vertices, i.e., H=K_r, our algorithm is almost optimal as any algorithm that samples an H from any distribution that has Ω(1) total probability mass on the set of all copies of H must perform Ω(min{m, m^ρ(H)/# H· (cr)^r}) queries. Together with the query and time complexities of the (1±ε)-approximation algorithm for the number of subgraphs H by Assadi, Kapralov and Khanna [ITCS 2018] and the lower bound by Eden and Rosenbaum [APPROX 2018] for approximately counting cliques, our results suggest that in our query model, approximately counting cliques is “equivalent to” exactly uniformly sampling cliques, in the sense that the query and time complexities of exactly uniform sampling and randomized approximate counting are within a polylogarithmic factor of each other. This stands in interesting contrast to an analogous relation between approximate counting and almost uniformly sampling for self-reducible problems in the polynomial-time regime by Jerrum, Valiant and Vazirani [TCS 1986].

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/07/2020

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

In this work, we consider the problem of sampling a k-clique in a graph ...
research
11/19/2018

A Simple Sublinear-Time Algorithm for Counting Arbitrary Subgraphs via Edge Sampling

In the subgraph counting problem, we are given a input graph G(V, E) and...
research
07/14/2021

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

We consider the problem of sampling and approximately counting an arbitr...
research
07/08/2021

Sampling and Counting Edges via Vertex Accesses

We consider the problems of sampling and counting edges from a graph on ...
research
11/09/2022

Sampling an Edge in Sublinear Time Exactly and Optimally

Sampling edges from a graph in sublinear time is a fundamental problem a...
research
07/10/2019

Approximately counting and sampling small witnesses using a colourful decision oracle

In this paper, we prove "black box" results for turning algorithms which...
research
07/03/2018

Uniform generation of spanning regular subgraphs of a dense graph

Let H_n be a graph on n vertices and let H_n denote the complement of H_...

Please sign up or login with your details

Forgot password? Click here to reset