Algorithm for graph homomorphisms

Medium ★★ Graph Theory » Coloring » Homomorphisms

Status partial medium confidence

The original question of whether there is an algorithm deciding the existence of a homomorphism from $G$ to $H$ in time $O(c^{|V(G)|+|V(H)|})$ for some absolute constant $c$ remains open in full generality. Since 2010, several works have extended the list of graph classes admitting such plain-exponential algorithms (e.g., Wahlstrom-type results were generalized by Dadsetan and Bulatov to further classes for the counting version, and Rzazewski gave an $O^{*}((b+2)^{|V(G)|})$ algorithm parametrized by the bandwidth of the complement of $H$), and Fomin, Golovnev, Kulikov, and Mihajlin proved an ETH lower bound of $2^{\Omega(n \log h / \log\log h)}$ for the general problem, which however does not rule out a $c^{n+h}$ algorithm.

Cited literature (4)

Reviewer notes. The original question concerns the decision version with constant base $c$ independent of $G,H$. The 2015 ETH lower bound of $2^{\Omega(n \log h / \log\log h)}$ does NOT rule out a $c^{|V(G)|+|V(H)|}$ algorithm (e.g., when $h \gg n$, $c^{n+h}$ can exceed the lower bound). All cited papers extend the known classes of $H$ for which plain-exponential algorithms exist, or give lower bounds for restricted parameterizations, but none affirmatively or negatively resolves the original FHK question. The exact published year/venue of arXiv:1810.03087 was not verified beyond the preprint.

Auto-reviewed 2026-05-08 with claude-sonnet (subagent) (web search enabled).

Question. Is there an algorithm that decides, for input graphs $ G $ and $ H $ , whether there exists a homomorphism from $ G $ to $ H $ in time $ O(c^{|V(G)|+|V(H)|}) $ for some constant $ c $ ?
Keywords: algorithm · Exponential-time algorithm · homomorphism

Discussion

An affirmative answer is known in several cases: if $ H=K_k $ (graph coloring) [L], [BH], [K]; if $ H $ has bounded treewidth [FHK]; if $ H $ has bounded cliquewidth [W].

Bibliography

  • [BH] Andreas Björklund, Thore Husfeldt: Inclusion--Exclusion Algorithms for Counting Set Partitions, Proc. FOCS'06 (2006).
  • [FHK] Fedor V. Fomin, Pinar Heggernes, Dieter Kratsch: Exact Algorithms for Graph Homomorphisms, Theory Comput. Syst. 41 (2007), no. 2, 381--393. MathSciNet MathSciNet
  • [K] Mikko Koivisto: An $ O^\ast(2^n) $ Algorithm for Graph Coloring and Other Partitioning Problems via Inclusion--Exclusion, Proc. FOCS'06 (2006).
  • [L] Eugene L. Lawler: A note on the complexity of the chromatic number problem, Information Processing Lett. 5 (1976), no. 3, 66--67. MathSciNet MathSciNet
  • [W] Magnus Wahlström: New Plain-Exponential Time Classs for Graph Homomorphism, CSR2009, LNCS5675 (2009), 346--355.