FMC L 3
FMC L 3
(BSC-202)
Dr Priyavrat
(Assistant Professor)
Lecture 3
(Overview of AI Techniques (Logic and Reasoning))
1 Overview of AI techniques
Logic
Reasoning
2 Assignment
Example
P1: All lemons are blue
P2: Mary is a lemon
C: Therefore, Mary is blue
Example
Instead of “hot” or “cold,” AI assigns values like “very cold = 0.1, cold =
0.3, Luke warm = 0.5, Warm = 0.7, Hot = 0.9, very hot”
Example
• Initially: “All birds can fly.”
• New data: “Penguins cannot fly.”
• AI machine modifies its rule.
Example
P: “It is raining” (P)
Q: “I carry an umbrella” (Q)
R: If P → Q (If it is raining, I carry an umbrella)
Dr Priyavrat (CUP) FMC(BSC-202) Lecture 3 7 / 13
Logic
Types of Logic
Example
∀x (Human(x) → Mortal(x))
Meaning: “For all x, if x is a human, then x is mortal.”
Example
Instead of “Is the water hot?” (True/False) (Propositional Logic)
Fuzzy logic assigns a degree: “very cold = 0.1, cold = 0.3, lukewarm =
0.5, Warm = 0.7, hot = 0.9, very hot”
Example
Rule: Birds can fly.
Exception: Penguins are birds, but cannot fly.
AI updates its belief system dynamically.
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
→ Inductive Reasoning
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
→ Inductive Reasoning
• P1: All humans are mortal.
P2: Socrates is a human.
C: Socrates is mortal
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
→ Inductive Reasoning
• P1: All humans are mortal.
P2: Socrates is a human.
C: Socrates is mortal
→ Deductive Reasoning
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
→ Inductive Reasoning
• P1: All humans are mortal.
P2: Socrates is a human.
C: Socrates is mortal
→ Deductive Reasoning
• AI for recommendation systems, like suggesting books based on the
reading habits of users with similar tastes
Choose the correct type of reasoning for the following facts and
conclusions:
Example
• The ground is wet → It probably rained last night.
→ Abductive Reasoning
• The sun has risen every day → It will rise tomorrow.
→ Inductive Reasoning
• P1: All humans are mortal.
P2: Socrates is a human.
C: Socrates is mortal
→ Deductive Reasoning
• AI for recommendation systems, like suggesting books based on the
reading habits of users with similar tastes
→ Analogical Reasoning
Dr Priyavrat (CUP) FMC(BSC-202) Lecture 3 12 / 13
Assignment