Tractable database design and datalog abduction through bounded treewidth

被引:13
作者
Gottlob, Georg [2 ]
Pichler, Reinhard [3 ]
Wei, Fang [1 ]
机构
[1] Univ Freiburg, Inst Informat, D-79110 Freiburg, Germany
[2] Univ Oxford, Comp Lab, Oxford OX1 3QD, England
[3] Vienna Univ Technol, Inst Informat Syst, A-1040 Vienna, Austria
基金
奥地利科学基金会;
关键词
Normal forms; Database design; Tree decomposition; Bounded treewidth; Fixed-parameter tractability; Datalog abduction; QUERY EVALUATION; COMPLEXITY; DECOMPOSITIONS; ALGORITHM; GRAPHS; LOGIC;
D O I
10.1016/j.is.2009.09.003
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Given that most elementary problems in database design are NP-hard, the currently used database design algorithms produce suboptimal results. For example, the current 3NF decomposition algorithms may continue further decomposing a relation even though it is already in 3NF. In this paper we study database design problems whose sets of functional dependencies have bounded treewidth. For such sets, we develop polynomial-time and highly parallelizable algorithms for a number of central database design problems such as: primality of an attribute: 3NF-test for a relational schema or subschema; BCNF-test for a subschema. In order to define the treewidth of a relational schema, we shall associate a hypergraph with it. Note that there are two main possibilities of defining the treewidth of a hypergraph H: One is via the primal graph of H and one is via the incidence graph of H. Our algorithms apply to the case where the primal graph is considered. However, we also show that the tractability results still hold when the incidence graph is considered instead. It turns out that our results have interesting applications to logic-based abduction. By the well-known relationship with the primality problem in database design and the relevance problem in propositional abduction, our new algorithms and tractability results can be easily carried over from the former field to the latter. Moreover, we show how these tractability results can be further extended from propositional abduction to abductive diagnosis based on non-ground datalog. (C) 2009 Elsevier B.V. All rights reserved.
引用
收藏
页码:278 / 298
页数:21
相关论文
共 52 条
[1]  
[Anonymous], 1990, Handbook of Theoretical Computer Science, Volume B: Formal Models and Semantics
[2]  
[Anonymous], 1990, Handbook of Theoretical Computer Science, Volume A: Algorithms and Complexity
[3]  
Armstrong W.W., 1974, INF PROC 74 P IFIP C, V74, P580
[4]  
BALSA J, 1995, P NLULP 95 INT WORKS
[5]   PRESERVING FUNCTIONAL-DEPENDENCIES [J].
BEERI, C ;
HONEYMAN, P .
SIAM JOURNAL ON COMPUTING, 1981, 10 (03) :647-656
[6]  
Beeri C., 1979, ACM Transactions on Database Systems, V4, P30, DOI 10.1145/320064.320066
[7]  
Bernstein P. A., 1976, ACM Transactions on Database Systems, V1, P277, DOI 10.1145/320493.320489
[8]  
Berwanger D, 2006, LECT NOTES COMPUT SC, V3884, P524
[9]  
Berwanger D, 2005, LECT NOTES COMPUT SC, V3452, P209
[10]  
Bodlaender H. L., 1993, Acta Cybernetica, V11, P1