English

Faster algorithms for counting subgraphs in sparse graphs

Computational Complexity 2020-09-01 v5

Abstract

Given a kk-node pattern graph HH and an nn-node host graph GG, the subgraph counting problem asks to compute the number of copies of HH in GG. In this work we address the following question: can we count the copies of HH faster if GG is sparse? We answer in the affirmative by introducing a novel tree-like decomposition for directed acyclic graphs, inspired by the classic tree decomposition for undirected graphs. This decomposition gives a dynamic program for counting the homomorphisms of HH in GG by exploiting the degeneracy of GG, which allows us to beat the state-of-the-art subgraph counting algorithms when GG is sparse enough. For example, we can count the induced copies of any kk-node pattern HH in time 2O(k2)O(n0.25k+2logn)2^{O(k^2)} O(n^{0.25k + 2} \log n) if GG has bounded degeneracy, and in time 2O(k2)O(n0.625k+1logn)2^{O(k^2)} O(n^{0.625k + 1} \log n) if GG has bounded average degree. These bounds are instantiations of a more general result, parameterized by the degeneracy of GG and the structure of HH, which generalizes classic bounds on counting cliques and complete bipartite graphs. We also give lower bounds based on the Exponential Time Hypothesis, showing that our results are actually a characterization of the complexity of subgraph counting in bounded-degeneracy graphs.

Keywords

Cite

@article{arxiv.1805.02089,
  title  = {Faster algorithms for counting subgraphs in sparse graphs},
  author = {Marco Bressan},
  journal= {arXiv preprint arXiv:1805.02089},
  year   = {2020}
}

Comments

Extended version of a work appeared at IPEC 2019

R2 v1 2026-06-23T01:46:01.966Z