SBP - Rule Based System Forward Chaining
SBP - Rule Based System Forward Chaining
1
Rule Based System
● rule-based systems are built around rules like the following:
Rule Rn if condition 1
condition 2
...
then action 1
action 2
…
4
Knowledge Base / Facts
Konklusi Q
Forward Chain
● The process uses a down-up approach (bottom to top).
● It starts from an initial state and uses facts to make a conclusion.
● This approach is data-driven.
● It’s employed in expert systems and production rule system.
8
Example : Theatre
R7 IF FruitClass= vine and Surface= rough and Color= tan THEN Fruit=honeydew
R8 IF FruitClass= vine and Surface= smooth and Color= yellow THEN Fruit= cantaloupe
R9 IF FruitClass= tree and Color= orange and Seedclass= stonefruit THEN Fruit= apricot
R10 IF FruitClass= tree and Color= orange and Seeedclass= multiple THEN Fruit =orange
R11 IF FruitClass= tree and Color= red or yellow or green and Seedclass=multiple THEN Fruit= apple
12
•Given a fact list:
•– Diameter = 3 inch,
•– Shape = round,
•– SeedCount > 1,
•– Color = yellow,
• – Surface = smooth
14