Chapter 3: Recursion - University of Groningen
? Patrick Blackburn, Johan Bos & Kristina Striegnitz
Chapter 3: Recursion
? Theory
? Introduce recursive definitions in Prolog ? Go through four examples ? Show that there can be mismatches between
the declarative and procedural meaning of a Prolog program
? Exercises
? Exercises of LPN chapter 3 ? Practical work
Chapter 3: Recursion
Recursive definitions
? Prolog predicates can be defined recursively
? A predicate is recursively defined if one or more rules in its definition refers to itself
? Patrick Blackburn, Johan Bos & Kristina Striegnitz
Example 1: Eating
Example 1: Eating
isDigesting(X,Y):- justAte(X,Y). isDigesting(X,Y):- justAte(X,Z), isDigesting(Z,Y).
justAte(mosquito,blood(john)). justAte(frog,mosquito). justAte(stork,frog).
?-
? Patrick Blackburn, Johan Bos & Kristina Striegnitz
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- recursive algorithms implemented in python
- copy that using sas to create directories and duplicate files
- python iterate dictionary recursively
- cme193 introductiontoscientificpython lecture7 recursion exceptionhandling
- dos command unix or bash action command oakton
- programming and algorithms ii degree in bioinformatics fall 2018
- q 1 15 15110 principles of computing 2 20 3 20 4 15
- ubuntu server cli pro tips
- release 0 9 0 yesudeep mangalapilly
- how to iterate through all files in a directory using kotlin kotlin
Related searches
- chapter 3 developmental psychology quizlet
- mcgraw hill algebra1 chapter 3 lesson 8
- chapter 3 psychology quizlet test
- psychology chapter 3 quiz answers
- developmental psychology chapter 3 quizlet
- strategic management chapter 3 quizlet
- psychology chapter 3 exam
- psychology chapter 3 test questions
- quizlet psychology chapter 3 quiz
- chapter 3 psychology quiz
- developmental psychology chapter 3 test
- quizlet psychology chapter 3 answers