Counting Thin Subgraphs via Packings Faster than Meet-in-the-Middle Time

Vassilevska and Williams (STOC’09) showed how to count simple paths on k vertices and matchings on k/2 edges in an n-vertex graph in time nk/2+O(1). In the same year, two different algorithms with the same runtime were given by Koutis and Williams (ICALP’09), and Björklund et al. (ESA’09), via nst/2+O(1)-time algorithms for counting t-tuples of pairwise disjoint sets drawn from a given family of s-sized subsets of an n-element universe. Shortly afterwards, Alon and Gutner (TALG’10) showed that these problems have Ω(n⌊ st/2⌋) and Ω(n⌊ k/2⌋) lower bounds when counting by color coding. Here, we show that one can do better—we show that the “meet-in-the-middle” exponent st/2 can be beaten and give an algorithm that counts in time n0.45470382st+O(1) for t a multiple of three. This implies algorithms for counting occurrences of a fixed subgraph on k vertices and pathwidth p ≪ k in an n-vertex graph in n0.45470382k+2p+O(1) time, improving on the three mentioned algorithms for paths and matchings, and circumventing the color-coding lower bound. We also give improved bounds for counting t-tuples of disjoint s-sets for s = 2,3,4. Our algorithms use fast matrix multiplication. We show an argument that this is necessary to go below the meet-in-the-middle barrier.

[1]  Dániel Marx,et al.  Homomorphisms are a good basis for counting small subgraphs , 2017, STOC.

[2]  V. Pan How can we speed up matrix multiplication , 1984 .

[3]  Grazia Lotti,et al.  On the Asymptotic Complexity of Rectangular Matrix Multiplication , 1983, Theor. Comput. Sci..

[4]  Friedrich Eisenbrand,et al.  On the complexity of fixed parameter clique and dominating set , 2004, Theor. Comput. Sci..

[5]  Mark H. Overmars,et al.  On a Class of O(n2) Problems in Computational Geometry , 1995, Comput. Geom..

[6]  Dieter Kratsch,et al.  Finding and Counting Small Induced Subgraphs Efficiently , 1995, WG.

[7]  Radu Curticapean,et al.  Counting Matchings of Size k Is W[1]-Hard , 2013, ICALP.

[8]  Ryan Williams,et al.  Finding, minimizing, and counting weighted subgraphs , 2009, STOC '09.

[9]  Andreas Bjorklund Below All Subsets for Some Permutational Counting Problems , 2012 .

[10]  GrandoniFabrizio,et al.  On the complexity of fixed parameter clique and dominating set , 2004 .

[11]  Ryan Williams,et al.  LIMITS and Applications of Group Algebras for Parameterized Problems , 2009, ACM Trans. Algorithms.

[12]  Giorgio Ausiello Selected Papers in honour of Maurice Nivat - Editorial , 2002, Theor. Comput. Sci..

[13]  Noga Alon,et al.  Balanced Families of Perfect Hash Functions and Their Applications , 2007, ICALP.

[14]  Russell Impagliazzo,et al.  On the Complexity of k-SAT , 2001, J. Comput. Syst. Sci..

[15]  J. Landsberg Tensors: Geometry and Applications , 2011 .

[16]  François Le Gall,et al.  Powers of tensors and fast matrix multiplication , 2014, ISSAC.

[17]  Fedor V. Fomin,et al.  Faster algorithms for finding and counting subgraphs , 2009, J. Comput. Syst. Sci..

[18]  Maria J. Serna,et al.  Counting H-Colorings of Partial k-Trees , 2001, COCOON.

[19]  Andreas Björklund,et al.  The fast intersection transform with applications to counting paths , 2008, ArXiv.

[20]  Svatopluk Poljak,et al.  On the complexity of the subgraph problem , 1985 .

[21]  Victor Y. Pan,et al.  Matrix Multiplication, Trilinear Decompositions, APA Algorithms, and Summation , 2014, ArXiv.

[22]  Alon Itai,et al.  Finding a minimum circuit in a graph , 1977, STOC '77.

[23]  Russell Impagliazzo,et al.  Complexity of k-SAT , 1999, Proceedings. Fourteenth Annual IEEE Conference on Computational Complexity (Formerly: Structure in Complexity Theory Conference) (Cat.No.99CB36317).

[24]  E. Bareiss Sylvester’s identity and multistep integer-preserving Gaussian elimination , 1968 .

[25]  Nancy G. Kinnersley,et al.  The Vertex Separation Number of a Graph equals its Path-Width , 1992, Inf. Process. Lett..

[26]  Omid Amini,et al.  Counting Subgraphs via Homomorphisms , 2009, SIAM J. Discret. Math..

[27]  Maria J. Serna,et al.  Counting H-colorings of partial k-trees , 2001, Theor. Comput. Sci..

[28]  Andreas Björklund,et al.  Fast Zeta Transforms for Lattices with Few Irreducibles , 2016, TALG.

[29]  Ellis Horowitz,et al.  Computing Partitions with Applications to the Knapsack Problem , 1974, JACM.

[30]  Jörg Flum,et al.  The Parameterized Complexity of Counting Problems , 2004, SIAM J. Comput..

[31]  Andreas Björklund,et al.  Trimmed Moebius Inversion and Graphs of Bounded Degree , 2008, Theory of Computing Systems.

[32]  François Le Gall,et al.  Faster Algorithms for Rectangular Matrix Multiplication , 2012, 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science.

[33]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.

[34]  Dániel Marx,et al.  Complexity of Counting Subgraphs: Only the Boundedness of the Vertex-Cover Number Counts , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[35]  Andreas Björklund,et al.  Counting Paths and Packings in Halves , 2009, ESA.

[36]  Andrzej Lingas,et al.  Counting and Detecting Small Subgraphs via Equations , 2013, SIAM J. Discret. Math..

[37]  Dieter Kratsch,et al.  Finding and Counting Small Induced Subgraphs Efficiently , 1995, WG.

[38]  Andreas Björklund,et al.  Fast zeta transforms for point lattices , 2012, SODA 2012.