Cs4811 Ch03 Search b Informed
Cs4811 Ch03 Search b Informed
Nilufer Onder
Department of Computer Science
Michigan Technological University
Outline
Best-first search
Greedy search
A∗ search
Heuristics
I Evaluation function
h(n) = estimate of cost from n to the closest goal
h is the heuristic function
I E.g., hSLD (n) = straight-line distance from n to Bucharest
I Greedy search expands the node that appears to be closest to
the goal
Greedy search example
Arad
After expanding Arad
Arad
Arad
Arad
Sibiu Bucharest
253 0
Properties of greedy search
Arad
366=0+366
After expanding Arad
Arad
Arad
Arad
Arad
646=280+366 671=291+380
Arad
646=280+366 671=291+380
G1
G2
h1 (S) = ??
h2 (S) = ??
Admissible heuristics
E.g., for the 8-puzzle:
h1 (n) = number of “misplaced tiles”
h2 (n) = total “Manhattan distance”
(i.e., no. of squares from desired location of each tile)
h1 (S) = 8
h2 (S) = 3+1+2+2+3+2+2+3 = 18
Dominance