English

Distributed Treewidth Computation and Courcelle's Theorem in the CONGEST Model

Data Structures and Algorithms 2025-07-16 v2

Abstract

Algorithmic meta-theorems, stating that graph properties expressible in some particular logic can be decided efficiently in graph classes having some specific structural properties, are now standard in sequential graph algorithms. One of the most classic examples is Courcelle's theorem: all properties expressible in Monadic Second-Order logic (MSO) are decidable in linear time in graphs of bounded treewidth. We provide here a distributed version of Courcelle's theorem, in the standard CONGEST model for distributed computing: For any MSO formula φ\varphi and any constant kk, there is a CONGEST algorithm that, given an input communication network GG of treewidth at most kk and of diameter DD, decides if GG satisfies property φ\varphi in O~(D)\tilde O(D) rounds. Simple examples show that the dependency on DD is unavoidable. Also, if we drop the assumption of bounded treewidth, deciding MSO properties such as 3-colorability are known to require Ω~(n2)\tilde{\Omega}(n^2) rounds in the CONGEST model. Our results extend to optimization problems (e.g., computing a maximum size independent set, or a minimum dominating set) and counting (e.g. triangle counting). As usual, the O~\tilde{O} notation hides polylogarithmic factors in nn; here it also hides a constant factor depending on kk and on the MSO formula φ\varphi. We also give a distributed algorithm producing a linear approximation for treewidth: For any kk, it decides that the treewidth of the input network GG is larger than kk or computes a tree decomposition of width O(k)O(k) and depth O(logn)O(\log n), in O~(kO(k)D)\tilde O(k^{O(k)} D) rounds in CONGEST. Our algorithms make use of the low-congestion shortcuts framework introduced by Ghaffari and Haeupler [SODA 2016], and our main technical tool is an O~(k4D)\tilde O(k^4 D) algorithm for computing (s,t)(s,t)-vertex separators of size at most k+1k+1 in graphs of treewidth at most kk.

Keywords

Cite

@article{arxiv.1805.10708,
  title  = {Distributed Treewidth Computation and Courcelle's Theorem in the CONGEST Model},
  author = {Benjamin Jauregui and Jason Li and Pedro Montealegre and Ioan Todinca},
  journal= {arXiv preprint arXiv:1805.10708},
  year   = {2025}
}
R2 v1 2026-06-23T02:09:51.507Z