Query evaluation via tree-decompositions

被引:116
作者
Flum, J
Frick, M
Grohe, M
机构
[1] Univ Freiburg, Inst Math Logik, D-79104 Freiburg, Germany
[2] Univ Edinburgh, Lab Fdn Comp Sci, Edinburgh EH9 3JZ, Midlothian, Scotland
关键词
algorithms; languages; theory; acyclic conjunctive queries; combined complexity; hypergraphs; monadic second-order logic; tree-width;
D O I
10.1145/602220.602222
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A number of efficient methods for evaluating first-order and monadic-second order queries on finite relational structures are based on tree-decompositions of structures or queries. We systematically study these methods. In the first part of the article, we consider arbitrary formulas on tree-like structures. We generalize a theorem of Courcelle [1990] by showing that on structures of bounded tree-width a monadic second-order formula (with free first- and second-order variables) can be evaluated in time linear in the structure size plus the size of the output. In the second part, we study tree-like formulas on arbitrary structures. We generalize the notions of acyclicity and bounded tree-width from conjunctive queries to arbitrary first-order formulas in a straightforward way and analyze the complexity of evaluating formulas of these fragments. Moreover, we show that the acyclic and bounded tree-width fragments have the same expressive power as the well-known guarded fragment and the finite-variable fragments of first-order logic, respectively.
引用
收藏
页码:716 / 752
页数:37
相关论文
共 31 条
[1]  
ABIFEBOUL S, 1995, FDN DATABASES
[2]  
Aho A.V., 1974, The Design and Analysis of Computer Algorithms
[3]  
ANDREKA H, 1996, ML9603 ILLC U AMST
[4]   EASY PROBLEMS FOR TREE-DECOMPOSABLE GRAPHS [J].
ARNBORG, S ;
LAGERGREN, J ;
SEESE, D .
JOURNAL OF ALGORITHMS, 1991, 12 (02) :308-340
[5]   COMPLEXITY OF FINDING EMBEDDINGS IN A K-TREE [J].
ARNBORG, S ;
CORNEIL, DG ;
PROSKUROWSKI, A .
SIAM JOURNAL ON ALGEBRAIC AND DISCRETE METHODS, 1987, 8 (02) :277-284
[6]  
BOAS PV, 1990, HDB THEORETICAL COMP, V1, P1
[7]   A linear-time ie algorithm for finding three-decompositions of small treewidth [J].
Bodlaender, HL .
SIAM JOURNAL ON COMPUTING, 1996, 25 (06) :1305-1317
[8]  
Chekuri C, 1997, LECT NOTES COMPUT SC, V1186, P56
[9]  
COUORCELLE B, 1990, HDB THEORETICAL COMP, V2, P194
[10]   THE MONADIC 2ND-ORDER LOGIC OF GRAPHS .6. ON SEVERAL REPRESENTATIONS OF GRAPHS BY RELATIONAL STRUCTURES [J].
COURCELLE, B .
DISCRETE APPLIED MATHEMATICS, 1994, 54 (2-3) :117-149