skip to main content
research-article

The complexity of counting homomorphisms to cactus graphs modulo 2

Published: 01 August 2014 Publication History

Abstract

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.

References

[1]
Ben-Moshe, B., Bhattacharya, B. K., Shi, Q., and Tamir, A. 2007. Efficient algorithms for center problems in cactus networks. Theor. Comput. Sci. 378, 3, 237--252.
[2]
Ben-Moshe, B., Dvir, A., Segal, M., and Tamir, A. 2012. Centdian computation in cactus graphs. J. Graph Algor. Appl. 16, 2, 199--224.
[3]
Bulatov, A. A. and Grohe, M. 2005. The complexity of partition functions. Theor. Comput. Sci. 348, 2--3, 148--186.
[4]
Cai, J.-Y., Chen, X., and Lu, P. 2010. Graph homomorphisms with complex values: a dichotomy theorem. In Proceedings of ICALP (1). 275--286.
[5]
Creignou, N. and Hermann, M. 1996. Complexity of generalized satisfiability counting problems. Inform. Comput. 125, 1, 1--12.
[6]
Dyer, M. E., Goldberg, L. A., and Jerrum, M. 2009. The complexity of weighted Boolean #CSP. SIAM J. Comput. 38, 5, 1970--1986.
[7]
Dyer, M. E. and Greenhill, C. S. 2000. The complexity of counting graph homomorphisms. Random Struct. Algor. 17, 3--4, 260--289.
[8]
Faben, J. 2008. The complexity of counting solutions to generalised satisfiability problems modulo k. CoRR abs/0809.1836.
[9]
Faben, J. 2012. The complexity of modular counting in constraint satisfaction problems. Ph.D. Dissertation, Queen Mary, University of London.
[10]
Faben, J. and Jerrum, M. 2013. The complexity of parity graph homomorphism: an initial investigation. CoRR abs/1309.4033.
[11]
Goldberg, L. A., Grohe, M., Jerrum, M., and Thurley, M. 2010. A complexity dichotomy for partition functions with mixed signs. SIAM J. Comput. 39, 7, 3336--3402.
[12]
Goldschlager, L. M. and Parberry, I. 1986. On the construction of parallel computers from various bases of Boolean functions. Theor. Comput. Sci. 43, 43--58.
[13]
Guo, H., Huang, S., Lu, P., and Xia, M. 2011. The complexity of weighted Boolean #CSP modulo k. In Proceedings of STACS. 249--260.
[14]
Guo, H., Lu, P., and Valiant, L. G. 2013. The complexity of symmetric Boolean parity Holant problems. SIAM J. Comput. 42, 1, 324--356.
[15]
Harary, F. and Uhlenbeck, G. E. 1953. On the number of Husimi trees. I. Proc. Nat. Acad. Sci. U. S. A. 39, 315--322.
[16]
Hell, P. and Neřetřil, J. 1990. On the complexity of H-coloring. J. Comb. Theory, Ser. B 48, 1, 92--110.
[17]
Jordan, C. 1869. Sur les assemblages de lignes. J. Reine Angew. Math. 70, 185--190.
[18]
Lovász, L. 1967. Operations with structures. Acta Math. Acad. Sci. Hungar. 18, 321--328.
[19]
McKay, J. H. 1959. Another proof of Cauchy’s group theorem. Amer. Math. Monthly 66, 119.
[20]
Papadimitriou, C. H. and Zachos, S. 1982. Two remarks on the power of counting. In Proceedings of the 6th GI-Conference on Theoretical Computer Science. Springer-Verlag, 269--276.
[21]
Paten, B., Diekhans, M., Earl, D., John, J. S., Ma, J., Suh, B. B., and Haussler, D. 2011. Cactus graphs for genome comparisons. J. Comput. Biol. 18, 3, 469--481.
[22]
Toda, S. 1991. PP is as hard as the polynomial-time hierarchy. SIAM J. Comput. 20, 5, 865--877.
[23]
Valiant, L. G. 2006. Accidental algorithms. In Proceedings of FOCS. 509--517.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Computation Theory
ACM Transactions on Computation Theory  Volume 6, Issue 4
August 2014
99 pages
ISSN:1942-3454
EISSN:1942-3462
DOI:10.1145/2661796
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 August 2014
Accepted: 01 May 2014
Revised: 01 April 2014
Received: 01 December 2013
Published in TOCT Volume 6, Issue 4

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Graph homomorphism
  2. cactus graph
  3. counting modulo 2
  4. parity complexity dichotomy

Qualifiers

  • Research-article
  • Research
  • Refereed

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)2
Reflects downloads up to 03 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media