09 Informed Search
09 Informed Search
09 Informed Search
• If the search space is big, blind search can simply take too long
to be practical, or can significantly limit how deep we're able to
look into the space.
Max
Cost
local minimum = looping
0
• Since what we're really looking for is the optimal path between
the initial state, and some goal state, a better measure of how
promising a state is, is the sum of the cost-so-far, and our best
estimate of the cost from there to the nearest goal state.
• For a state n, with a cost-so-far g(n), and a heuristic estimate
of the cost to goal of h(n), what we want is:
f(n) = g(n) + h(n)
• We could also use the sum of the distances of the tiles from
their goal positions i.e. the Manhattan distance. This would
give h2(n) = 8.
• In fact, it can easily be shown that h2 is both admissible and
more informed than h1.
– It cannot overestimate, since the number of moves we
need to make to get to the goal state must be at least the
sum of the distances of the tiles from their goal positions.
– It always gives a value at least as high as h1, since if a tile
is out of position, by definition it is at least one square away
from its goal position, and often more.