27 Jan 2005
CS 3243 - Heuristics
27
Admissible heuristics
n
E.g., for the 8-puzzle:
n
h
1
(n)
= number of misplaced tiles
n
h
2
(n)
= total Manhattan distance
n
(i.e., no. of squares from desired location of each tile)
n
n
n
n
n
h
1
(S) = ?
8
n
h
2
(S) = ?
3+1+2+2+2+3+3+2 = 18