Professional Documents
Culture Documents
INFORMED SEARCH
ENG P KADEBU
Informed Search
Best-first search
Greedy best-first search
A* search
Review: Tree search
function Tree-SEARCH(problem,fringe) return a solution or failure
closed an empty set
fringe INSERT(MAKE-NODE(INITIAL-STATE[problem]), fringe))
loop do
if EMPTY?(fringe) then return failure
node REMOVE-FIRST(fringe)
if GOAL-TEST[problem] applied to STATE[node] succeeds
then return SOLUTION(node)
if STATE[node] is not in closed then
add STATE[node] to closed
fringe INSERT-ALL(EXPAND(node, problem), fringe)
Implementation:
Order the nodes in fringe in decreasing order of desirability
Special cases:
greedy best-first search
A* search
Best-first Search Algorithm
Romania with step costs in km
Greedy best-first search
Consistent heuristics
h1(S) = ?
h2(S) = ?
Admissible heuristics
h1(S) = ? 8
h2(S) = ? 3+1+2+2+2+3+3+2 = 18
Dominance
2 8 3
m(B)
2 8 3
m(C)
2 8 3
m(D) d(x)
The 8-puzzle with
1 6 4 =5 1 4 =3 1 6 4 =5
7 5 7 6 5 7 5
=1 optimistic heuristics.
2 8 3 2 3 2 8 3 A, ..., N: states;
m(E) m(F) m(G) d(x)
1 4 =3 1 8 4 =3 1 4 =4 =2 m = misplaced;
7 6 5 7 6 5 7 6 5
d = depth;
8 3 2 8 3 2 3 2 3 f(x) = m(x) + d(x).
m(H) m(I) m(J) m(K) d(x)
2 1 4 =3 7 1 4 =4 1 8 4 =2 1 8 4 =4 =3
7 6 5 6 5 7 6 5 7 6 5
1 2 3
m(L) d(x)
8 4 =1 =4
7 6 5
1 2 3 1 2 3
m(M) m(N) d(x)
8 4 =0 7 8 4 =2 =5
7 6 5 6 5
:
Tutorial Question