Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .

5.2 Introduction to Prolog
WinProlog
Defining Relations by Facts
Prolog System
Define a Relation for a family
Example: A Family Tree
Defining Relations by Rules
Defining Relations by Rules (cont.)
Exercise
Another Exercise
Example
Exercise: Recall Predicate Logic
Data Objects
Atoms and Numbers
Variables
Structures
Matching
Declarative Meaning (cont.)
Procedural Meaning
Order of Clauses and Goals
5.4 Lists, Operators, Arithmetic
Representation of Lists
Example1
Example2
Operations on Lists
Membership
Concatenation
Sublist
Permutations
Operator Notation
Operator Notation (cont.)
Arithmetic
Example: Retrieving Database
Data Abstraction
Example: Travel Agent
Example: Travel Agent (cont.)
Prolog Program
Prolog Program (cont.)
Prolog Database
Prolog Database (cont.)
Operations
Example of Queries
0 of .
Results for:
P. 1
CPT114 CPT104 Introduction to Prolog

# CPT114 CPT104 Introduction to Prolog

Ratings: (0)|Views: 353 |Likes:

### Availability:

See more
See less

11/04/2011

pdf

text

original

Pages 4 to 23 are not shown in this preview.
Pages 27 to 66 are not shown in this preview.