Difference between Forward and backward chaining in Pega
Introduction In this post we will see how to configure a declare expression rule in Pega. It is mainly used in computing property value based on expression.This rule comes under declarative category.It executes declarative and hence there is no need to call these rules manually. We can just configure the rules and no need to … Show How to configure declare expression in Pega Read More » Difference between Backward and Forward Chaining. Improve Article Save Article Like Article
Improve Article Save Article Forward Chaining and Backward Chaining are the two most important strategies in the field of Artificial Intelligence and lie in the Expert System Domain of AI. Inference Engine: Forward Chaining:
Backward Chaining:
Difference between Forwarding Chaining and Backward Chaining: Forward ChainingBackward Chaining1.When based on available data a decision is taken then the process is called as Forward chaining.Backward chaining starts from the goal and works backward to determine what facts must be asserted so that the goal can be achieved.2.Forward chaining is known as data-driven technique because we reaches to the goal using the available data.Backward chaining is known as goal-driven technique because we start from the goal and reaches the initial state in order to extract the facts.3.It is a bottom-up approach.It is a top-down approach.4.It applies the Breadth-First Strategy.It applies the Depth-First Strategy.5.Its goal is to get the conclusion.Its goal is to get the possible facts or the required data.6.Slow as it has to use all the rules.Fast as it has to use only a few rules.7.It operates in forward direction i.e it works from initial state to final decision.It operates in backward direction i.e it works from goal to reach initial state.8.Forward chaining is used for the planning, monitoring, control, and interpretation application.It is used in automated inference engines, theorem proofs, proof assistants and other artificial intelligence applications.My Personal Notes arrow_drop_up Save Please Login to comment...Here, we can observe that whenever the cost or quantity changes the total prices gets calculated based on the expression used in declare expression rule. 2.Backward Chaining: It is exactly opposite to farward chaining.There are many ways by which backward chaining gets triggered. Total Price = Cost * Quantity let us consider the same example that we have taken above, whenever the total price is null the declare expression checks for the input properties. (Cost & quantity).Let us consider cost is calculated as Cost = Best Price - Discount Now declare expression tries to get the cost value if it is null, it is like going backward & backward until it gets all the required values to calculate the target property. Following is the difference between the forward chaining and backward chaining:
What is forward & backward chaining?Forward chaining is known as data-driven technique because we reaches to the goal using the available data. Backward chaining is known as goal-driven technique because we start from the goal and reaches the initial state in order to extract the facts.
What is the difference between forward and backward commands?Answer. Explanation: The forward reasoning is data-driven approach while backward reasoning is a goal driven.
What is forward chaining used for?Forward chaining is used to break down the logic sequence and work through it from beginning to end by attaching each step after the previous one is solved.
What is the purpose of backward chaining?Backward chaining is the logical process of inferring unknown truths from known conclusions by moving backward from a solution to determine the initial conditions and rules. Backward chaining is often applied in artificial intelligence (AI) and may be used along with its counterpart, forward chaining.
|