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
- release 0 9 0 yesudeep mangalapilly
- lecture 16 recursively defined sets structural induction
- python list all files in directory and subdirectories recursively
- recursive algorithms implemented in python
- generating permutations with recursion maths anew
- cs5001 cs5003 intensive foundations of computer science lecture 5
- data structure and algorithm in python tree
- how to iterate through all files in a directory using kotlin kotlin
- username book chapter 10 uc santa barbara
- python iterate dictionary recursively
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