Cargando…
Faster algorithms for counting subgraphs in sparse graphs
Given a k-node pattern graph H and an n-node host graph G, the subgraph counting problem asks to compute the number of copies of H in G. In this work we address the following question: can we count the copies of H faster if G is sparse? We answer in the affirmative by introducing a novel tree-like d...
Autor principal: | |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Springer US
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8550495/ https://www.ncbi.nlm.nih.gov/pubmed/34720296 http://dx.doi.org/10.1007/s00453-021-00811-0 |
_version_ | 1784590971262992384 |
---|---|
author | Bressan, Marco |
author_facet | Bressan, Marco |
author_sort | Bressan, Marco |
collection | PubMed |
description | Given a k-node pattern graph H and an n-node host graph G, the subgraph counting problem asks to compute the number of copies of H in G. In this work we address the following question: can we count the copies of H faster if G 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 H in G by exploiting the degeneracy of G, which allows us to beat the state-of-the-art subgraph counting algorithms when G is sparse enough. For example, we can count the induced copies of any k-node pattern H in time [Formula: see text] if G has bounded degeneracy, and in time [Formula: see text] if G has bounded average degree. These bounds are instantiations of a more general result, parameterized by the degeneracy of G and the structure of H, 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. |
format | Online Article Text |
id | pubmed-8550495 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
publisher | Springer US |
record_format | MEDLINE/PubMed |
spelling | pubmed-85504952021-10-29 Faster algorithms for counting subgraphs in sparse graphs Bressan, Marco Algorithmica Original Research Given a k-node pattern graph H and an n-node host graph G, the subgraph counting problem asks to compute the number of copies of H in G. In this work we address the following question: can we count the copies of H faster if G 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 H in G by exploiting the degeneracy of G, which allows us to beat the state-of-the-art subgraph counting algorithms when G is sparse enough. For example, we can count the induced copies of any k-node pattern H in time [Formula: see text] if G has bounded degeneracy, and in time [Formula: see text] if G has bounded average degree. These bounds are instantiations of a more general result, parameterized by the degeneracy of G and the structure of H, 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. Springer US 2021-02-22 2021 /pmc/articles/PMC8550495/ /pubmed/34720296 http://dx.doi.org/10.1007/s00453-021-00811-0 Text en © The Author(s) 2021 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . |
spellingShingle | Original Research Bressan, Marco Faster algorithms for counting subgraphs in sparse graphs |
title | Faster algorithms for counting subgraphs in sparse graphs |
title_full | Faster algorithms for counting subgraphs in sparse graphs |
title_fullStr | Faster algorithms for counting subgraphs in sparse graphs |
title_full_unstemmed | Faster algorithms for counting subgraphs in sparse graphs |
title_short | Faster algorithms for counting subgraphs in sparse graphs |
title_sort | faster algorithms for counting subgraphs in sparse graphs |
topic | Original Research |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8550495/ https://www.ncbi.nlm.nih.gov/pubmed/34720296 http://dx.doi.org/10.1007/s00453-021-00811-0 |
work_keys_str_mv | AT bressanmarco fasteralgorithmsforcountingsubgraphsinsparsegraphs |