Ai All Merged PDF
Ai All Merged PDF
Ai All Merged PDF
knowledge representation
Deals with
Facts:- truths in some relevant world. These are the
things we want to represent.
Representations of facts:- in some chosen formalism.
Representation of facts can be done in various ways
Plain English/ Mother tongue
In Computers we use “Symbols”
Mathematical logic (Propositional and Predicate Logic)
Knowledge Representation-basic
MAKE-PPERCEPT-SENTENCE:-
- Takes a percept and a time and
returns a sentence (representation)
asserting that agent perceived the
percept at given time.
- Inputs can be Audio, Video,
combinations using various sensors
MAKE-ACTION-QUERY:-
- Takes a time as input and returns a
sentence (representation) that asks
what action should be performed at
that time.
The Wumpus World
Wumpus- a mysterious monster
Fig. 1
Since there was no stench or breeze in [1,1], the agent can infer that [1,2]
and [2,1] are free from danger and thus marked with OK and will try to
move in those squares only.
Knowledge based wumpus Agent
Let agent decided to move to [2,1].
Let agent detect a breeze in [2,1] i.e there can be pit in
[2,2] or [3,1], as shown in fig.2
Agent then can go back to [1,1] and then
proceed to [1,2]
Fig. 2
Knowledge based wumpus Agent
Let new percept in [1,2] is stench., means there can be
wumpus near by, but wumpus can not be [1,1] and [2,2],
since they are already marked OK (known). Thus, agent
can infer that wumpus can be in [1,3] and indicated by w!
What is logic?
Logic is the study of the principles of correct
reasoning.
It is used for representation of knowledge, reasoning,
inference and proof generation.
It provides syntax of representing facts and semantics
for knowing the truth value of a sentence.
Logic is used to separate truth from falsehood,
reasonable from unreasonable beliefs.
Propositional Logic
What is a proposition?
It is a statement which can either true or false.
Syntax of propositional logic- defines allowable
sentences OR how sentences can be formed?
Syntax
Atomic sentence:- is individual syntactic element and
can be represented with a single proposition symbol.
Proposition Symbols- are upper case letter like P,Q, R
Complex sentence:- are constructed from atomic ones,
using logical connectives
Propositional Logic-connectives
Logical connectives.
There are 5 logical connectives
• NOT , AND, OR, Implication, Bi-conditional
Negation (NOT)
P- is called Negation of P,
A literal is either a atomic sentence (positive literal)
or a negated atomic sentence (negative literal)
Conjunction (AND)
A sentence whose main connective is is called a Conjunction.
e.g (P Q) , where P and Q are called conjuncts
Implication OR P Q PQ
A sentence whose connective is is called an implication. F F T
e.g (P Q) , where P is called premise /antecedent F T T
and Q is called as conclusion/consequence T F F
T T T
Propositional Logic
PQ
Bi-conditional ( ) (if and only if) P Q
F F T
P Q is same as ( P Q) (Q P) F T F
T F F
T T T
KB S1 S 2 ..... Sn
Simple Wumpus world Knowledge base in Propositional Logic
Let Pi, j is true if there is pit in room [i,j]
and Bi,j is true if there is breeze in room [i,j]
KB then contains following sentences , each one is labeled for convenience
R1 R2 ... R 5
Inference in Propositional Logic
Entailment :- (implies) (logically follows)
Equivalence Equivalence
We say that and are equivalent and written as
iff |= and |=
Validity and satisfiability in Propositional
Logic
Validity
A sentence is valid if it is true in all models
e.g P P
They are also called as tautologies
Satisfiability
NULL
• What is a predicate?
• Any sentence describes objects and their
properties, classes and relationships.
• Predicate is a part of sentence describing
properties, classes and relationships of
objects.
• E.g. This Ball is Red.
• (Red- predicate, Ball is an object)
Representing Facts in
Predicate Logic (informal way)
• Write predicate outside the bracket ( ) and
objects inside the bracket.
• This ball is red.
red (Ball). unary
pqrst (A,B, C)
Objects
Relationship,
Class involved
Or
Property
Represent following simple facts in
predicate logic
1. P. S. Dhabe is assistant professor.
2. Students appeared for exam.
3. Train is late.
4. A and B played chess.
5. Sky is blue.
6. A, B and C are project group members.
Relationship between Proposition and
Predicate
a).R1 R2 (Conjunction)
b).R1 R2 (disjunction)
c).R1 ( Negation)
d ).R1 R2 (implicatio n)
e). A WFF involving Quantifier s is also a validWFF
x : drive( x) y : x : drive( x)
A B AB
T T T
T F F
F T T
F F T
On (A, Floor)
On (B, A)
B
A C On (C, Floor)
clear (B)
Floor
clear ( C )
Blocks World
on( B, A) clear ( A)
Domain
Knowledge base
Quantification
x : dog ( x) hasatail ( x)
Syntax rule using UQ
if w( x) is a WFF
then
x : w( x) is also a WFF
x : dog ( x) hasatail ( x)
x : y : drive( y )
Set-subset relationship?
“Truth value” of wff with Existential
quantifiers
x : y : drive( y )
2. (AND ^ Introduction)
3. (Commutativity of ^)
IF P ^ Q is given then
Infer
Q^P
Inference Rules in Predicate Logic
4. (^ Elimination)
IF P ^ Q is given then
Infer
(either Q ) or (either P)
Inference Rules in Predicate Logic
5. ( V Introduction)
IF P is given
then Infer
PvQ
If dog (Tommy) is given
Then
INFER
dog (Tommy) black (Tommy)
Inference Rules in Predicate Logic
6. ( ⌐ Elimination)
IF ⌐(⌐ P) is given
then Infer
P
Inference Rules in Predicate Logic
7. ( Universal Instantiation UI)
If x : w( x) is given
Then INFER
w( ) where is a real object from a domain
(replace all x by in that WFF )
INFER x : dog ( x)
if dog (Tommy) is given
Specific to General
ISA Hierarchy
• How to represent Class- subclass and instance
relationships Explicitly?
• Isa- predicate is used to represent Class- subclass
relationship like.
pompeian(M arcus)
3. All Pompeian’s were Romans.
x : pompeian( x) roman( x)
4. Caesar was a ruler
ruler (Caesar )
Representing more facts in Predicate
Logic
5. All Romans were either loyal to Caesar or hated him.
x : roman( x) loyalto ( x, Caesar ) hate( x, Caesar)
6. Everyone is loyal to someone.
x : y : loyalto ( x, y )
7. People only try assassinate rulers they are not loyal to.
x : y : person ( x) ruler ( y ) tryassas sin ate( x, y ) loyalto ( x, y )
man(Marcus )
( Applying fact 1)
NULL
Problems in automating the proofs
• Suppose a machine has to prove a statement that
“Marcus was not loyal to Caesar” and having
knowledgebase represented using WFF in
predicate logic. e.g a WFF
x : y : person ( x) ruler ( y ) tryassas sin ate( x, y ) loyalto ( x, y )
Problems
1.System will not be efficient due to “Conjunctions”
2. Conjunction forces system to think more and
thus requires more efforts.
3. Quantifiers add-up the same effect.
Solution :- A clause form
What is a Clause?
a b a b
“All Romans who know Marcus either hate Caesar or think that
anyone who hates anyone is a crazy”.
(p ) p
(a b) a b deMorgan’s Law
(a b) a b
x : P( x) x : P( x) Standard
corresponden
x : P( x) x : P( x)
ce between
quantifiers
x : [roman( x) know( x, Marcus )]
[hate( x, Caesar ) (y : (z : hate( y, z )) thinkcrazy( x, y ))]
Correspondence between
deMorgan’s law
quantifiers
Converting a Fact into clause form.
Rule-3:- Standardize variables so that each quantifier
binds a unique variable. e.g.
x : P( x) x : Q( x)
x : P( x) y : Q( y )
Scope of x
x : [roman( x) know( x, Marcus )]
[hate( x, Caesar ) (y : z : hate( y, z )
thinkcrazy( x, y ))]
prefix Matrix
Converting a Fact into clause form.
Rule-5:- Eliminate existential quantifiers using “Skolem Functions”
as follows.
y : president ( y )
replace by
president ( s1)
Where s1 is a function with no arguments and that returns a value
that satisfies president.
x : y : fatherof ( y, x)
replace by
x : fatherof ( s 2( x), x)
Converting a Fact into clause form.
Rule-6:- Drop the prefix. At this point all the remaining variables
are universally quantified and any proof procedure can
assume that each variable it sees is universally quantified.
a (b c) (a b) c Associative
(a b) c (a c) (b c) Distributive
Clause Form
Problem-1
• Convert above fact into Clause form.
x : y : drive( y ) cook ( y )
Rule 1 ,2 , 3 4 are not applicable
1.drive( s1)
2.cook ( s 2)
Rule-9- Assuming that s1 will refer to x and s2 to y.
Resolution
• It is a proof generating procedure.
• It generates proof by “Contradiction”.
Definitions.
1. Contradiction:- is a statement whose every
possible interpretation is “False” e.g
( P P )
2.Tautology:- is a statement whose every
possible interpretation is “True” e.g
( P P )
3. Contingency:- is a statement which is
neither tautology nor contradiction.
Resolution
• Resolution generates proof by “Refutation”,
means the fact to be proved is negated and
then it is added to the knowledgebase and if
a contradiction is found then original fact is
proved.
blue(sky) ¬ blue(sky)
Red(carpet)
man( Marcus )
Parent Clauses.
man( Marcus )
hate( x, y )
hate( Marcus , z )
Marcus / x
substitution
y/z
Problem-3.
• Represent above facts in predicate logic and convert
them into clause form.
1. man( Marcus )
2. popeian ( Marcus )
3. pompeain( x1) roman( x1)
4. ruler (Caesar ) F
5. roman( x 2) loyalto ( x 2, Caesar ) hate( x 2, Caesar )
6. loyalto ( x3, f 1( x3))
7. man( x 4) ruler ( y1) tryassas sin ate( x 4, y1) loyalto ( x 4, y1)
8. tratassa sin ate( Marcus , Caesar )
Marcus/x2
3
roman( Marcus ) loyalto ( Marcus , Caesar )
Marcus/x1
2
pompeain( Marcus ) loyalto ( Marcus , Caesar )
7
loyalto ( Marcus , Caesar )
Marcus/x4, Caesar/y1 1
man( Marcus ) ruler (Caesar ) tryassas sin ate( Marcus , Caesar )
8
tryassas sin ate( Marcus , Caesar )
Null
married ( Ellen , z )
*****************************Resolution***************************
married ( Ellen , z ) 7
Ellen/x, z /y
4
member( Ellen ) member( z )
member(z )
Z can assume following values z=Joe, z=Sally, z=Bill
z Joe, Since Joe is already married
z Bill , Since Bill is Ellans brother
z Sally , Since is already married with Joe
Since every possible interpretation of member(z) is False, Thus it is a
contradiction.
Problem.1
• Represent following facts in predicate logic and
using resolution prove that West is a criminal.
1. It is crime for American to sell weapons to hostile
nations.
2. Nono has some missiles.
3. All of missiles owned by Nono were sold to it by
Colonel West.
4. Missiles are weapons.
5. America counts enemy as hostile.
6. West is American.
7. Country Nono is enemy of America.
Reference:- Artificial intelligence A modern approach-Russell &
Norvig, Page.280
Facts in WFF
American( x) weapon( y ) sells ( x, y, z ) hostile ( z ) cri min al ( x)
x : owns( Nono, x) missile ( x)
missile ( x) owns( Nono, x) sells (West , x, Nono)
missile ( x) weapon( x)
enemy( x, America ) hostile ( x)
american (West )
enemy( Nono, America )
Facts in clause form
Null
Points to be learned
• Prolog Features
– OOP language
– No procedure and thus, no programs and thus no
programmers, but “Knowledge Engineers”
– Only data (facts) about objects and their relationships
– Thus, a prolog program= database (Knowledge base)
– Goal is given by user and using formal reasoning it
proves or disproves it for find truth value
– It is a complied language
Introduction to Prolog
Planning
Can be broadly defined as the process of computing
several steps of a problem solving procedure before
executing any of them.
Planning decompose the problem into sub-
problems/parts
These sub-parts
interacts with each other
Are Ordered to solve big problem
The Blocks world domain
The domain considered for planning systems
There is s flat surface on which blocks can be placed.
Each block has exactly same size and identified with an
alphabet. There are many such blocks.
At most one block can be stacked on the another block,
since they are of same size.
There is a robot arm that can manipulate the blocks
Predicates are used to represent facts in the blocks world
The Blocks world domain-
ON (A, B) ONTABLE (B)
Robot arm can perform following
actions
A 1. UNSTACK(A,B)- Pick up the block
B A from its current position on block
B. The arm must be empty and no
block should be on the top of A
2. STACK(A,B)- Place block A on
block B. The arm must already be
holding block A and the surface of B
must be clear
3. PICKUP(A)- Pick up block A from
4. PUTDOWN(A)- Put block A the table and hold it. Precondition-
down on the table. The arm must arm must be empty and there must
be holding block A. be nothing on the top of A
The Blocks world domain
Following predicates describe the block world
ON ( A, B ) block A is on block B
ONTABLE(B)- block B is on Table
CLEAR(A)- There is nothing on the top of block A
HOLDING(A)- Robot arm is currently holding block A
ARMEMPTY- The arm is holding nothing
UNSTACK ( x, y )
P: ON(x,y) CLEAR(x) ARMEMPTY
D: ON(x,y) ARMEMPTY
A: HOLDING(x) CLEAR(y)
PICKUP( x)
P: CLEAR(x) ONTABLE ( x) ARMEMPTY
D: ONTABLE ( x) ARMEMPTY
A: HOLDING(x)
STRIPS- Style operators for blocks world
domain
PUTDOWN( x)
P: HOLDING( x )
D: HOLDING( x )
A: ONTABLE(x) ARMEMPTY
The situation in blocks world can be descrtibed as
ON(A,B) ONTABLE(B) CLEAR(A)
A
B A
B C
Components of a planning system
Detecting dead ends-
Planning procedures searches for sequence of operators
to solve a problem.
It must able to detect, when exploring a path that never
lead to a solution (or at least unlikely to lead to one).
This fact must be true in reasoning forward or backward
Components of a planning system
Repairing an almost correct solution-
A bigger problem is decomposed into several sub-
problems. But combining solutions of several sub-
solutions may not yield the solution to original
problem. Thus, following alternates are used.
1. Throw that solution- wasted efforts
2. If the difference between two sub-solutions A and B is
greater than zero, then call problem solving system to
eliminate this difference.
3. Try more appropriate operators
4. Keep the problems as it is till the last moment. Then
when as much info as possible is available, then complete
the solution (eliminate the difference). This approach is
called least commitment strategy.
Goal stack planning
This approach is used in STRIPS
The problem solver makes use of a single stack that
contains both goals and operators, that has been
proposed to satisfy those goals.
The problem solver relies on a KB that describes the
current situation and a set of operators described as
PRECONDITION, ADD, DELETE lists
Goal stack planning-working
Start Goal
B C B
A C D A D
ON(B,A) ON(C,A)
ONTABLE (A) ON (B, D)
ONTABLE(C) ONTABLE(A)
ONTABLE(D) ONTABLE(D)
ARMEMPTY
When we start solving this problem , the goal stack is simply
ON(C,A) ON (B, D) ONTABLE(A) ONTABLE(D)
We want to separate this problem into 4 sub problems, one for each
component of the original goal
Goal
Start
stack planning-working
Goal
B C B
A C D A D
ON(C,A) ON(B,D)
ON(B,D) ON(C,A)
ON(C,A) ON(B,D) OTAD ON(C,A) ON(B,D) OTAD
Stack 1 Stack 2
Goal stack planning-working
At each step of the problem solving process, the top of
the stack will be pursued.
When a sequence of operators that satisfies it is found,
that sequence is applied to the state description,
yielding new description.
The process continues till the goal stack is empty.
The last check is the original goal is compared with
the final state derived from the application of chosen
operators.
Goal stack planning-working
On the stack we have ON(C,A) which is not true. Thus, will find
operators that could make it true. Out of 4 operators we are
considering (stack, unstack, pickup, putdown) only STACK(C,A)
can make it possible and thus replace ON(C,A) by STACK(C,A)
ON(C,A)
ON(B,D)
B
A C D ON(C,A) ON(B,D) OTAD
Start
Goal
B
A C D C B
A D
Introduction to Artificial Neural networks
Human Brain
Axon
Synapse
Connected neurons
General neuron Model
In, general neuron model input is given as
vector x, weights are represented with vector w
and output o is function of net.
The net input, net or internal activity level of
neuron is calculated as
n
net wi xi
i 1
General neuron model.
w [ w1 , w2 ,..., wn ] weight vector
Transfer function
f (.) Activation function
wn
xn n
net w x
i 1
i i
O f (net )
Activation functions
Based on sign of output they are of two type
Unipolar (either positive or negative)
Biploar (both positive and negative)
+ve
f (net )
net
+ve
f (net )
net
How neuron learns?
Weight vector
Error
w2 Error surface
w1
Figure : Hypothetical 2-D error surface
Perceptron Learning Rule
k 1
Wi Wi c r x
k k
k 1
Wi Wi c (d k ok ) x
k k
Diagram of Perceptron LR
Explain role of learning rate
x1
w1
x2 w2 TLU
. ok
net
. wn Wi
xn
x dk
(dk-ok)
c
Features of Perceptron LR
Learning:-Supervised.
Weight initialized:- ANY
Neuron type:- Binary (uni and bipolar )
Used:- Classification and recognition
Problem.
Initial weight vector W1=[1,-1,0,0.5]
Use Perceptron Learning rule to
update weights for following three
inputs use c=1 and signum
function if the desired outputs are
1,-1 and 1 respectively
X1=[1,-2,1.5,0]
X2=[1,-0.5,-2,-1.5]
X3=[0,1,-1,1.5]
Answer
1. w=[ 1,-1,0,0.5]
2. W=[-1,0,4.0, 3.5]
3. W=[-1.0,0,4.0, 3.5]
Applications of neural network
Pattern classification/ Recognition/clustering
Prediction and forecasting
Fault diagnosis.
Correlation.
Advantages of neural networks
x2
w1,3
o2
x3 w1,n
. .
.
w1,( n 1)
.
xn
oR
.. .. .. ..
wR ,1 wR ,2 ... wR ,( n 1)
di ,1
d
di
i ,2
..
di , R
R- class Single layer discrete Perceptron training
algorithm
R- class Single layer discrete Perceptron training
algorithm
x2
Input
input layer Output
Output layer
xn
Hidden layers
Reference:- http://neuralnetworksanddeeplearning.com/chap1.html
Deep Learning Neural networks
• Neural networks/Architectures with thousands of hidden
layers are called “deep architectures” and their learning is
called “deep Learning”
• They need considerable computing power and thus generally
implemented on high performance computing platform
(>1 TFLOPS) with many CPUs and GPUs
• Human brain is itself a deep architecture which is motivation
behind deep learning.
• Deep learning machines exhibited super human capabilities
for a specific cognitive tasks.
• Tensor Processing Unit (TPU) is designed specifically for
deep learning architectures with library “Tensor Flow”. TPU
is highly optimized for tensor operations.
• Some new NVIDIA GPUs also provide “Tensor Cores” for
accelerating tensor operations on GPU (e.g Tesla V100, has
640 tensor cores and provides 100 TFLOPS)
Course code: IT4006
(Uncertainity) (7 Hrs)
Definition:-
Reasoning effectively even when complete, consistent and constant
model of the world is not available. (Read ABC murder story from Rich
and knight page 195)
Conventional systems (first-order predicate logic) are designed to work
systems that has three properties.
Completeness:- It is complete wrt to domain of interest
i.e all the facts necessary to solve a problem are either present in the
system or can be derived
It is consistent.
New facts added never contradicts previous one
If any one of the property is not satisfied then conventional logic
system becomes inadequate.
Reasoning under uncertainty is called non-monotonic
reasoning/Defeasible Reasoning.
Non-monotonic reasoning and statistical
reasoning
https://plato.stanford.edu/entries/logic-nonmonotonic/
Logics for Non-monotonic reasoning
Non-monotonic logic
Default logic
Abduction
Inheritance
Closed world assumption
https://plato.stanford.edu/entries/logic-nonmonotonic/
Problems:-
1.What is meaning of “is consistent”? is un-decidable in first
order logic
2. Multiple non-monotonic statements taken together may be
inconsistent
Logics for Non-monotonic reasoning
2. Multiple non-monotonic statements taken together may be inconsistent
In-
consistent
Quaker(Joe) Pacifist ( Joe)
A: B
C
If A is provable and it is consistent to assume B then
conclude C
Flies ( x)
Logics for Non-monotonic reasoning
Abduction:- is using the implication in reverse order
x : Engineer ( x) Literate( x)
Engineer ( Ram) we can deduce Literate(Ram)
Given Literate(Shyam) we can infer Engineer(Shyam)
by Abduction (Abductive reasoning)
Abduction- deriving conclusions even though they are not more
appropriate
Uncertainity
Randomness
A( x ) -Read it as “ membership of
input x in the fuzzy set A”
https://www.researchgate.net/figure/Difference-between-Crisp-and-Fuzzy-
Sets_fig6_311419824
Plot of fuzzy Membership function
A( x )
1
x
Types of fuzzy sets
There are 4 types of fuzzy sets based on the nature
of fuzzy membership values.
Normal fuzzy sets
Subnormal fuzzy sets
Convex fuzzy sets
Non-convex fuzzy sets
0 0
x x
A( x ) A( x )
1 1
0 0
x x
Convex and non-convex fuzzy sets
A( x ) A( x )
1 1
0 0
x x
A( x ) A( x )
1 1
0 0
x x
How to define Fuzzy sets.
A fuzzy set with finite members having
non-zero membership is represented as
0.4 0.6 1
A , ,
1 2 3
A( x ) { formula containing x
Operations on fuzzy sets
A B ( x) max ( A( x ) , B ( x ) )
Intersection of two fuzzy sets
A B ( x) min ( A( x ) , B ( x ) )
Compliment of a fuzzy set
A ( x) 1 A( x )
Exercise 1 on Fuzzy sets
Consider following fuzzy sets A and B
0.4 0.1 0.55 0.6 .7 0.5 0.6 0.7 0.7
A , , , , B , , ,
1 2 3 4 5 4 5 6 7
5 x
1 if 0
max( x,5) max( x,5)
5 x 5 x
A ( x) 1 if 0 1
max( x,5) max( x,5) max( x,5) max( x,5)
5 x
0 if 1
max( x,5) max( x,5)
Role of sensitivity parameter gamma
A( x ) Core part
3
1
0
Support
x
2. Fuzzy set for HCR matching
Vref (a1 , a2 ,..., ak )
a i - is the ith feature
1 if d ( A, B) 0
A ( x) 1 d ( A, B) if 0 d ( A, B) 1
0 if d ( A, B) 1
Reference
Book
“fuzzy logic with engineering
applications”
-By Timothy J. Ross
Structured Knowledge Representation
isa
Has a part
isa
Has a part
http://www.eecs.qmul.ac.uk/~mmh/AINotes/AINotes4.pdf
Representing multi-arity predicates in semantic net
gives(John, Mary, Book)
http://www.eecs.qmul.ac.uk/~mmh/AINotes/AINotes4.pdf
Problem on semantic net
d b m
actor victim
Statement “Every dog has bitten a postman” can be
represented with a semantic net partition as follows.
Existentially
Universal sets instances quantified
SA
GS
Universally
quantified Dogs postman
bite
isa
form
isa isa isa
g d b m
actor victim s1
GS is a set of general statements in this
universe.
-Every element of GS has two attributes
1. A form:- which states a relation.
2. one or more “for all”
connectives, for each universal
quantifier.
Advantages and drawbacks of Semantic net.
Advantages
1. Explicit and easy to understand
2. Support default reasoning in finite time
Drawbacks
1. Incomplete to handle procedural knowledge
2. Not temporal can not define sequence and
time
Conceptual Dependency (CD)
- CD is proposed as a model of Natural Language
Understanding (NLP) By Roger Schank, in 1969 at
Stanford university.
-Motto
-Used to acquire knowledge from natural language input
– “Two sentences identical in meaning, would have a
single representation”
-Knowledge representation is independent of language.
- Allow inferences
- Knowledge is represented using conceptual primitives
and dependencies
https://en.wikipedia.org/wiki/Conceptual_dependency_theory
https://users.cs.cf.ac.uk/Dave.Marshall/AI2/node69.html
Conceptual Dependency (CD)
Following are the primitive acts used in CD
ATRANS -- Transfer of an abstract relationship. e.g. give.
https://www.slideshare.net/JismyKJose/conceptual-dependency-70129647
Conceptual Dependency (CD)
T-- Times.
LOC-- Locations.
Conceptual Dependency (CD)
Other components used in CD
- Arrows indicates direction of dependency ()
-Double arrow indicate two way link between
actor and action ( )
- O- for object case relation
- R-Recipient case relation
- P-for past tense
-D-for destination
Conceptual Dependency (CD)
Following tense and moods are used in CD
p Past tense
f Future tense
t transition
ts Start transition
tf Finish transition
k continuing
? interrogative
/ negative
Absence of any modifier
indicates present tense
Rules in Conceptual Dependency (CD)
Rule 1: PP ACT
Relationship between actor and action . A p/f
written on link indicates tense.
p
ex1. John ran John PTRANS
f
ex2. John will run John PTRANS
Rule 2 : ACT PP
Relationship between act and PP (object).
o
ex1. John pushing bike John PROPEL bike
Rules in Conceptual Dependency (CD)
Rule 3 : PP PP
Relationship between two PPs (objects)
ex1. John is a doctor John doctor
Rule 4 : PP PP
Relationship between two PPs (objects), one
provides info to other of 3 types
1. POSS-BY- possession POSS- BY
2. LOC- location ex1. John' s dog dog John
3. CONT- physical containment LOC
Rule 5 : PP PA
Relationship between PP (object) and PA
(attribute or state of PP)
ex1. John is fat John weight ( 80)
Rule 6 : PP PA
Relationship between PP (object) and PA
(attribute of PP)
ex1. Smart John John smart
Rules in Conceptual Dependency (CD)
PP ( to)
Rule 7 : ACT R
PP ( from)
Relationship between ACT and source and recipient
of the act PP (object) . R indicate recipient case
relation
ex1. John take the book from mary
John
(to)
John ATRANS R
0
Mary
book (From)
https://www.slideshare.net/JismyKJose/conceptual-dependency-70129647
Rules in Conceptual Dependency (CD)
PA( to)
Rule 8 : PP
PA( from)
size c
tree
size c
Rules in Conceptual Dependency (CD)
{x}
Rule 9 :
{y}
{x}
Rule 10 :
{y}
Reference-
https://www.slideshare.net/JismyKJose/conceptual-dependency-70129647
Inferences in Conceptual Dependency (CD)
https://youtu.be/fQtWxEJazuo
intro to fuzzy sets
https://youtu.be/qKOyFr7dRrY
1. Intersection of A and B
2. Union of A and B
b. Example of Marcus
3. For AI LAB i suggest to use SWI-PROLOG tutorial and write your own expert system for any
real application (PROLOG-2 lab assignment). It should not be copied from internet sources.
Prolog 1 lab assignment is exercise of KB1 to KB5. I will set its deadline as 23 rd March for both
lab assignments.
All AI students are informed to prepare a short note about "Difference between resolution in
propositional and predicate logic". Complete it by 23 rd March. You are also informed to
complete AI home assignments. Contact me for problems, if any
All AI students are informed to complete the following portion of module -5 Lecture on 23 rd
March(planning and ANN). - Planning definition, Blocks world domain, Components of planning
system, STRIPS- operations, ADD, DELETE and PRECONDITION lists associated with each
operator. Pl. take help of my you tube videos also
They are not very good videos but can be used for reference purpose in addition to the slides.
Prepare a short note on "distinguish between monotonic and non-monotonic reasoning with
some real examples"
Pl. circulate following exercise to your class.
Q.1. Use semantic net to represent the following things. Hilbert is a hippo and like other hippos
eats grass and likes swimming.
https://youtu.be/UwTZYwJHdzk
Dear all;
ATRANS, PTRANS
MTRANS, MBUILD