AI Lecture 2
AI Lecture 2
REPRESENTING FACTS
The two most fundamental concerns of A.I. are knowledge representation and search
If we need to build intelligent computers we must tell to them all the common sense
(knowledge) we have that they don’t.
KNOWLEDGE
Procedures: ways to
follow chains between
facts
• Two main types of knowledge :
-Declarative Knowledge : it means what do you know (Fact) , things true about
the world summation 2 and 2 is 4.
sum(2, 2, 4).
sum (2, 5, 7).
eg. : computer (cpu).
computer (memory).
computer (input).
computer(output).
- Procedural knowledge : how to do things (rules). Rules are a good way of representi
procedural knowledge
- eg. how to multiply 2 numbers or ahmed is grand father of mohamad
grandfather (ahmed , mohamad):- male(ahmed),male (hardi),
father(ahmed, hardi),
father(hardi, mohamad)
- A representational scheme should
5
c) Allow representation of general principles
as well as specific situations.
d)Capture complex semantic meaning.
e)Allow for meta – level reasoning.
a) Handle qualitative knowledge:-
C
A B
8
d) Capture complex semantic meaning:
Required large amounts of highly structured interrelated knowledge.
Describing the relationship between events occurring over time.
“ a blue bird is a small blue – colored bird and a bird is a feathered
flying animal”
9
e) Allow for meta – level reasoning
1) An intelligent system not only should know things but also
know what it knows.
2) It should be able not only to solve problems but also to explain
how it should the problem and why it made certain decisions.
3) It should be able to describe its knowledge in both specific and
general terms.
4) It should be able to recognize the limitations of its knowledge
and learn from its interactions with the world
Meta – knowledge
( higher level of knowledge )
10
The Propositional Calculus
• The propositional and predicate calculus are first of all
languages , using their words, phrases and sentences
we can represent and reason about properties and
relationships in the world.
P Q P==>Q P Q P=Q
---------------------- ----------------------
F F T F F T
F T T F T F
T F F T F F
T T T T T T
Ex : (ﬢP v Q) = ( P ==> Q)
• Commutative Law: (Q ^ R) = ( R ^ Q)
(Q v R) = (R v Q)
• Associative Law: P v (Q v R) = (P v Q) v R
P ^ (Q ^ R) = (P ^ Q) ^ R
• Quantifiers
e.g. f(x,y)