Informed Search Flashcards
Informed Search
use domain knowledge to guide selection of the best path to continue searching
heuristics
informed guesses
heuristic function, h(n)
uses domain specific information in some way
is computable from the current state description
estimates - “goodness” of node, closeness of n to goal, cost of minimal cost path from node to goal
meanings of different h(n)s
h(n) >= 0 for all nodes; h(n) close to 0 means we think n is close to goal state
best-first search
sort nodes in the frontier list by increasing values of an evaluation function, f(n), that incorporates domain-specific information
greedy best first search
use as an evaluation function f(n) = h(n) sorting nodes in the frontier by increasing values of f; selects the node to expand that is believed to be the closest (smallest f) to goal node
Is greedy best-first complete?
No
Is greedy best-first optimal/admissable?
No
Algorithm A Search
f(n) = g(n) + h(n) where g(n) is minimum cost path from start to current node; g term adds a BFS component to the evaluation function; nodes in frontier are ranked by the estimated cost of a solution where g(n) is the cost from start to node n, h(n) is the estimated cost from node n to a goal
Algorithm A* Search
f(n) = g(n) + h(n) but for all nodes in the search space h(n)
What is an admissible heuristic
guarantees that a node on the optimal path cannot look so bad so that it is never considered
Is A* complete?
Yes
Is A* optimal/admissible?
Yes
When should A* stop?
only when a goal is removed from the priority queue (same rule as uniform cost search); a* with h() = 0 is UCS
a heuristic is consistent (monotonic) if
for every node n and every successor n’ of n, the estimated cost of reaching the goal from n is no greater than the step cost of getting to n’ plus the estimated cost of reaching the goal from n’
c(n, n’) >= h(n) - h(n’)