Counting list homomorphisms from graphs of bounded treewidth: tight complexity bounds
Jacob Focke, Dániel Marx, Pawel Rzazewski
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 G, H, and lists L(v) ⊆ V(H) for every v ∊ V(G), a list homomorphism is a function f : V(G) → V(H) that preserves the edges (i.e., uv ∊ E(G) implies f(u)f(v) ∊ E(H)) and respects the lists (i.e., f(v) ∊ L(v)). Standard techniques show that if G is given with a tree decomposition of width t, then the number of list homomorphisms can be counted in time . Our main result is determining, for every fixed graph H, how much the base |V(H)| in the running time can be improved. For a connected graph H we define irr(H) in the following way: if H has a loop or is nonbipartite, then irr(H) is the maximum size of a set S ⊆ V(H) where any two vertices have different neighborhoods; if H is bipartite, then irr(H) is the maximum size of such a set that is fully in one of the bipartition classes. For disconnected H, we define irr(H) as the maximum of irr(C) over every connected component C of H. It follows from earlier results that if irr(H) = 1, then the problem of counting list homomorphisms to H is polynomial-time solvable, and otherwise it is #P-hard. We show that, for every fixed graph H, the number of list homomorphisms from (G, L) to H can be counted in time if a tree decomposition of G having width at most t is given in the input, and given that irr(H) ≥ 2, cannot be counted in time for any ∊ > 0, even if a tree decomposition of G having width at most t is given in the input, unless the Counting Strong Exponential-Time Hypothesis (#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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- k-SUM Hardness Implies Treewidth-SETH cites The Primal Pathwidth SETH
- k-SUM Hardness Implies Treewidth-SETH cites Circuits and Backdoors: Five Shades of the SETH
- Circuits and Backdoors: Five Shades of the SETH cites The Primal Pathwidth SETH
Cited by top-tier papers4
- #P is Sandwiched by One and Two #2DNF Calls: Is Subtraction Stronger Than We Thought?Max Bannach, Erik D. Demaine, Timothy Gomez, Markus HecherLICS 2025 · 5 citations
- The Primal Pathwidth SETHMichael LampisSODA 2025 · 1 citation
- k-SUM Hardness Implies Treewidth-SETHMichael LampisSODA 2026
- Circuits and Backdoors: Five Shades of the SETHMichael LampisSODA 2026
Related papers
- Fine-grained complexity of graph homomorphism problem for bounded-treewidth graphsKarolina Okrasa, Pawel RzazewskiSODA 2020 · 2 citations
- Count on CFI graphs for #P-hardnessRadu CurticapeanSODA 2024 · 2 citations
- Tight Complexity Bounds for Counting Generalized Dominating Sets in Bounded-Treewidth GraphsJacob Focke, Dániel Marx, Fionn Mc Inerney, Daniel Neuen et al.SODA 2023 · 4 citations
- Counting and Finding Homomorphisms is Universal for Parameterized Complexity TheoryMarc Roth, Philip WellnitzSODA 2020 · 8 citations
- Hardness of 4-Colouring k-Colourable GraphsSergey Avvakumov, Marek Filakovský, Jakub Oprsal, Gianluca Tasinato et al.STOC 2025
