English

Counting list homomorphisms from graphs of bounded treewidth: tight complexity bounds

Computational Complexity 2021-11-01 v2 Data Structures and Algorithms

Abstract

The goal of this work is to give precise bounds on the counting complexity of a family of generalized coloring problems (list homomorphisms) on bounded-treewidth graphs. Given graphs GG, HH, and lists L(v)V(H)L(v)\subseteq V(H) for every vV(G)v\in V(G), a {\em list homomorphism} is a function f:V(G)V(H)f:V(G)\to V(H) that preserves the edges (i.e., uvE(G)uv\in E(G) implies f(u)f(v)E(H)f(u)f(v)\in E(H)) and respects the lists (i.e., f(v)L(v))f(v)\in L(v)). Standard techniques show that if GG is given with a tree decomposition of width tt, then the number of list homomorphisms can be counted in time V(H)tnO(1)|V(H)|^t\cdot n^{\mathcal{O}(1)}. Our main result is determining, for every fixed graph HH, how much the base V(H)|V(H)| in the running time can be improved. For a connected graph HH we define irr(H)\operatorname{irr}(H) the following way: if HH has a loop or is nonbipartite, then irr(H)\operatorname{irr}(H) is the maximum size of a set SV(H)S\subseteq V(H) where any two vertices have different neighborhoods; if HH is bipartite, then irr(H)\operatorname{irr}(H) is the maximum size of such a set that is fully in one of the bipartition classes. For disconnected HH, we define irr(H)\operatorname{irr}(H) as the maximum of irr(C)\operatorname{irr}(C) over every connected component CC of HH. We show that, for every fixed graph HH, the number of list homomorphisms from (G,L)(G,L) to HH * can be counted in time irr(H)tnO(1)\operatorname{irr}(H)^t\cdot n^{\mathcal{O}(1)} if a tree decomposition of GG having width at most tt is given in the input, and * cannot be counted in time (irr(H)ϵ)tnO(1)(\operatorname{irr}(H)-\epsilon)^t\cdot n^{\mathcal{O}(1)} for any ϵ>0\epsilon>0, even if a tree decomposition of GG having width at most tt is given in the input, unless the #SETH fails. Thereby we give a precise and complete complexity classification featuring matching upper and lower bounds for all target graphs with or without loops.

Keywords

Cite

@article{arxiv.2107.06889,
  title  = {Counting list homomorphisms from graphs of bounded treewidth: tight complexity bounds},
  author = {Jacob Focke and Dániel Marx and Paweł Rzążewski},
  journal= {arXiv preprint arXiv:2107.06889},
  year   = {2021}
}
R2 v1 2026-06-24T04:12:09.249Z