BFS Algorithm
BFS Algorithm
BFS Algorithm
Algorithm
Uniformed Search Algorithm
• Uninformed search algorithms which looked
through search space for all possible solutions
of the problem without having any additional
knowledge about search space.
• But informed search algorithm contains an array
of knowledge such as how far we are from the
goal, path cost, how to reach to goal node, etc.
• This knowledge help agents to explore less
to the search space and find more
efficiently the goal node.
Heuristic Function
• Heuristic is a function which is used in Informed
Search, and it finds the most promising path. It takes
the current state of the agent as its input and
produces the estimation of how close agent is from
the goal.
• The heuristic method, however, might not always give
the best solution, but it guaranteed to find a good
solution in reasonable time.
• Heuristic function estimates how close a state is to the
goal. It is represented by h(n), and it calculates the cost
of an optimal path between the pair of states. The
value of the heuristic function is always positive.
Heuristic Function
• Admissibility of the heuristic function is given
as:
f(n)= g(n).