Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Heuristic functions evaluate the relative desirability path from the state at node
of expanding a node. n to a goal state
A* in Relationship to
A* Search
Other Search Algorithms
Minimizes the total path cost
The priority queue is sorted in increasing What if h( ) = 0 for every state?
order of this evaluation function: – Uniform-cost search (Dijkstra’s algorithm)
f(n) = g(n) + h(n)
What if we make g( ) = 0?
g(n): cost of path from start to node n
– Greedy search
h(n): estimate of cost of path from n to goal
f(n): estimated cost of the cheapest solution
A* combines the best properties of uniform-
through n cost and greedy search
i. If it hasn’t been generated before (i.e., it’s not in CLOSED), K (12) L ( 3) M(7) N(5) O(5) P(3) Q(10) R(8)
evaluate it, add it to OPEN, and record its parent. 3 5 4 6 4
ii. If it has been generated before, change the parent if this S (10) T(0) U (0)
new path is better than the previous one. In that case,
update the cost of getting to this node and to any
successors that this node may already have. Then add Numbers in parentheses are h(n)
node to CLOSED list. Numbers on edges are operator costs
CS 4633/6633 Artificial Intelligence CS 4633/6633 Artificial Intelligence
Contour interpretation of A* Admissible Heuristic Functions
If h(n) never overestimates the cost to reach
a goal it is called an admissible heuristic.
If h is admissible, f(n) never overestimates
Start f=10 f=12 f=14 f=16 Goal the actual cost of the best solution through n.
A* requires an admissible heuristic to have
the properties of completeness and optimality
Formal statement of
Completeness of A* completeness of A*
A* expands nodes in increasing order of f.
So it must eventually reach a goal state A* is complete on locally finite
unless there are infinitely many nodes with graphs (graphs with a finite
f(n) < f*, which is possible only if branching factor) provided there is
– there is a node with an infinite branching factor some positive constant δ such that
– there is a path with a finite path cost but an every operator costs at least δ.
infinite number of nodes along it.
A(21)
IDA* Complication
5 4