Informed Algorithms
Informed Algorithms
This section shows how an informed search strategy—one that uses domain-specific hints about the
location of goals can find solutions more efficiently than an uninformed strategy.The hints come in
the form of a heuristic function, denoted h(n):
h(n) = estimated cost of the cheapest path from the state at node n to a goal state.
1) We are starting from A , so from A there are direct path to node B( with heuristics value of 32 ) ,
from A to C ( with heuristics value of 25 ) and from A to D( with heuristics value of 35 ) .
2) So as per best first search algorithm choose the path with lowest heuristics value , currently C has
lowest value among above node . So we will go from A to C.
3) Now from C we have direct paths as C to F( with heuristics value of 17 ) and C to E( with
heuristics value of 19) , so we will go from C to F.
4) Now from F we have direct path to go to the goal node G ( with heuristics value of 0 ) , so we will
go from F to G.
5) So now the goal node G has been reached and the path we will follow is A->C->F->G
disregarding the edge weights in a weighted graph because only the heuristic value is considered.
A∗ search
The most common informed search algorithm is A∗ search (pronounced “A-star search”), a best-first
search that uses the evaluation function
f (n) = g(n)+h(n)
where g(n) is the path cost from the initial state to node n, and h(n) is the estimated cost of
the shortest path from n to a goal state, so we have
f (n) = estimated cost of the best path that continues from n to a goal.
AO* algorithm
Best-first search is what the AO* algorithm does. The AO* method divides any
given difficult problem into a smaller group of problems that are then
resolved using the AND-OR graph concept. AND OR graphs are specialized
graphs that are used in problems that can be divided into smaller problems. The
AND side of the graph represents a set of tasks that must be completed to achieve
the main goal, while the OR side of the graph represents different methods for
accomplishing the same main goal.