Termination test for logic programs

Yehoshua Sagiv*

*Corresponding author for this work

Research output: Contribution to conferencePaperpeer-review

24 Scopus citations

Abstract

We give a condition for termination of logic programs (when evaluated top-down). The condition is couched in terms of datalog (i.e., function-free) programs with (possibly) infinite EDB relations that satisfy some partial order constraints among argument sizes. However, this condition can also show (in many cases) the termination of logic programs with function symbols. It is also shown that in the framework discussed in the paper (i.e., datalog programs with constraints on the EDB relations), the condition is not just sufficient, but also necessary for the lack of infinite branches in a top-down evaluation tree. The condition can be tested in exponential time in the size of the program (the time does not depend on the size of the EDB).

Original languageEnglish
Pages518-532
Number of pages15
StatePublished - 1991
EventLogic Programming - Proceedings of the 1991 International Symposium - San Diego, CA, USA
Duration: 28 Oct 19911 Nov 1991

Conference

ConferenceLogic Programming - Proceedings of the 1991 International Symposium
CitySan Diego, CA, USA
Period28/10/911/11/91

Fingerprint

Dive into the research topics of 'Termination test for logic programs'. Together they form a unique fingerprint.

Cite this