English

Fine-Grained Bounds for Courcelle's Theorem

Data Structures and Algorithms 2026-07-02 v1 Logic in Computer Science

Abstract

Courcelle's theorem states that there exists an algorithm that takes as input a graph GG of treewidth at most tt and a MSO formula ϕ\phi, and determines whether GG satisfies ϕ\phi in time f(ϕ,t)nf(\phi,t) \cdot n. It is folklore that the the function ff contains a tower of exponentials whose height depends as a linear function of the number of quantifier alternations of the input formula ϕ\phi. A classic reduction of Frick and Grohe shows that, assuming the Exponential Time Hypothesis (ETH), the linear growth of the height of the tower is unavoidable. Nevertheless, there is still a huge gap between existing upper and lower bounds -- after all, there is quite a difference between a single exponential and a double exponential running time. In addition, this only gives us a very coarse understanding in the time complexity of Courcelle's theorem. In this paper, we prove a fine-grained version of Courcelle's theorem with nearly ETH-tight dependence on the treewidth parameter tt and the quantifier structure of ϕ\phi (specifically, the number of first order and second order variables in each quantifier alternation block).

Cite

@article{arxiv.2607.02033,
  title  = {Fine-Grained Bounds for Courcelle's Theorem},
  author = {Daniel Lokshtanov and Fahad Panolan and Saket Saurabh and Jie Xue and Meirav Zehavi},
  journal= {arXiv preprint arXiv:2607.02033},
  year   = {2026}
}