📘 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:
-
Statements are either True or False
-
Uses logical connectives
🔹 Basic Elements
Propositions
Statements that have truth values.
Example:
-
“Ram is tall” → True/False
Logical Connectives
| Symbol | Meaning |
|---|---|
| ¬ | NOT |
| ∧ | AND |
| ∨ | OR |
| → | IMPLIES |
| ↔ | IFF |
Example:
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:
✔ 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
| Symbol | Meaning |
|---|---|
| ∀ | For all |
| ∃ | There exists |
Example:
7️⃣ Inference in First Order Logic
🔹 Unification
Process of making two expressions identical.
Example:
🔹 Resolution in FOL
Steps:
-
Convert to clause form
-
Apply resolution rule
-
Derive empty clause
8️⃣ Knowledge Representation Techniques
🔹 1. Semantic Networks
-
Nodes → Objects
-
Arcs → Relationships
Example:
✔ Easy to understand
❌ Limited reasoning power
🔹 2. Frames
Structured representation using slots and values.
Example:
| Slot | Value |
|---|---|
| Name | Bird |
| Wings | Yes |
| Fly | Yes |
✔ Used in expert systems
🔹 3. Conceptual Graphs
-
Graphical form of logic
-
Combines semantic nets + logic
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:
| Temperature | Truth Value |
|---|---|
| Cold | 0.2 |
| Warm | 0.7 |
| Hot | 0.9 |
Advantages:
✔ Handles uncertainty
✔ Used in washing machines, ACs
✔ Human-like reasoning
🔟 Learning in AI
Types of Learning:
🔹 1. Supervised Learning
-
Uses labeled data
-
Example: Classification
🔹 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:
-
Select attribute
-
Split data
-
Build tree
-
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
-
Weighted connections
Used for:
-
Classification
Comments
Post a Comment