The Wayback Machine - https://web.archive.org/web/20240721194450/https://www.geeksforgeeks.org/difference-between-backward-and-forward-chaining-2/
Open In App

Difference between Backward and Forward chaining

Last Updated : 14 Oct, 2022
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

Forward chaining: Forward chaining starts with the available data and user inference rules to extract more data from an end-user until the goal is reached. The reasoning applied to this information to obtain a logical conclusion. It is a system given one or more condition in which system search and the rule knowledge base each condition and rules that correspond to the condition are selected that rule can generate new condition from the conclusion. In which facts are held in a working memory and condition action rules represent actions to take when specified facts occur in working memory it may add and delete facts from working memory. 

Backward chaining: It is based on the decision the initial state is fetched, then it is called backward chaining. Backward chaining is also called as a decision-driven or goal-driven inference technique. In Backward chaining, Reasoning is done in the backward direction the system selects a goal state and reason in the backward direction. In which we select a goal state and rules and the goal state as conclusion establishes sub-goal to be satisfied for all the goal state to be true and there is a condition to satisfy all the sub-goals and check whether the given initial state matches with the established ones. 

Forward Chaining Backward chaining
Forward chaining suitable for breadth first search. Backward chaining is suitable for depth search.
It begins with initial facts. It begins with some hypothesis goal.
It may slow, because in which we tested all the rules. It may fast as compared to Forward chaining because it test fewer rules.
It provides small amount of data in which we use to store large amount of information. It provides small amount of data in which we store small information.
It is basically on primarily data driven. It is basically on goal driven.
It follows bottom-up reasoning. It follows Top down reasoning.
It contains small number of initial states but large number of conclusion. It contains small number of initial goals and large number of rules.
It is suitable for data collection problem like planning monitoring. It is suitable for hypothesis problem like diagnosis.
In which all data is available. In which data must be acquired.


Similar Reads

Difference Between && and ; chaining operators in Linux
Logical AND operator(&&): The second command will only execute if the first command has executed successfully i.e, its exit status is zero. This operator can be used to check if the first command has been successfully executed. This is one of the most used commands in the command line. Syntax: command1 && command2 command2 will exec
3 min read
Difference Between Store‑and‑Forward Switching and Cut‑Through Switching
Switching is a technique that is used to transmit data between the networks. It is achieved by using switches that are used to connect multiple LAN networks. Switches forward the data packets based on their MAC addresses. Switching is used to efficiently utilize the bandwidth of the network and reduce the collisions between the packets. Switching t
5 min read
Difference between Feedback and Feed Forward control systems
1. Feedback Control System : Feedback control system is basically a control system where the output depends on the generated feedback signal. Feedback control system is responsible for processing the feedback signals which further act as an input to the system. Feedback control system consist of different components such as resistors, transistors a
3 min read
Difference Between Forward List and List in C++
Forward List is a sequence container that allows unidirectional sequential access to its data. It contains data of the same type. In STL, it has been implemented using Singly Linked List, which requires constant time for insertion and deletion. Elements of the forward list are scattered in the memory and the ordering is maintained by associating ev
3 min read
ML | Multiple Linear Regression (Backward Elimination Technique)
Multiple Linear Regression is a type of regression where the model depends on several independent variables(instead of only on one independent variable as seen in the case of Simple Linear Regression). Multiple Linear Regression has several techniques to build an effective model namely: All-in Backward Elimination Forward Selection Bidirectional El
5 min read
NLP | Chunk Tree to Text and Chaining Chunk Transformation
We can convert a tree or subtree back to a sentence or chunk string. To understand how to do it - the code below uses the first tree of the treebank_chunk corpus. Code #1: Joining the words in a tree with space. C/C++ Code # Loading library from nltk.corpus import treebank_chunk # tree tree = treebank_chunk.chunked_sents()[0] print ("Tree
3 min read
Deep Neural net with forward and back propagation from scratch - Python
This article aims to implement a deep neural network from scratch. We will implement a deep neural network containing a hidden layer with four units and one output layer. The implementation will go from very scratch and the following steps will be implemented. Algorithm: 1. Visualizing the input data 2. Deciding the shapes of Weight and bias matrix
6 min read
Understanding Multi-Layer Feed Forward Networks
Let's understand how errors are calculated and weights are updated in backpropagation networks(BPNs). Consider the following network in the below figure. The network in the above figure is a simple multi-layer feed-forward network or backpropagation network. It contains three layers, the input layer with two neurons x1 and x2, the hidden layer with
7 min read
Difference between Difference Engine and Analytical Engine
Introduction: The development of computing technology has a rich history, with many inventions and innovations leading to the creation of the modern computer. Two such machines, the Difference Engine and Analytical Engine, were created by the English mathematician and inventor Charles Babbage in the 19th century. While these machines share some sim
7 min read
Difference between Voltage Drop and Potential Difference
Voltage Drop is defined as the decrease in the electric potential along the path of current that is flowing in an electric circuit. Voltage drop can be assigned at each point in the electric circuit that is proportional to the electrical elevation. The amount of energy delivered per second to any component in the circuit is equal to the voltage dro
4 min read
three90RightbarBannerImg