1984 · 17 citations · 6 references
ComputingComputer ScienceAlgorithmsLogicTheory Of ComputationAutomated ReasoningComputational ComplexityDeductive ReasoningFirst-order LogicPredicate LogicQuery ProcessingComplexityExponential Time ComplexityFirst-order Logic ReasoningHorn Clause LogicHorn ClausesPolynomial Time ComplexityPolynomial-time AlgorithmsTop-down Implementation
Capture rules were introduced in [U] as a method for planning the evaluation of a query expressed in first-order logic. We examine a capture rule that is substantiated by a simple top-down implementation of restricted Horn clause logic. A necessary and sufficient condition for the top-down algorithm to converge is shown. It is proved that, provided there is a bound on the number of arguments of predicates, the test can be performed in polynomial time; however, if the arity of predicates is made part of the input, then the problem of deciding whether the top-down algorithm converges is NP-hard. We then consider relaxation of some of our constraints on the form of the logic, showing that success of the top-down algorithm can still be tested in polynomial time if the number of arguments is limited and in exponential time if not.
6
On compiling queries in recursive first-order databases
Lawrence J. Henschen, Shamim A. Naqvi · Journal of the ACM · 1984 · 285 citations · Full text
N. D. Jones, R. J. Nelson · American Mathematical Monthly · 1969 · 112 citations
Horn clauses and the fixpoint query hierarchy
Ashok K. Chandra, David Harel · 1982 · 50 citations