Introduction to Knowledge representation-12-08-2024
Introduction to Knowledge representation-12-08-2024
• Learning refers to a capability that acquires new knowledge, behaviours, understanding, etc.
It does not simply involve adding new facts to a knowledge base but new information may have to
be classified to avoid redundancy and replication in the existing knowledge prior to storage to
There are a number of ways in which knowledge may be gained such as by reasoning and logic, by
(∀𝑋)human(X)mortal(X)
SYNTAX I is watching TV
Inference
Knowledge Base
Mechanism
[Domain-specific [Domain-independent
content ] Algorithm]
Knowledge based Agent
I/P
Environment Inference Engine O/P
Learning
[Updating the KB]
Knowledge Base
KBA
Knowledge based Agent
Types:
• It is a language with some concrete rules which deals with propositions and has no ambiguity
in representation.
Advantages:
Compact, First-order Propositional
Task-independent,
Modular representation Logic Logic
Reusable, flexible and maintainable.
Propositional Logic
Proposition
Propositional Logic
Definition: Propositional logic is a mathematical system for reasoning about
propositions and how they relate to one another.
Propositional Logic
Propositional variable
Propositional variable represents an arbitrary proposition. We represent propositional
variables with uppercase letter.
Each variable can take one of two values: True or False. If a proposition is true then we
say that its truth value is True and if a proposition is false we say its truth value is False.
Propositional Logic
Propositional connectives
Propositional Logic
Sentence
Propositional Logic
Truth Table
Propositional Logic
Operator Precedence
Propositional Logic
Translating English into logic
If I work hard but there are no vacancies I would not get the job (𝑾 ∧ ¬𝑽) → ¬𝑱
Each pair that contains complementary literals is resolved to produce a new clause,
which is added to the set if it is not already present.
• there are no new clauses that can be added, in which case KB does not entail
α;
or,
• two clauses resolve to yield the empty clause, in which case KB entails α.
Example OF Propositional Resolution
If P(x) is a predicate, x has a domain U, then truth set of P(x) is the set of all the
elements t of U such that P(t) is true.
First-order Logic
Returns objects associated with other objects
e.g. MotherOf(x)
X=Jesus, MotherOf(Jesus)=Mary
First-order Logic
First-order Logic
First-order Logic
First-order Logic
Incorrect
Correct
First-order Logic
First-order Logic
First-order Logic
First-order Logic
First-order Logic