Ai - Unit 3 - Study Resource
Ai - Unit 3 - Study Resource
UNIT 3
and ∧ ,
or ∨ ;
if → :-
not ¬ not
Example PROLOG Representations
grandfather(X, Y) :- father(X, Z), parent(Z, Y)
Above statement says that for X to be the grandfather of Y, Z should be a parent
of Y and X should be father of Z.
Other PROLOG example statement representations compared to First Order
Logic representations is given in below table.
FOL PROLOG
Pet(x) :- Cat(x)
∀x: Cat(x) ∨ Dog(x) → Pet(x)
Pet(x) :- Dog(x)
Dog(x) :- Poodle(x)
∀x: Poodle (x) → Dog(x) ∧ Small (x)
Small(x) :- Poodle(x)
∀x: Pet(x) ∧ Small (x) → Apartmentpet(x) apartmentpet(x) :- Pet(x), Small(x)
Above is the Semantic Net representation of a object CAR. We can observe the
labelled nodes, which are labelled as, HAS & IS-A, representing the relation
between the object and attribute.
Semantic Nets - Example 2