Faster algorithms for finding and counting subgraphs

In the Subgraph Isomorphism problem we are given two graphs F and G on k and n vertices respectively as an input, and the question is whether there exists a subgraph of G isomorphic to F. We show that if the treewidth of F is at most t, then there is a randomized algorithm for the Subgraph Isomorphism problem running in time O^@?(2^kn^2^t). Our proof is based on a novel construction of an arithmetic circuit of size at most n^O^(^t^) for a new multivariate polynomial, Homomorphism Polynomial, of degree at most k, which in turn is used to solve the Subgraph Isomorphism problem. For the counting version of the Subgraph Isomorphism problem, where the objective is to count the number of distinct subgraphs of G that are isomorphic to F, we give a deterministic algorithm running in time and space O^@?((nk/2)n^2^p) or (nk/2)n^O^(^t^l^o^g^k^). We also give an algorithm running in time O^@?(2^k(nk/2)n^5^p) and taking O^@?(n^p) space. Here p and t denote the pathwidth and the treewidth of F, respectively. Our work improves on the previous results on Subgraph Isomorphism, it also extends and unifies most of the known results on sub-path and sub-tree isomorphisms.

[1]  Richard Bellman,et al.  Dynamic Programming Treatment of the Travelling Salesman Problem , 1962, JACM.

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

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

[4]  V. Sós,et al.  Counting Graph Homomorphisms , 2006 .

[5]  Richard M. Karp,et al.  Dynamic programming meets the principle of inclusion and exclusion , 1982, Oper. Res. Lett..

[6]  Joachim Kneis,et al.  Divide-and-Color , 2006, WG.

[7]  Mihalis Yannakakis,et al.  On Limited Nondeterminism and the Complexity of the V-C Dimension , 1996, J. Comput. Syst. Sci..

[8]  Jianer Chen,et al.  Improved algorithms for path, matching, and packing problems , 2007, SODA '07.

[9]  M. Held,et al.  A dynamic programming approach to sequencing problems , 1962, ACM National Meeting.

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

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

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

[13]  Noga Alon,et al.  Balanced Hashing, Color Coding and Approximate Counting , 2009, IWPEC.

[14]  Fedor V. Fomin,et al.  Algorithm for finding k-vertex out-trees and its application to k-internal out-branching problem , 2009, J. Comput. Syst. Sci..

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

[16]  Noga Alon,et al.  Balanced families of perfect hash functions and their applications , 2007, TALG.

[17]  Ton Kloks Treewidth, Computations and Approximations , 1994, Lecture Notes in Computer Science.

[18]  Robert Kennes,et al.  Computational aspects of the Mobius transformation of graphs , 1992, IEEE Trans. Syst. Man Cybern..

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

[20]  Andreas Björklund,et al.  Trimmed Moebius Inversion and Graphs of Bounded Degree , 2008, STACS.

[21]  Michael Clausen,et al.  Algebraic complexity theory , 1997, Grundlehren der mathematischen Wissenschaften.

[22]  Volker Strassen,et al.  Algebraic Complexity Theory , 1991, Handbook of Theoretical Computer Science, Volume A: Algorithms and Complexity.

[23]  Noga Alon,et al.  Biomolecular network motif counting and discovery by color coding , 2008, ISMB.

[24]  Ioannis Koutis,et al.  Faster Algebraic Algorithms for Path and Packing Problems , 2008, ICALP.

[25]  F. Yates Design and Analysis of Factorial Experiments , 1958 .

[26]  R. A. FISHER,et al.  The Design and Analysis of Factorial Experiments , 1938, Nature.

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

[28]  Ryan Williams,et al.  Limits and Applications of Group Algebras for Parameterized Problems , 2009, ICALP.

[29]  E. Allender Arithmetic Circuits and Counting Complexity Classes , 2004 .

[30]  Mam Riess Jones Color Coding , 1962, Human factors.

[31]  Ryan Williams,et al.  Finding paths of length k in O*(2k) time , 2008, Inf. Process. Lett..