Definability and Descriptive Complexity on Databases of Bounded Tree-Width

We study the expressive power of various query languages on relational databases of bounded tree-width. Our first theorem says that fixed-point logic with counting captures polynomial time on classes of databases of bounded tree-width. This result should be seen on the background of an important open question of Chandra and Harel [7] asking whether there is a query language capturing polynomial time on unordered databases. Our theorem is a further step in a larger project of extending the scope of databases on which polynomial time can be captured by reasonable query languages. We then prove a general definability theorem stating that each query on a class of databases of bounded tree-width which is definable in monadic second-order logic is also definable in fixed-point logic (or datalog). Furthermore, for each k ≥ 1 the class of databases of tree-width at most k is definable in fixed-point logic. These results have some remarkable consequences concerning the definability of certain classes of graphs. Finally, we show that each database of tree-width at most k can be characterized up to isomorphism in the language Ck+3, the (k + 3)-variable fragment of first-order logic with counting.

[1]  Ronald Fagin Generalized first-order spectra, and polynomial. time recognizable sets , 1974 .

[2]  R. Halin S-functions for graphs , 1976 .

[3]  David Harel,et al.  Structure and complexity of relational queries , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).

[4]  Neil Immerman Upper and lower bounds for first order expressibility , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).

[5]  David Harel,et al.  Structure and Complexity of Relational Queries , 1980, FOCS.

[6]  Moshe Y. Vardi The complexity of relational query languages (Extended Abstract) , 1982, STOC '82.

[7]  Paul D. Seymour,et al.  Graph minors. V. Excluding a planar graph , 1986, J. Comb. Theory B.

[8]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[9]  Paul D. Seymour,et al.  Graph Minors. II. Algorithmic Aspects of Tree-Width , 1986, J. Algorithms.

[10]  Neil Immerman,et al.  Expressibility as a complexity measure: results and directions , 1987, SCT.

[11]  Derek G. Corneil,et al.  Complexity of finding embeddings in a k -tree , 1987 .

[12]  Hans L. Bodlaender,et al.  NC-Algorithms for Graphs with Small Treewidth , 1988, WG.

[13]  Neil Immerman,et al.  An optimal lower bound on the number of variables for graph identification , 1989, 30th Annual Symposium on Foundations of Computer Science.

[14]  S. Abiteboul,et al.  Fixpoint extensions of first-order logic and datalog-like languages , 1989, [1989] Proceedings. Fourth Annual Symposium on Logic in Computer Science.

[15]  Lauri Hella,et al.  Definability Hierarchies of Generalized Quantifiers , 1989, Ann. Pure Appl. Log..

[16]  Hans L. Boblaender Polynomial algorithms for graph isomorphism and chromatic index on partial k -trees , 1990 .

[17]  E. Lander,et al.  Describing Graphs: A First-Order Approach to Graph Canonization , 1990 .

[18]  Paul D. Seymour,et al.  Graph minors. IV. Tree-width and well-quasi-ordering , 1990, J. Comb. Theory, Ser. B.

[19]  Bruno Courcelle,et al.  Graph Rewriting: An Algebraic and Logic Approach , 1991, Handbook of Theoretical Computer Science, Volume B: Formal Models and Sematics.

[20]  Hans L. Bodlaender,et al.  Polynomial Algorithms for Graph Isomorphism and Chromatic Index on Partial k-Trees , 1988, J. Algorithms.

[21]  Neil Immerman,et al.  An optimal lower bound on the number of variables for graph identification , 1992, Comb..

[22]  Martin Otto,et al.  Inductive Definability with Counting on Finite Structures , 1992, CSL.

[23]  Tomás Feder,et al.  Monotone monadic SNP and constraint satisfaction , 1993, STOC.

[24]  Anuj Dawar Generalized Quantifiers and Logical Reducibilities , 1995, J. Log. Comput..

[25]  Lauri Hella,et al.  Almost Everywhere Equivalence of Logics in Finite Model Theory , 1996, Bulletin of Symbolic Logic.

[26]  Reinhard Diestel,et al.  Graph Theory , 1997 .

[27]  B. Reed Surveys in Combinatorics, 1997: Tree Width and Tangles: A New Connectivity Measure and Some Applications , 1997 .

[28]  Hans L. Bodlaender,et al.  Treewidth: Algorithmic Techniques and Results , 1997, MFCS.

[29]  Martin Grohe,et al.  Finite Variable Logics in Descriptive Complexity Theory , 1998, Bulletin of Symbolic Logic.

[30]  Martin Grohe,et al.  Fixed-point logics on planar graphs , 1998, Proceedings. Thirteenth Annual IEEE Symposium on Logic in Computer Science (Cat. No.98CB36226).

[31]  Saharon Shelah,et al.  Choiceless Polynomial Time , 1997, Ann. Pure Appl. Log..

[32]  Erich Grädel,et al.  On the Restraining Power of Guards , 1999, Journal of Symbolic Logic.

[33]  H. Ebbinghaus,et al.  Zur Struktur dessen, was wirklich berechenbar ist , 1999 .

[34]  Martin Otto,et al.  Bisimulation-invariant PTIME and higher-dimensional µ-calculus , 1999, Theor. Comput. Sci..