Unit3_Knowledge_9_11_2024-9pm
Unit3_Knowledge_9_11_2024-9pm
Course Instructor
Dr. Umadevi V
Department of CSE, BMSCE
What is Intelligence ?
Intelligence is how you use that knowledge
Intelligence is how you've processed that knowledge.
Sensing
Decision
Knowledge
Maker
Action
1 2 3
2 W?
1 W?
1 2
• Arjun is Intelligent
• Arjun is Hardworking
Arjun Hardworking
Intelligent
𝐽⇒𝑀
represented as:
¬𝐽 ⇒ 𝐻
as:
¬𝐽 ⇒ 𝐻
as:
¬𝐻 ⇒ ¬ 𝐽
or equivalently:
The statement "Not both John and Mary will make supper"
can be represented in propositional logic as:
¬(J∧M)
or equivalently:
¬J ∨¬M
where:
J represents "John will make supper."
MMM represents "Mary will make supper."
B ↔ (P ∧ ¬(N ∨ U).
¬(B∧U)→(R∨M)
There is a fishing contest. The goal is to catch fishes heavier than 1 Kg.
There are two contenders, Sunada and Compila. Each one uses their
own lake to catch fishes. Each lake have exactly same number of
fishes(100 fishes) and among those fishes, they have exactly same
number of fishes weighting more than 1 Kg (50 fishes).
The referee starts the competition with a whistle. They both catch
numerous fishes until the end of the time. Now it comes to count fishes
which comply to the rule. The referee starts to weight all fishes caught
by Sunada first. Surprisingly, all fishes caught by Sunada weight more
than 1 Kg! But he caught only 45 fishes.
On the other hand, Compila caught 60 fishes. It seems Compila wins
but referee didn’t decide yet. Because there may be less than 45 fishes
weighting more than 1 Kg. After counting and weighting, referee says
there are 50 fishes complying the rule which makes Compila the winner.
Now in this analogy, all fishes caught by Sunada comply the rule, which
makes him perfectly sound! Compila, on the other hand caught all
fishes that comply the rule and that makes Compila the perfectly
complete!
Here in the first row, we have mentioned propositional variables for room[1,1], which is
showing that room does not have wumpus(¬ W 11), no stench (¬S11), no Pit(¬P11), no
breeze(¬B11), no gold (¬G11), visited (V11), and the room is Safe(OK11).
In the second row, we have mentioned propositional variables for room [1,2], which is showing
that there is no wumpus, stench and breeze are unknown as an agent has not visited room
[1,2], no Pit, not visited yet, and the room is safe.
In the third row we have mentioned propositional variable for room[2,1], which is showing that
there is no wumpus(¬ W21), no stench (¬S21), no Pit (¬P21), Perceives breeze(B21), no
glitter(¬G21), visited (V21), and room is safe (OK21).
First-order logic
Assumes that the world contains
Objects: which are things with individual identities
Students, lectures, companies, cars ...
Symbols
Constants KingWadyar, 2, Bangalore, C,...
Predicates Brother, >, =, ...
Functions Sqrt, LeftLegOf , ...
Variables x, y, a, b, ...
Connectives ∧∨¬⇒⇔
Quantifiers ∀∃
Universal x
Existential x
Example:
All man drink coffee.
d. The best score in Greek is always higher than the best score in French.
∀s ∃x ∀y Score(x, G, s) > Score(y, F, s)
Vocalbulary:
Buys(x, y, z): x buys y from z (using a binary predicate with unspecified
seller is OK but less felicitous); Sells(x, y, z): x sells y to z;
Person(x), Expensive(x), Agent(x), Insured(x), Smart(x): predicates satisfied
by members of the corresponding categories.
g. There is an agent who sells policies only to people who are not
insured.
∃x Agent(x) ∧ ∀y, z Policy(y) ∧ Sells(x, y, z) ⇒ (Person(z) ∧
¬Insured(z)).
Common mistake
Using ∧ as the main connective with ∀
Example
Correct: ∀x (StudiesAt(x, BMSCE) ⇒ Smart(x))
“Everyone who studies at BMSCE is smart”
Common mistake
Using ⇒ as the main connective with ∃
Example
Correct: ∃x (StudiesAt(x,BMSCE) ∧ Smart(x))
“There is someone who studies at BMSCE and is smart”