Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

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
How Prolog Answers Questions
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
Add & Delete Item
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:
No results containing your search query
P. 1
CPT114 CPT104 Introduction to Prolog

CPT114 CPT104 Introduction to Prolog

Ratings: (0)|Views: 353 |Likes:
Published by kim1029

More info:

Published by: kim1029 on Oct 23, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

11/04/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 23 are not shown in this preview.
You're Reading a Free Preview
Pages 27 to 66 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->