Skip to main content

Exploiting Bounded Treewidth with Datalog (A Survey)

  • Conference paper
Datalog Reloaded (Datalog 2.0 2010)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 6702))

Included in the following conference series:

  • 950 Accesses

Abstract

Many intractable problems have been shown to become tractable if the treewidth of the underlying structure is bounded by a constant. An important tool for deriving such results is Courcelle’s Theorem, which states that all properties definable by Monadic Second Order (MSO) sentences are fixed-parameter tractable with respect to the treewidth. In principle, algorithms can be generated automatically from the MSO definition of a problem by exploiting the correspondence between MSO and finite tree automata (FTA). However, this approach has turned out to be problematic, since even relatively simple MSO formulae may lead to a ”state explosion” of the FTA.

Recently, monadic datalog (i.e., datalog where all intensional predicate symbols are unary) has been proposed as an alternative method to tackle this class of fixed-parameter tractable problems. On the one hand, if some property of finite structures is expressible in MSO then this property can also be expressed by means of a monadic datalog program. Moreover, 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). In this survey, we present the main ideas of this approach and its extension to counting and enumeration problems.

This work was supported by the Austrian Science Fund (FWF), project P20704-N18.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Downey, R.G., Fellows, M.R.: Parameterized Complexity. Springer, New York (1999)

    Book  MATH  Google Scholar 

  2. Flum, J., Grohe, M.: Parameterized Complexity Theory. Texts in Theoretical Computer Science. Springer, Heidelberg (2006)

    MATH  Google Scholar 

  3. Niedermeier, R.: Invitation to Fixed-Parameter Algorithms. Oxford University Press, Oxford (2006)

    Book  MATH  Google Scholar 

  4. Courcelle, B.: Graph Rewriting: An Algebraic and Logic Approach. In: Handbook of Theoretical Computer Science, vol. B, pp. 193–242. Elsevier Science Publishers, Amsterdam (1990)

    Google Scholar 

  5. Courcelle, B.: The monadic second-order logic of graphs. I. Recognizable sets of finite graphs. Inf. Comput. 85, 12–75 (1990)

    Article  MathSciNet  MATH  Google Scholar 

  6. Arnborg, S., Lagergren, J., Seese, D.: Easy Problems for Tree-Decomposable Graphs. J. Algorithms 12, 308–340 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  7. Flum, J., Frick, M., Grohe, M.: Query evaluation via tree-decompositions. J. ACM 49, 716–752 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  8. Doner, J.: Tree acceptors and some of their applications. J. Comput. Syst. Sci. 4, 406–451 (1970)

    Article  MathSciNet  MATH  Google Scholar 

  9. Thatcher, J.W., Wright, J.B.: Generalized Finite Automata Theory with an Application to a Decision Problem of Second-Order Logic. Mathematical Systems Theory 2, 57–81 (1968)

    Article  MathSciNet  MATH  Google Scholar 

  10. Frick, M., Grohe, M.: The complexity of first-order and monadic second-order logic revisited. Ann. Pure Appl. Logic 130, 3–31 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  11. Maryns, H.: On the Implementation of Tree Automata: Limitations of the Naive Approach. In: Proc. TLT 2006: 5th Int. Treebanks and Linguistic Theories Conference, pp. 235–246 (2006)

    Google Scholar 

  12. Grohe, M.: Descriptive and Parameterized Complexity. In: Flum, J., Rodríguez-Artalejo, M. (eds.) CSL 1999. LNCS, vol. 1683, pp. 14–31. Springer, Heidelberg (1999)

    Chapter  Google Scholar 

  13. Gottlob, G., Pichler, R., Wei, F.: Monadic datalog over finite structures with bounded treewidth. In: Proc. PODS 2007, pp. 165–174. ACM, New York (2007); Full version to appear in ACM Trans. Comput. Log.

    Google Scholar 

  14. Gottlob, G., Pichler, R., Wei, F.: Bounded treewidth as a key to tractability of knowledge representation and reasoning. Artif. Intell. 174, 105–132 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  15. Jakl, M., Pichler, R., Rümmele, S., Woltran, S.: Fast counting with bounded treewidth. In: Cervesato, I., Veith, H., Voronkov, A. (eds.) LPAR 2008. LNCS (LNAI), vol. 5330, pp. 436–450. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  16. Pichler, R., Rümmele, S., Woltran, S.: Counting and enumeration problems with bounded treewidth. In: Clarke, E.M., Voronkov, A. (eds.) LPAR-16 2010. LNCS, vol. 6355, pp. 387–404. Springer, Heidelberg (2010) (to appear)

    Chapter  Google Scholar 

  17. Bodlaender, H.L.: A Linear-Time Algorithm for Finding Tree-Decompositions of Small Treewidth. SIAM J. Comput. 25, 1305–1317 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  18. Koster, A.M.C.A., Bodlaender, H.L., van Hoesel, S.P.M.: Treewidth: Computational experiments. Electronic Notes in Discrete Mathematics 8, 54–57 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  19. Bodlaender, H.L., Koster, A.M.C.A.: Safe separators for treewidth. Discrete Mathematics 306, 337–350 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  20. Bodlaender, H.L., Koster, A.M.C.A.: Combinatorial optimization on graphs of bounded treewidth. Comput. J. 51, 255–269 (2008)

    Article  Google Scholar 

  21. van den Eijkhof, F., Bodlaender, H.L., Koster, A.M.C.A.: Safe reduction rules for weighted treewidth. Algorithmica 47, 139–158 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  22. Kloks, T.: Treewidth: Computations and Approximations. Springer, Berlin (1994)

    Book  MATH  Google Scholar 

  23. Courcelle, B., Makowsky, J.A., Rotics, U.: On the fixed parameter complexity of graph enumeration problems definable in monadic second-order logic. Discrete Applied Mathematics 108, 23–52 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  24. Abiteboul, S., Hull, R., Vianu, V.: Foundations of databases. Addison-Wesley, Reading (1995)

    MATH  Google Scholar 

  25. Ceri, S., Gottlob, G., Tanca, L.: Logic Programming and Databases. Springer, Heidelberg (1990)

    Book  Google Scholar 

  26. Vardi, M.Y.: The complexity of relational query languages (extended abstract). In: Proc. STOC 1982, pp. 137–146. ACM, New York (1982)

    Google Scholar 

  27. Gottlob, G., Koch, C.: Monadic datalog and the expressive power of languages for Web information extraction. J. ACM 51, 74–113 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  28. Dowling, W.F., Gallier, J.H.: Linear-Time Algorithms for Testing the Satisfiability of Propositional Horn Formulae. J. Log. Program. 1, 267–284 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  29. Minoux, M.: LTUR: A Simplified Linear-Time Unit Resolution Algorithm for Horn Formulae and Computer Implementation. Inf. Process. Lett. 29, 1–12 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  30. Gottlob, G., Grädel, E., Veith, H.: Datalog lite: a deductive query language with linear time model checking. ACM Trans. Comput. Log. 3, 42–79 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  31. Ebbinghaus, H.D., Flum, J.: Finite Model Theory, 2nd edn. Springer Monographs in Mathematics. Springer, Heidelberg (1999)

    MATH  Google Scholar 

  32. Libkin, L.: Elements of Finite Model Theory. Texts in Theoretical Computer Science. Springer, Heidelberg (2004)

    Book  MATH  Google Scholar 

  33. Kemp, D.B., Stuckey, P.J.: Semantics of logic programs with aggregates. In: Proc. ISLP, pp. 387–401 (1991)

    Google Scholar 

  34. Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., Scarcello, F.: The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Log. 7, 499–562 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  35. Samer, M., Szeider, S.: Algorithms for propositional model counting. J. Discrete Algorithms 8, 50–64 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  36. Courcelle, B., Durand, I.A.: Verifying monadic second order graph properties with tree automata. In: European LISP Symposium, pp. 7–21 (2010)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Pichler, R. (2011). Exploiting Bounded Treewidth with Datalog (A Survey). In: de Moor, O., Gottlob, G., Furche, T., Sellers, A. (eds) Datalog Reloaded. Datalog 2.0 2010. Lecture Notes in Computer Science, vol 6702. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-24206-9_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-24206-9_6

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-24205-2

  • Online ISBN: 978-3-642-24206-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics