JOURNAL ARTICLE

The complexity of counting homomorphisms to cactus graphs modulo 2

Andreas GöbelLeslie Ann GoldbergDavid Richerby

Year: 2014 Journal:   ACM Transactions on Computation Theory Vol: 6 (4)Pages: 1-29   Publisher: Association for Computing Machinery

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.

Keywords:
Homomorphism Modulo Combinatorics Mathematics Discrete mathematics Graph homomorphism Time complexity Graph Line graph Voltage graph

Metrics

18
Cited By
1.67
FWCI (Field Weighted Citation Impact)
24
Refs
0.85
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Graph Theory Research
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Complexity and Algorithms in Graphs
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Graph Labeling and Dimension Problems
Physical Sciences →  Computer Science →  Computational Theory and Mathematics

Related Documents

JOURNAL ARTICLE

Counting Homomorphisms to Cactus Graphs Modulo 2

Andreas GöbelLeslie Ann GoldbergDavid Richerby

Journal:   Leibniz-Zentrum für Informatik (Schloss Dagstuhl) Year: 2014
BOOK-CHAPTER

Counting Homomorphisms to Square-Free Graphs, Modulo 2

Andreas GöbelLeslie Ann GoldbergDavid Richerby

Lecture notes in computer science Year: 2015 Pages: 642-653
JOURNAL ARTICLE

Counting Homomorphisms to Square-Free Graphs, Modulo 2

Andreas GöbelLeslie Ann GoldbergDavid Richerby

Journal:   ACM Transactions on Computation Theory Year: 2016 Vol: 8 (3)Pages: 1-29
JOURNAL ARTICLE

Complexity Classification of Counting Graph Homomorphisms Modulo a Prime Number

Andreǐ A. BulatovAmirhossein Kazeminia

Journal:   SIAM Journal on Computing Year: 2024 Pages: STOC22-182
JOURNAL ARTICLE

Counting Homomorphisms to Sparse Graphs

Jaroslav NešetřilPatrice Ossona de Mendez

Journal:   Electronic Notes in Discrete Mathematics Year: 2009 Vol: 34 Pages: 393-397
© 2026 ScienceGate Book Chapters — All rights reserved.