Counting Subgraphs in Somewhere Dense Graphs
Marco Bressan,Leslie Ann Goldberg,Kitty Meeks,Marc Roth
DOI: https://doi.org/10.1137/22m1535668
2024-09-28
SIAM Journal on Computing
Abstract:SIAM Journal on Computing, Volume 53, Issue 5, Page 1409-1438, October 2024. We study the problems of counting copies and induced copies of a small pattern graph [math] in a large host graph [math]. Recent work fully classified the complexity of those problems according to structural restrictions on the patterns [math]. In this work, we address the more challenging task of analyzing the complexity for restricted patterns and restricted hosts. Specifically, we ask which families of allowed patterns and hosts imply fixed-parameter tractability, i.e., the existence of an algorithm running in time [math] for some computable function [math]. Our main results present exhaustive and explicit complexity classifications for families that satisfy natural closure properties. Among others, we identify the problems of counting small matchings and independent sets in subgraph-closed graph classes [math] as our central objects of study and establish the following crisp dichotomies as consequences of the exponential time hypothesis: (1) Counting [math]-matchings in a graph [math] is fixed-parameter tractable if and only if [math] is nowhere dense. (2) Counting [math]-independent sets in a graph [math] is fixed-parameter tractable if and only if [math] is nowhere dense. Moreover, we obtain almost tight conditional lower bounds if [math] is somewhere dense, i.e., not nowhere dense. These base cases of our classifications subsume a wide variety of previous results on the matching and independent set problem, such as counting [math]-matchings in bipartite graphs (Curticapean, Marx; FOCS 14), in [math]-colorable graphs (Roth, Wellnitz; SODA 20), and in degenerate graphs (Bressan, Roth; FOCS 21), as well as counting [math]-independent sets in bipartite graphs (Curticapean et al.; Algorithmica 19). At the same time, our proofs are much simpler: using structural characterizations of somewhere dense graphs, we show that a colorful version of a recent breakthrough technique for analyzing pattern counting problems (Curticapean, Dell, Marx; STOC 17) applies to any subgraph-closed somewhere dense class of graphs, yielding a unified view of our current understanding of the complexity of subgraph counting.
computer science, theory & methods,mathematics, applied