Abstract.
This paper presents a unified solution to the problem of extending stratified DATALOG to express database complexity classes ranging from \({\cal P} to {\cal QH}; {\cal QH}\) is the query hierarchy containing the decision problems that can be solved in polynomial time by a deterministic Turing machine using a constant number of calls to an \({\cal NP}\)-oracle. The solution is based on (i) stratified negation as the core of a simple, declarative semantics for negation, (ii) the use of a “choice” construct to capture the nondeterminism of stable models in a disciplined fashion, (iii) the ability to bind a query to the lowest complexity level that includes the problem at hand, and (iv) a general algorithm that adapts its behavior to the desired level of complexity required by the query so that exponential time computation is only required for hard problems.
Similar content being viewed by others
Author information
Authors and Affiliations
Additional information
Received: 30 November 1995 / 1 April 2001
Rights and permissions
About this article
Cite this article
Greco, S., Saccà, D. & Zaniolo, C. Extending stratified datalog to capture complexity classes ranging from \({\cal P} to {\cal QH}\) . Acta Informatica 37, 699–725 (2001). https://doi.org/10.1007/PL00013306
Issue Date:
DOI: https://doi.org/10.1007/PL00013306