7 - Informed Search Flashcards
Define a heuristic function
Gives the cheapest estimate of getting from n to the goal
for n1 and n2 if h(n1) < h(n2) take h1
require that estimate of getting to goal is 0
What is Greedy Search?
Use f(n) = h(n)
Always expand lowest h value
Not complete/optimal - can lead astray
What is A* search?
Take into account cost of getting to a node from start node and estimate of getting to goal
f(n) = g(n)+h(n)
What is admissibility in heuristics?
A function h is admissible if it never over estimates the true cost of getting to the goal (optimistic)
What is consistency in heuristics?
Consistent/monotonic if the estimated cost of getting to goal from n is no greater than the step cost of getting to n’ plus the estimated cost of reaching the goal from n’:
h(n) <= c(n,a,n’)+h(n’)
n is every node
n’ every successor
a action
What is the optimality for A* search?
It will give an optimal for graph search if the heuristic is consistent
tree search if the heuristic is admissible
What is the effective branching factor?
A measure of efficiency for heuristics.
Expands N nodes and finds solutions at depth d then the EBF is the num of successors of each node having:
- each non-leaf has b successors
- leaf nodes are all at depth d
- Total number of nodes in the tree is N
then N = 1 +b + b^2 + … +b^d
A value of b close to one means search is focussed
How can weighted sum improve efficiency?
f(n) = w * g(n) + (1-w)*h(n) where w is a num between 0 and 1
What is hill climbing search?
- choose a start and set c to there
- search the neighbourhood of c
- choose best neighbour
- if best is better than c then update c
- repeat 2 to 4 until no further improve
What are the hill climbing drawbacks?
Local Maxima
Plateaus (flat areas)
Ridges (Long narrow hiltops).
Improved by random restart
What is Tabu Search?
Remember the last few visited points using a tabu list (think Taboo)
Steer away from Tabu List items (a queue of fixed length)
What is simulated annealing?
Annealing: Process of prepping a material to mould it. Heated then cooled. Particles move randomly but gradually settle
SA is a math model of the process
Describe the simulated annealing method
- t = 0
- random start point x
- set y to neighbour of x
- if y is better xt+1 = y
- else with probability min(1,1/(e^((f(y)-f(x]t)/T(t)))
- update t to t+1
- repeat 3 to 6 until end