1
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
1
I nf ormed Search
CS 486/ 686 Univer sit y of Wat erloo May 10
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
2
Out line
- Using knowledge
– Heurist ics
- Best -f irst search
– Greedy best -f irst search – A* search – Ot her variat ions of A*
- Back t o heurist ics
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
3
Recall f rom last lect ure
- Uninf ormed search met hods expand nodes
based on “dist ance” f rom st art node
– Never look ahead t o t he goal – E.g. in unif orm cost search expand t he cheapest pat h. We never consider t he cost of get t ing t o t he goal – Advant age is t hat we have t his inf ormat ion
- But , we of t en have some addit ional knowledge
about t he problem
– E.g. in t raveling around Romania we know t he dist ances bet ween cit ies so can measure t he
- verhead of going in t he wrong direct ion
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
4
I nf ormed Search
- Our knowledge is of t en on t he merit of nodes
– Value of being at a node
- Dif f erent not ions of merit
– I f we are concerned about t he cost of t he solut ion, we might want a not ion of how expensive it is t o get f rom a st at e t o a goal – I f we are concerned wit h minimizing comput at ion, we might want a not ion of how easy it is t o get a st at e t o a goal – We will f ocus on cost of solut ion
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
5
I nf ormed search
- We need t o develop a domain specif ic
heurist ic f unct ion, h(n)
- h(n) guesses t he cost of reaching t he
goal f rom node n
– The heur ist ic f unct ion must be domain specif ic – We of t en have some inf ormat ion about t he problem t hat can be used in f or ming a heurist ic f unct ion (i.e. heur ist ics are domain specif ic)
cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
6
I nf ormed search
- I f h(n1)<
h(n2) t hen we guess t hat it is cheaper t o reach t he goal f rom n1 t han it is f rom n2
- We require