📘 PAPER 3 – ARTIFICIAL INTELLIGENCE & ROBOTICS UNIT 2: KNOWLEDGE REPRESENTATION & REASONING (university of allahabad)

 

🔴 UNIT 2: KNOWLEDGE REPRESENTATION & REASONING


1️⃣ Knowledge Representation (KR)

✅ Definition

Knowledge Representation is the method used to store knowledge in a machine so that it can:

  • Reason

  • Learn

  • Make decisions


✅ Goals of Knowledge Representation

✔ Represent real-world information
✔ Enable reasoning
✔ Easy to modify
✔ Efficient retrieval


2️⃣ Propositional Logic

✅ Definition

Propositional Logic is a formal system in which:


🔹 Basic Elements

Propositions

Statements that have truth values.

Example:

  • “Ram is tall” → True/False


Logical Connectives

SymbolMeaning
¬NOT
AND
OR
IMPLIES
IFF

Example:

P: It is raining Q: I carry umbrella P → Q

3️⃣ Syntax and Semantics

Syntax

Rules for forming valid expressions.

Semantics

Meaning or truth value of expressions.


4️⃣ Inference in Propositional Logic

🔹 Reasoning Methods

1. Forward Chaining

  • Data-driven

  • Starts from facts

  • Moves forward using rules

2. Backward Chaining

  • Goal-driven

  • Starts from goal

  • Works backward


5️⃣ Resolution Principle

Definition:

Resolution is a rule of inference used for proving statements.

Example:

PQ ¬Q --------- P

✔ Used in theorem proving
✔ Important exam topic


6️⃣ First Order Logic (FOL)

✅ Definition

First Order Logic is more powerful than propositional logic because it:

  • Uses quantifiers

  • Represents objects and relationships


🔹 Quantifiers

SymbolMeaning
For all
There exists

Example:

x (Human(x) → Mortal(x))

7️⃣ Inference in First Order Logic

🔹 Unification

Process of making two expressions identical.

Example:

P(x) and P(Ram) ⇒ x = Ram

🔹 Resolution in FOL

Steps:

  1. Convert to clause form

  2. Skolemization

  3. Apply resolution rule

  4. Derive empty clause


8️⃣ Knowledge Representation Techniques


🔹 1. Semantic Networks

Graph-based representation:

  • Nodes → Objects

  • Arcs → Relationships

Example:

Bird → can fly Sparrow → Bird

✔ Easy to understand
❌ Limited reasoning power


🔹 2. Frames

Structured representation using slots and values.

Example:

SlotValue
NameBird
WingsYes
FlyYes

✔ Used in expert systems


🔹 3. Conceptual Graphs


9️⃣ Uncertain Knowledge

Problem:

Real-world information is often:

  • Incomplete

  • Uncertain

  • Imprecise


🔹 Probabilistic Reasoning

Uses probability to represent uncertainty.

Example:
P(Rain) = 0.7


🔹 Fuzzy Logic

Definition:

Fuzzy logic allows partial truth values between 0 and 1.


Example:

TemperatureTruth Value
Cold0.2
Warm0.7
Hot0.9

Advantages:

✔ Handles uncertainty
✔ Used in washing machines, ACs
✔ Human-like reasoning


🔟 Learning in AI

Types of Learning:

🔹 1. Supervised Learning

🔹 2. Unsupervised Learning

  • No labeled data

  • Clustering

🔹 3. Reinforcement Learning

  • Reward-based learning


1️⃣1️⃣ Concept Learning

Learning general concepts from examples.

Example:
Learning “Bird” from examples like sparrow, pigeon.


1️⃣2️⃣ Inductive Learning

Learning by:

  • Observing examples

  • Generalizing rules


1️⃣3️⃣ Decision Tree Learning

Steps:

  1. Select attribute

  2. Split data

  3. Build tree

  4. Predict output

✔ Simple
✔ Easy to understand


1️⃣4️⃣ Neural Networks (Intro)

Definition:

A Neural Network is inspired by the human brain.


Single Layer Neural Network

Used for:

Comments

Popular Posts