Help Privacy Policy Disclaimer
  Advanced SearchBrowse




Conference Paper

Learning Prolog programs from examples


Krishna Rao,  M. R. K.
Programming Logics, MPI for Informatics, Max Planck Society;

External Resource
No external resources are shared
Fulltext (restricted access)
There are currently no full texts shared for your IP range.
Fulltext (public)
There are no public fulltexts stored in PuRe
Supplementary Material (public)
There is no public supplementary material available

Krishna Rao, M. R. K. (1996). Learning Prolog programs from examples. In K. Anjaneyulu, M. Sasikumar, & S. Ramani (Eds.), Knowledge Based Computer Systems (pp. 19-30). New Delhi, India: Narosa.

Cite as: https://hdl.handle.net/11858/00-001M-0000-0014-ABE4-9
Logic programs with elegant and simple declarative semantics have become very common in many areas of artificial intelligence such as knowledge acquisition, knowledge representation and common sense and legal reasoning. For example, in Human GENOME project, logic programs are used in the analysis of amino acid sequences, protein structure and drug design etc. In this paper, we investigate the problem of learning logic (Prolog) programs from examples and present an inference algorithm for a class of programs. This class of programs (called one-recursive programs) is based on the divide-and-conquer approach and mode/type annotations. Our class is very rich and includes many programs from Sterling and Shapiro's book including {\tt append, merge, split, insert, insertion-sort, preorder} and {\tt inorder} traversal of binary trees, polynomial recognition, derivatives, sum of a list of natural numbers etc., whereas earlier results can only deal with very simple programs without local variables and at most two clauses and one predicate \cite{colt92}. Further, our algorithm does not need examples for auxiliary predicates, but only for the target predicate.