انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Reasoning System - Backward Chaining

الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 3
أستاذ المادة مهدي عبادي مانع الموسوي       27/04/2018 07:01:41
Backward chaining and the reasoning system is discussed in the previous class, now let we have the same rules for the vehicles.
Vehicles rule base:-
Bicycle: IF vehicleType=cycle
AND num_wheels=2
AND motor= no
THEN vehicle= Bicycle
Tricycle: IF vechicleType=cycle
AND num_wheels=3
AND motor=no
THEN vehicle=Tricycle
Motorcycle: IF vehicleType=cycle
AND numb-wheels=2
AND motor=yes
THEN vechicle=Motorcycle
SportsCar: IF vehicleType=automobile
AND size=small
AND num_doors=2
THEN vechicle=Sports_Car
Sedan: IF vechicleType=automobile
AND size=medium
AND num_doors=4
THEN vehicle =Sedan
MiniVan: IF vechicleType=automobile
AND size=medium
AND num_doors=3
THEN vechicle=MiniVan
SUV: IF vechicleType=automobile
AND size=large
AND num_doors=4
THEN vehicle=Sports_utility_vechicle
Cycle: IF num_wheels < 4
THEN vechicleType= cycle
Automobile: IF num_wheel=4
AND motor=yes
THEN vechicleType=automobile


Backward Channing
It is often called goal-directed inferencing, because a particular consequence or goal clause is evaluated first, and then we go backward through the rules.
- Unlike forward chaining, which uses rules to produce new information,
- Backward chaining uses rules to answer questions about whether a goal clause is true or not.
- Backward chaining is more focused than forward chaining, because it only processes rules that are relevant to the question. It is similar to how resolution is used in predicate logic.
- Backward chaining is used for advisory expert systems, where users ask questions and get asked leading questions to find an answer. Mycin is an example that used the backward chaining of bacterial infections in medical patients (Shortliffe 1976).
Backward Algorithm
1. Load the rule base into the inference engine, and any facts from the knowledge base into the working memory.
2. Add any additional initial data into the working memory.
3. Specify a goal variable for the inference engine to find.
4. Find the set of rules which refer to the goal variable in a consequent clause. That is, find all rules which set the value of the goal variable when they fire. Put each rule on the goal stack.
5. If the goal stack is empty, halt.
6. Take the top rule off the goal stack.
7. Try to prove the rule is true by testing all antecedent clauses to see if they are true. We test each antecedent clause in turn:


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .