English

Dynamic Treewidth in Logarithmic Time

Data Structures and Algorithms 2025-04-14 v2

Abstract

We present a dynamic data structure that maintains a tree decomposition of width at most 9k+89k+8 of a dynamic graph with treewidth at most kk, which is updated by edge insertions and deletions. The amortized update time of our data structure is 2O(k)logn2^{O(k)} \log n, where nn is the number of vertices. The data structure also supports maintaining any ``dynamic programming scheme'' on the tree decomposition, providing, for example, a dynamic version of Courcelle's theorem with Ok(logn)O_{k}(\log n) amortized update time; the Ok()O_{k}(\cdot) notation hides factors that depend on kk. This improves upon a result of Korhonen, Majewski, Nadara, Pilipczuk, and Soko{\l}owski [FOCS 2023], who gave a similar data structure but with amortized update time 2kO(1)no(1)2^{k^{O(1)}} n^{o(1)}. Furthermore, our data structure is arguably simpler. Our main novel idea is to maintain a tree decomposition that is ``downwards well-linked'', which allows us to implement local rotations and analysis similar to those for splay trees.

Keywords

Cite

@article{arxiv.2504.02790,
  title  = {Dynamic Treewidth in Logarithmic Time},
  author = {Tuukka Korhonen},
  journal= {arXiv preprint arXiv:2504.02790},
  year   = {2025}
}

Comments

46 pages, 2 figures