Lecture-05 (New)
Lecture-05 (New)
Contents:
Introduction to Knowledge Representation
Propositional Logic
First Order Logic
Propositional Logic V/S First Order Logic
Applications of Knowledge Representation and Reasoning
INTRODUCTION TO KNOWLEDGE
REPRESENTATION & REASONING
Knowledge:
Facts and skills accumulated through experience.
Reasoning:
Processing of stored knowledge, use of knowledge at right time.
Definition:
A formal system used to structure and organize knowledge in
artificial intelligence (AI) systems.
It allows AI to represent facts, objects, and relations in a way
that a computer can process.
Objective of Knowledge Representation:
Capture Knowledge: Store useful information about the world.
Reasoning: Use stored information to draw inferences, solve
problems, and make decisions.
WHY IS KNOWLEDGE
REPRESENTATION IMPORTANT IN AI?
Facilitates Reasoning:
Helps AI systems simulate human-like reasoning
processes.
Makes it easier to infer new knowledge from existing
data.
Foundation for Machine Learning & Natural Language
Processing:
Enhances the ability of machines to understand, learn,
and interpret complex human concepts.
Supports Decision-Making in AI:
Used in expert systems and robotics for planning and
decision-making based on structured knowledge.
FORMS OF KNOWLEDGE
REPRESENTATION
Logical Representation:
Uses formal logic (e.g., Propositional Logic, First Order
Logic/Predicate Logic) to represent facts and rules.
Semantic Networks (Meaningful Graph):
Represents knowledge as a graph of nodes (concepts) and
links (relationships).
Frames :
Slots: object
Fillers: Attributes
Group related data together in structures representing
stereotypes or objects (e.g., a "car" has wheels, engine, etc.).
Production Rules:
Uses "IF-THEN" rules to model behavior or infer decisions
KEY COMPONENTS OF
KNOWLEDGE REPRESENTATION
Objects:
Entities that exist in the world (e.g., a person, car, or
animal).
Relations:
How objects are connected (e.g., "Alice loves Bob").
Facts:
Statements that describe the state of the world (e.g.,
"The sky is blue").
Rules:
Conditional statements that define how knowledge is
derived or used (e.g., "If it rains, then bring an umbrella").
ROLE OF KNOWLEDGE
REPRESENTATION IN AI SYSTEMS
Expert Systems:
Models domain-specific knowledge (e.g., medical diagnosis)
for decision-making.
Robotics:
Allows robots to map and navigate environments, and make
informed decisions about tasks.
Natural Language Processing:
Helps machines interpret and respond to human language
by structuring linguistic knowledge.
AI Planning:
Represents possible actions and outcomes to create
effective action plans in dynamic environments.
WHAT IS PROPOSITIONAL LOGIC
(TRUE/FALSE)?
Definition:
Propositional Logic (PL) is a symbolic logic that deals with
propositions that can be either true or false.
Basic Components:
Propositions: Statements like "P" or "Q" which can be true or
false.
Logical Operators:
NOT - Negation ( ¬ ): Negates the truth value.
OR – Disjunction ( ∨ ): At least one proposition must be true.
AND - Conjunction ( ∧ ): Both propositions must be true.
IF-Then – Implies ( → ): If the first proposition is true, then the
second must be true.
IFF – If and Only If
PROPOSITIONAL LOGIC -
EXAMPLES
NOT - Negation ( ¬ ): P = “It is raining”
¬P (It’s not raining)
Example-1:
Universal Statement: ∀x (Student(x) → Studies(x))
"All students study.
Example-2:
Existential Statement: ∃x (Student(x) ∧ Studies(x))
"There exists a student who studies."
Example-3:
Predicate Logic: Loves(Alice, Bob) ∧ Friends(Bob,
Charlie)
"Alice loves Bob, and Bob is friends with Charlie."
FIRST ORDER LOGIC - EXAMPLES