Monadic Datalog over Finite Structures with Bounded Treewidth
Georg Gottlob, Reinhard Pichler, Fang Wei

TL;DR
This paper introduces monadic datalog as an efficient alternative to MSO logic for fixed-parameter tractability on finite structures with bounded treewidth, enabling linear-time evaluation and practical algorithms.
Contribution
It demonstrates that properties expressible in MSO can also be represented in monadic datalog, avoiding state explosion and enabling linear-time algorithms.
Findings
Monadic datalog can express MSO properties over bounded treewidth structures.
The approach yields linear-time algorithms for 3-Colorability and PRIMALITY problems.
Experimental results show practical efficiency of the proposed methods.
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: 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · Advanced Graph Theory Research · Formal Methods in Verification
