The complexity of counting homomorphisms to cactus graphs modulo 2

A homomorphism from a graph G to a graph H is a function from V(G) to V(H) that preserves edges. Many combinatorial structures that arise in mathematics and in computer science can be represented naturally as graph homomorphisms and as weighted sums of graph homomorphisms. In this article, we study the complexity of counting homomorphisms modulo 2. The complexity of modular counting was introduced by Papadimitriou and Zachos and it has been pioneered by Valiant who famously introduced a problem for which counting modulo 7 is easy but counting modulo 2 is intractable. Modular counting provides a rich setting in which to study the structure of homomorphism problems. In this case, the structure of the graph H has a big influence on the complexity of the problem. Thus, our approach is graph-theoretic. We give a complete solution for the class of cactus graphs, which are connected graphs in which every edge belongs to at most one cycle. Cactus graphs arise in many applications such as the modelling of wireless sensor networks and the comparison of genomes. We show that, for some cactus graphs H, counting homomorphisms to H modulo 2 can be done in polynomial time. For every other fixed cactus graph H, the problem is complete in the complexity class ⊕P, which is a wide complexity class to which every problem in the polynomial hierarchy can be reduced (using randomised reductions). Determining which H lead to tractable problems can be done in polynomial time. Our result builds upon the work of Faben and Jerrum, who gave a dichotomy for the case in which H is a tree.

[1]  F Harary,et al.  On the Number of Husimi Trees: I. , 1953, Proceedings of the National Academy of Sciences of the United States of America.

[2]  Mark Jerrum,et al.  The Complexity of Parity Graph Homomorphism: An Initial Investigation , 2013, Theory Comput..

[3]  Boaz Ben-Moshe,et al.  Efficient algorithms for center problems in cactus networks , 2007, Theor. Comput. Sci..

[4]  John Faben The Complexity of Modular Counting in Constraint Satisfaction Problems. , 2012 .

[5]  Leslie G. Valiant,et al.  The Complexity of Symmetric Boolean Parity Holant Problems , 2013, SIAM J. Comput..

[6]  Nadia Creignou,et al.  Complexity of Generalized Satisfiability Counting Problems , 1996, Inf. Comput..

[7]  Seinosuke Toda,et al.  PP is as Hard as the Polynomial-Time Hierarchy , 1991, SIAM J. Comput..

[8]  Leslie Ann Goldberg,et al.  A Complexity Dichotomy for Partition Functions with Mixed Signs , 2008, SIAM J. Comput..

[9]  Michael Segal,et al.  Centdian Computation in Cactus Graphs , 2012, J. Graph Algorithms Appl..

[10]  Jaroslav Nesetril,et al.  On the complexity of H-coloring , 1990, J. Comb. Theory, Ser. B.

[11]  Andrei A. Bulatov,et al.  The complexity of partition functions , 2005, Theor. Comput. Sci..

[12]  Jin-Yi Cai,et al.  Graph Homomorphisms with Complex Values: A Dichotomy Theorem , 2009, SIAM J. Comput..

[13]  Christos H. Papadimitriou,et al.  Two remarks on the power of counting , 1983, Theoretical Computer Science.

[14]  Martin E. Dyer,et al.  The complexity of counting graph homomorphisms , 2000, Random Struct. Algorithms.

[15]  C. Jordan Sur les assemblages de lignes. , 1869 .

[16]  Ian Parberry,et al.  On the Construction of Parallel Computers from Various Bases of Boolean Functions , 1986, Theor. Comput. Sci..

[17]  Mingji Xia,et al.  The Complexity of Weighted Boolean #CSP Modulo k , 2011, STACS.

[18]  David Haussler,et al.  Cactus Graphs for Genome Comparisons , 2010, RECOMB.

[19]  James H. McKay Another Proof of Cauchy's Group Theorem , 1959 .

[20]  Leslie G. Valiant,et al.  Accidental Algorithms , 2006, FOCS.

[21]  John Faben The complexity of counting solutions to Generalised Satisfiability Problems modulo k , 2008, ArXiv.

[22]  Martin E. Dyer,et al.  The Complexity of Weighted Boolean #CSP , 2009, SIAM J. Comput..

[23]  L. Lovász Operations with structures , 1967 .

[24]  Leslie Ann Goldberg,et al.  Counting Homomorphisms to Cactus Graphs Modulo 2 , 2014, STACS.