A * Algorithm
A* was a developed in 1968 by peter Hart, Nils nilssion & Betram Rapahal.
2) A* algorithm is a best first search algorithms.
3) Ti can be use to solve much kind of problems, A* search find the shortest path through a search space to goal state called A* search.
4) A* algorithm is also find the lowest cost path between the start node and goal node(state), where chaining from one state to another require some cost.
5) A* required Heuristic function evaluate the cost path that passes through particular state.
6) It id define by f(n)= g(n) + h(n)
Where g(n) - is the cost of the path from the start state to node N.
h(n)- Heuristic estimate or the cost of the path from node to goal.
7) The speed of execution of A* search is highly dependent on the accuracy of the heuristic algorithm tat is used to compute h(n).
![]() |
Fig 1 :Tree |
![]() |
Fig 2 :Expanded Node |
Algorithm:
1) Put the initial node on a list OPEN.
2) if (OPEN is empty) OR (OPEN=GOAL) terminate search.
3) Remove the first node from OPEN, call this node a.
4)IF(a= GOAL ) terminate search with success.
5) Else if node a has successors, generate all of them. Estimate the fitness number of the successor by totaling the evaluation function value and the cost function value. Sort the list by fitness number.
6) Name the new list as CLOSED.
7) Replace OPEN with CLOSED.
8) Goto sept 2
0 comments:
Post a Comment