Page 199 - DCAP506_ARTIFICIAL_INTELLIGENCE
P. 199
Dinesh Kumar, Lovely Professional University Unit 14: Prolog
Unit 14: Prolog Notes
CONTENTS
Objectives
Introduction
14.1 AI Programming Languages
14.1.1 AI Language Prolog
14.2 Converting English to Prolog Facts and Rules
14.2.1 Facts
14.2.2 Rules
14.2.3 Conversion from English to Prolog Facts and Rules
14.3 Goals
14.4 Prolog Terminology
14.4.1 Atom
14.4.2 Numbers
14.4.3 Variables
14.4.4 Compound Term
14.5 Control Structures
14.5.1 Conjunction, Disjunction, Fail and True
14.5.2 Cuts
14.5.3 If-then-else
14.5.4 Variable Goals and Calls
14.5.5 Repeat
14.5.6 Once
14.5.7 Negation
14.6 Arithmetic Operators
14.7 Matching
14.8 Backtracking
14.9 Lists
14.10 Input/Output and Streams
14.10.1 Input/Output using Current Streams
14.10.2 Explicitly Specifying Streams for Input/Output
14.11 Summary
io
fess
io
io
n
n
n
fess
P
P
P
o
fess
o
o
ivers
n
n
ivers
ity
ity
ivers
n
a
a
a
l U
l U
l U
ity
K
K
esh
u
u
K
esh
Din
Dinesh Kumar, Lovely Professional University
Din esh K u ma r r r r , , , , Lo ve ly P r r r r o fess io n a l U n ivers ity
esh
Din
Din
u
ve
ve
ve
ly
ly
ly
Lo
ma
ma
ma
Lo
Lo
14.12 Keywords
14.13 Review Questions
14.14 Further Readings
LOVELY PROFESSIONAL UNIVERSITY 193