• Home
  • Search
  • Monadic datalog over finite structures of bounded treewidth
  • Open Access IconOpen Access
  • Cite Icon25
  • https://doi.org/10.1145/1838552.1838555Copy DOI Icon

Monadic datalog over finite structures of bounded treewidth

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Bounded treewidth and monadic second-order (MSO) logic have proved to be key concepts in establishing fixed-parameter tractability results. Indeed, by Courcelle's Theorem we know that any property of finite structures, which is expressible by an MSO sentence, can be decided in linear time (data complexity) if the structures have bounded treewidth. In principle, Courcelle's Theorem can be applied directly to construct concrete algorithms by transforming the MSO evaluation problem into a tree language recognition problem. The latter can then be solved via a finite tree automaton (FTA). However, this approach has turned out to be problematical, since even relatively simple MSO formulae may lead to a “state explosion” of the FTA. In this work we propose monadic datalog (i.e., datalog where all intentional predicate symbols are unary) as an alternative method to tackle this class of fixed-parameter tractable problems. We show that if some property of finite structures is expressible in MSO then this property can also be expressed by means of a monadic datalog program over the decomposed structure : we mean by this that the original structure is augmented with new elements and new relations that encode one of its tree decompositions. In the first place, we thus compare the expressive power of two query languages. However, we also show that the resulting fragment of datalog can be evaluated in linear time (both with respect to the program size and with respect to the data size). Hence, our transformation of an MSO query into a monadic datalog program yields an alternative proof of Courcelle's Theorem. In order to actually construct efficient algorithms for problems whose tractability is due to Courcelle's Theorem, we propose to use a fragment of full (i.e., not necessarily monadic) datalog which allows for a succinct representation of the corresponding monadic datalog programs and for an efficient execution. This new approach is put to work by devising datalog programs for the 3-Colorability problem of graphs and for the PRIMALITY problem of relational schemas (i.e., testing if some attribute in a relational schema is part of a key). We also report on experimental results with a prototype implementation.

Similar Papers
  • Conference Article
  • Citations14

Monadic datalog over finite structures with bounded treewidth

  • Jun 11, 2007
  • Georg Gottlob +2
  • Research Article
  • Citations20

A Practical Approach to Courcelle's Theorem

  • Sep 01, 2009
  • Electronic Notes in Theoretical Computer Science
  • Joachim Kneis +1
  • Conference Article
  • Citations4

Definability equals recognizability for $k$-outerplanar graphs

  • Jan 01, 2015
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Lars Jaffke +1
  • Dissertation

Chordality in Matroids: In Search of the Converse to Hliněný's Theorem

  • Jan 01, 2018
  • Andrew Probert
  • Dissertation

Chordality in Matroids: In Search of the Converse to Hliněný's Theorem

  • Jan 01, 2018
  • Andrew Probert
  • Conference Article
  • Citations41

Lower Bounds for the Complexity of Monadic Second-Order Logic

  • Jul 01, 2010
  • Stephan Kreutzer +1
  • Book Chapter
  • Citations13

Fast Counting with Bounded Treewidth

  • Jan 01, 2008
  • Michael Jakl +3
  • Conference Article
  • Citations47

On brambles, grid-like minors, and parameterized intractability of monadic second-order logic

  • Jan 17, 2010
  • Stephan Kreutzer +1
  • Conference Article
  • Citations23

On Brambles, Grid-Like Minors, and Parameterized Intractability of Monadic Second-Order Logic

  • Jan 17, 2010
  • Stephan Kreutzer +1
  • Research Article
  • Citations1

Datalog-Expressibility for Monadic and Guarded Second-Order Logic

  • Feb 12, 2026
  • ACM Transactions on Computational Logic
  • Manuel Bodirsky +2
  • Book Chapter
  • Citations2

Exploiting Bounded Treewidth with Datalog (A Survey)

  • Jan 01, 2011
  • Reinhard Pichler
  • Research Article

Variants of Courcelle's Theorem for complexity classes inside P

  • Feb 17, 2016
  • ACM SIGLOG News
  • Michael Elberfeld
  • Research Article
  • Citations21

Courcelle's theorem for triangulations

  • Oct 24, 2016
  • Journal of Combinatorial Theory, Series A
  • Benjamin A Burton +1
  • Research Article
  • Citations172

Monadic datalog and the expressive power of languages for Web information extraction

  • Jan 01, 2004
  • Journal of the ACM
  • Georg Gottlob +1
  • Conference Article
  • Citations5

Monadic datalog and the expressive power of languages for web information extraction

  • Jan 01, 2002
  • Georg Gottlob +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.