TY - GEN
T1 - Decidable optimization problems for database logic programs
AU - Cosmadakis, Stavros S.
AU - Kanellakis, Paris C.
AU - Gaifman, Haim
AU - Vardi, Moshe Y.
PY - 1988
Y1 - 1988
N2 - Datalog is the language of logic programs without function symbols. It is used as a database query language. If it is possible to eliminate recursion from a Datalog program II, then II is said to be bounded. It is known that the problem of deciding whether a given Datalog program is bounded is undecidable, even for binary programs. We show here that boundedness is decidable for monadic programs, i.e., programs where the recursive predicates are monadic (the non-recursive predicates can have arbitrary arity). Underlying our results are new tools for the optimization of Datalog programs based on automata theory and logic. In particular, one of the tools we develop is a theory of two-way alternating tree automata. We also use our techniques to show that containment for monadic programs is decidable.
AB - Datalog is the language of logic programs without function symbols. It is used as a database query language. If it is possible to eliminate recursion from a Datalog program II, then II is said to be bounded. It is known that the problem of deciding whether a given Datalog program is bounded is undecidable, even for binary programs. We show here that boundedness is decidable for monadic programs, i.e., programs where the recursive predicates are monadic (the non-recursive predicates can have arbitrary arity). Underlying our results are new tools for the optimization of Datalog programs based on automata theory and logic. In particular, one of the tools we develop is a theory of two-way alternating tree automata. We also use our techniques to show that containment for monadic programs is decidable.
UR - http://www.scopus.com/inward/record.url?scp=84898929116&partnerID=8YFLogxK
U2 - 10.1145/62212.62259
DO - 10.1145/62212.62259
M3 - ???researchoutput.researchoutputtypes.contributiontobookanthology.conference???
AN - SCOPUS:84898929116
SN - 0897912640
SN - 9780897912648
T3 - Proceedings of the Annual ACM Symposium on Theory of Computing
SP - 477
EP - 490
BT - Proceedings of the 20th Annual ACM Symposium on Theory of Computing, STOC 1988
PB - Association for Computing Machinery
T2 - 20th Annual ACM Symposium on Theory of Computing, STOC 1988
Y2 - 2 May 1988 through 4 May 1988
ER -