English

Fine-grained complexity of the graph homomorphism problem for bounded-treewidth graphs

Computational Complexity 2020-02-20 v3 Discrete Mathematics Data Structures and Algorithms

Abstract

For graphs GG and HH, a \emph{homomorphism} from GG to HH is an edge-preserving mapping from the vertex set of GG to the vertex set of HH. For a fixed graph HH, by \textsc{Hom(HH)} we denote the computational problem which asks whether a given graph GG admits a homomorphism to HH. If HH is a complete graph with kk vertices, then \textsc{Hom(HH)} is equivalent to the kk-\textsc{Coloring} problem, so graph homomorphisms can be seen as generalizations of colorings. It is known that \textsc{Hom(HH)} is polynomial-time solvable if HH is bipartite or has a vertex with a loop, and NP-complete otherwise [Hell and Ne\v{s}et\v{r}il, JCTB 1990]. In this paper we are interested in the complexity of the problem, parameterized by the treewidth of the input graph GG. If GG has nn vertices and is given along with its tree decomposition of width tw(G)\mathrm{tw}(G), then the problem can be solved in time V(H)tw(G)nO(1)|V(H)|^{\mathrm{tw}(G)} \cdot n^{\mathcal{O}(1)}, using a straightforward dynamic programming. We explore whether this bound can be improved. We show that if HH is a \emph{projective core}, then the existence of such a faster algorithm is unlikely: assuming the Strong Exponential Time Hypothesis (SETH), the \textsc{Hom(HH)} problem cannot be solved in time (V(H)ϵ)tw(G)nO(1)(|V(H)|-\epsilon)^{\mathrm{tw}(G)} \cdot n^{\mathcal{O}(1)}, for any ϵ>0\epsilon > 0. This result provides a full complexity characterization for a large class of graphs HH, as almost all graphs are projective cores. We also notice that the naive algorithm can be improved for some graphs HH, and show a complexity classification for all graphs HH, assuming two conjectures from algebraic graph theory. In particular, there are no known graphs HH which are not covered by our result. In order to prove our results, we bring together some tools and techniques from algebra and from fine-grained complexity.

Keywords

Cite

@article{arxiv.1906.08371,
  title  = {Fine-grained complexity of the graph homomorphism problem for bounded-treewidth graphs},
  author = {Karolina Okrasa and Paweł Rzążewski},
  journal= {arXiv preprint arXiv:1906.08371},
  year   = {2020}
}

Comments

An extended abstract of this paper appeared on SODA 2020

R2 v1 2026-06-23T09:58:32.156Z