Efficient tests for top-down termination of logical rules
- 1 April 1988
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 35 (2), 345-373
- https://doi.org/10.1145/42282.42285
Abstract
Considered is the question of whether top-down (Prolog-like) evaluation of a set of logical rules can be guaranteed to terminate. The NAIL! system is designed to process programs consisting of logical rules and to select, for each fragment of the program, the best from among many possible strategies for its evaluation. In the context of such a system, it is essential that termination tests be fast. Thus, the “uniqueness” property of logical rules is introduced. This property is satisfied by many of the common examples of rules and is easily recognized. For rules with this property, a set of inequalities, whose satisfaction is sufficient for termination of the rules, can be generated in polynomial time. Then a polynomial test for satisfaction of constraints generated by this process is given.Keywords
This publication has 5 references indexed in Scilit:
- Design overview of the NAIL! SystemLecture Notes in Computer Science, 1986
- Implementation of logical query languages for databasesACM Transactions on Database Systems, 1985
- Proving termination with multiset orderingsCommunications of the ACM, 1979
- The Semantics of Predicate Logic as a Programming LanguageJournal of the ACM, 1976
- Depth-First Search and Linear Graph AlgorithmsSIAM Journal on Computing, 1972