Chapter03b Informed Search
Chapter03b Informed Search
p Best-first search
n Greedy best-first search
n A* search
p Heuristic Functions
n Relaxed problems
n Pattern database
p Implementation:
p Order the nodes in the fringe in decreasing order
of desirability
p Special cases:
n greedy best-first search
n A* search
52nd St
S
51st St G
50th St
10th Ave
9th Ave
8th Ave
2nd Ave
3rd Ave
7th Ave
6th Ave
5th Ave
4th Ave
52nd St
S
51st St G
50th St
10th Ave
9th Ave
8th Ave
2nd Ave
3rd Ave
7th Ave
6th Ave
5th Ave
4th Ave
52nd St
S G
51st St
50th St
10th Ave
9th Ave
8th Ave
2nd Ave
3rd Ave
7th Ave
6th Ave
5th Ave
4th Ave
52nd St S h=2
h=5
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
50th St
9th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
50th St
9th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
8th Ave
7th Ave
6th Ave
5th Ave
8th Ave
7th Ave
6th Ave
5th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
DONE!
Heuristic Search Jane Hsu 36
What Would Dijkstra Have Done?
(5 blocks)
52nd St S
51st St G
50th St
49th St
48th St
47th St
9th Ave
8th Ave
7th Ave
6th Ave
5th Ave
4th Ave
Heuristic Search Jane Hsu 37
Admissible Heuristics
p A heuristic h(n) is admissible if for every node n,
h(n) ≤ h*(n), where h*(n) is the true cost to
reach the goal state from n.
p h1(S) = ?
p h2(S) = ?
p
Heuristic Search Jane Hsu 46
Admissible Heuristics
E.g., for the 8-puzzle:
p h1(S) = ? 8
p h2(S) = ? 3+1+2+2+2+3+3+2 = 18
Heuristic Search Jane Hsu 47
Dominance
p If h2(n) ≥ h1(n) for all n (both admissible)
p then h2 dominates h1
p h2 is better for search
p