The Complexity of Approximately Counting Retractions

Let G be a graph that contains an induced subgraph H. A retraction from G to H is a homomorphism from G to H that is the identity function on H. Retractions are very well studied: Given H, the complexity of deciding whether there is a retraction from an input graph G to H is completely classified, in the sense that it is known for which H this problem is tractable (assuming P ≠ NP). Similarly, the complexity of (exactly) counting retractions from G to H is classified (assuming FP ≠ #P). However, almost nothing is known about approximately counting retractions. Our first contribution is to give a complete trichotomy for approximately counting retractions to graphs without short cycles. The result is as follows: (1) Approximately counting retractions to a graph H of girth at least 5 is in FP if every connected component of H is a star, a single looped vertex, or an edge with two loops. (2) Otherwise, if every component is an irreflexive caterpillar or a partially bristled reflexive path, then approximately counting retractions to H is equivalent to approximately counting the independent sets of a bipartite graph—a problem that is complete in the approximate counting complexity class RH Π 1. (3) Finally, if none of these hold, then approximately counting retractions to H is equivalent to approximately counting the satisfying assignments of a Boolean formula. Our second contribution is to locate the retraction counting problem for each H in the complexity landscape of related approximate counting problems. Interestingly, our results are in contrast to the situation in the exact counting context. We show that the problem of approximately counting retractions is separated both from the problem of approximately counting homomorphisms and from the problem of approximately counting list homomorphisms—whereas for exact counting all three of these problems are interreducible. We also show that the number of retractions is at least as hard to approximate as both the number of surjective homomorphisms and the number of compactions. In contrast, exactly counting compactions is the hardest of all of these exact counting problems.

[1]  Daniël Paulusma,et al.  The computational complexity of disconnected cut and 2K2-partition , 2011, J. Comb. Theory, Ser. B.

[2]  Leslie Ann Goldberg,et al.  A Complexity Trichotomy for Approximately Counting List H-Colorings , 2017, ACM Trans. Comput. Theory.

[3]  Zsolt Tuza,et al.  Precoloring extension. I. Interval graphs , 1992, Discret. Math..

[4]  Leslie Ann Goldberg,et al.  The Complexity of Approximately Counting Tree Homomorphisms , 2013, TOCT.

[5]  Martin E. Dyer,et al.  An approximation trichotomy for Boolean #CSP , 2010, J. Comput. Syst. Sci..

[6]  Martin E. Dyer,et al.  The Relative Complexity of Approximate Counting Problems , 2000, Algorithmica.

[7]  NARAYAN VIKAS,et al.  Computational Complexity of Compaction to Reflexive Cycles , 2002, SIAM J. Comput..

[8]  Frank Harary,et al.  Trees with Hamiltonian square , 1971 .

[9]  John S. Rowlinson,et al.  New Model for the Study of Liquid–Vapor Phase Transitions , 1970 .

[10]  Steven Kelk,et al.  The Complexity of Choosing an H-Coloring (Nearly) Uniformly at Random , 2004, SIAM J. Comput..

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

[12]  Jaroslav Nesetril,et al.  Counting List Homomorphisms and Graphs with Bounded Degrees , 2001, Graphs, Morphisms and Statistical Physics.

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

[14]  Pavol Hell,et al.  List Homomorphisms to Reflexive Graphs , 1998, J. Comb. Theory, Ser. B.

[15]  Barnaby Martin,et al.  The complexity of surjective homomorphism problems - a survey , 2011, Discret. Appl. Math..

[16]  Dániel Marx,et al.  Parameterized coloring problems on chordal graphs , 2004, Theor. Comput. Sci..

[17]  Pavol Hell,et al.  List Homomorphisms and Circular Arc Graphs , 1999, Comb..

[18]  Leslie Ann Goldberg,et al.  Approximately Counting H-Colourings is #BIS-Hard , 2015, ArXiv.

[19]  Petr A. Golovach,et al.  Finding vertex-surjective graph homomorphisms , 2012, Acta Informatica.

[20]  Pavol Hell,et al.  Extension problems with degree bounds , 2009, Discret. Appl. Math..

[21]  Martin E. Dyer,et al.  Counting and sampling H-colourings? , 2004, Inf. Comput..

[22]  R. B. Potts Some generalized order-disorder transformations , 1952, Mathematical Proceedings of the Cambridge Philosophical Society.

[23]  Andrei A. Bulatov,et al.  A Dichotomy Theorem for Nonuniform CSPs , 2017, 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS).

[24]  Leslie G. Valiant,et al.  Random Generation of Combinatorial Structures from a Uniform Distribution , 1986, Theor. Comput. Sci..

[25]  Pavol Hell,et al.  Absolute retracts in graphs , 1974 .

[26]  Narayan Vikas,et al.  A complete and equal computational complexity classification of compaction and retraction to all graphs with at most four vertices and some general results , 2005, J. Comput. Syst. Sci..

[27]  Narayan Vikas Algorithms for Partition of Some Class of Graphs under Compaction and Vertex-Compaction , 2012, Algorithmica.

[28]  Leslie Ann Goldberg,et al.  The Complexity of Counting Surjective Homomorphisms and Compactions , 2017, SODA.

[29]  Erwin Pesch,et al.  Retracts of graphs , 1988 .

[30]  Narayan Vikas,et al.  Compaction, Retraction, and Constraint Satisfaction , 2004, SIAM J. Comput..

[31]  Leslie Ann Goldberg,et al.  Approximately Counting H-Colorings is $\#\mathrm{BIS}$-Hard , 2016, SIAM J. Comput..

[32]  Narayan Vikas Computational Complexity Relationship between Compaction, Vertex-Compaction, and Retraction , 2017, IWOCA.

[33]  Narayan Vikas,et al.  Computational Complexity of Graph Partition under Vertex-Compaction to an Irreflexive Hexagon , 2017, MFCS.

[34]  Martin E. Dyer,et al.  On the relative complexity of approximate counting problems , 2000, APPROX.

[35]  Petr A. Golovach,et al.  Surjective H-Colouring: New Hardness Results , 2017, CiE.

[36]  P. Hell,et al.  Absolute Retracts and Varieties of Reflexive Graphs , 1987, Canadian Journal of Mathematics.

[37]  Jian Song,et al.  Computing vertex-surjective homomorphisms to partially reflexive trees , 2011, Theor. Comput. Sci..

[38]  Steven M. Kelk On the relative complexity of approximately counting H-colourings , 2003 .

[39]  Dmitriy Zhuk,et al.  A Proof of CSP Dichotomy Conjecture , 2017, 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS).

[40]  Eric Vigoda,et al.  Danielštefankovič ‡ , 2022 .

[41]  Wolfgang M. Schmidt,et al.  Diophantine Approximations and Diophantine Equations , 1991 .

[42]  Jan Kratochvíl,et al.  Coloring precolored perfect graphs , 1997, J. Graph Theory.

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

[44]  Claus-Peter Schnorr,et al.  Optimal Algorithms for Self-Reducible Problems , 1976, ICALP.

[45]  Leslie Ann Goldberg,et al.  Approximating the partition function of the ferromagnetic Potts model , 2010, JACM.

[46]  Narayan Vikas,et al.  Computational complexity of compaction to irreflexive cycles , 2004, J. Comput. Syst. Sci..

[47]  Zsolt Tuza,et al.  Graph colorings with local constraints - a survey , 1997, Discuss. Math. Graph Theory.

[48]  Jaroslav Nesetril,et al.  Graphs and homomorphisms , 2004, Oxford lecture series in mathematics and its applications.

[49]  Jaroslav Nesetril,et al.  Colouring, constraint satisfaction, and complexity , 2008, Comput. Sci. Rev..

[50]  Gustav Nordh,et al.  Retractions to Pseudoforests , 2010, SIAM J. Discret. Math..