4 - informed search Flashcards
Informed search
give the algorithm “hints” about the desirability of different states - choose the most promising expansion
Greedy best-first search
Expand the node that has the lowest value of the heuristic function h(n)
(isnt optimal, as it may get stuck in loops)
A*search
f(n)= g(n)+ h(n)
f(n) = total estimated cost of path through node n
g(n) = cost so far to reach node n
h(n) = estimated cost from n to goal
avoid expanding paths that are already expensive
Weighted A* search
take an admissable heuristic, inflate it by α, adn then perform the search as usual
- Fewer nodes tend to get expanded, but the resulting solution may be suboptimal ( its cost will be at most α times the cost of the optimal solution)
Admissible heuristics
Admissible heuristics are used to estimate the cost of reaching the goal state in a search algorithm. Admissible heuristics never overestimate the cost of reaching the goal state. The use of admissible heuristics also results in optimal solutions as they always find the cheapest path solution.
Designing heuristic functions
The standard way to construct a heuristic function is to find a solution to a simpler problem, which is one with fewer constraints. A problem with fewer constraints is often easier to solve
Dominance
One heuristic, ha, is said to dominate another heuristic, hb, if the estimated goal distance for ha is greater than the estimated goal distance for hb for every node in the state space graph