Professional Documents
Culture Documents
Chaining
Dr. K. Lakshmi
Introduction
Forward and Backward Chaining are the
modes used by the Inference Engine to
deduce new information from the knowledge
base.
Inference Engine is one of the major
form
Rule 3: IF A is a living form THEN A is mortal
Fact: Shyam is human
From these inference rules, we have to reach
the Goal
Goal: Is Shyam a mortal?
Example 1
Start with the Known fact. We know that Shyam
is human (From the Fact statement).
Using R1 we can infer that Shyam is a mammal.
Since it is not a Goal Statement so continue.
Then jump to Rule 2: if Shyam is a mammal
then it as a living form so we can say that
Shyam is a living form. Since it is not a Goal
Statement so continue
Using R3, Since Shyam is a life form so it must
be Mortal. Since it is the goal statement so Exit
Example 2
Knowledge Base (Initial State)
Rules:
F3 matches R1
Example 2
Knowledge Base (Final State)
Fact: