CPSC 322, Lecture 7 Slide 1
He Heur uristic c Sea earc rch h
Com
- mputer Science c
cpsc sc322, Lecture 7 7 (Te Text xtboo
- ok
k Chpt 3.6)
May ay, 2 23, 2 2017
He Heur uristic c Sea earc rch h Com omputer Science c cpsc - - PowerPoint PPT Presentation
He Heur uristic c Sea earc rch h Com omputer Science c cpsc sc322, Lecture 7 7 (Te Text xtboo ook k Chpt 3.6) May ay, 2 23, 2 2017 CPSC 322, Lecture 7 Slide 1 Co Cour urse se Ann nnou ounc ncem emen ents ts
CPSC 322, Lecture 7 Slide 1
May ay, 2 23, 2 2017
CPSC 322, Lecture 7 Slide 2
If yo you ar are c confused on b bas asic s sear arch al algorith thm, different se t sear arch strategies….. Check lear arning goal als at at th the e end of lectu
Giuseppe : Fri 830-930, my office CICSR 105
CPSC 322, Lecture 7 Slide 3
Inked S Slides
t the end o
ach lectu ture I I r revi vise/clean an-up th the s slides. Adding comments, improving writing… make sure you check th them o
CPSC 322, Lecture 7 Slide 4
CPSC 322, Lecture 7 Slide 5
CPSC 322, Lecture 7 Slide 6
Complete Optimal T ime Space DFS N N O(bm) O(mb) BFS Y Y O(bm) O(bm) IDS Y Y O(bm) O(mb) LCFS Y Costs > 0 Y Costs >=0 O(bm) O(bm)
CPSC 322, Lecture 7 Slide 7
CPSC 322, Lecture 7 Slide 8
CPSC 322, Lecture 6 Slide 9
CPSC 322, Lecture 7 Slide 10
CPSC 322, Lecture 7 Slide 1 1
Definition (search heuristic) A search heuristic h(n) is an estimate of the cost of the shortest path from node n to a goal node.
CPSC 322, Lecture 7 Slide 12
Definition (ad admissible heuristi tic) A search heuristic h(n) is admissible if it is never an overestimate of the cost from n to a goal.
h(n).
CPSC 322, Lecture 3 Slide 13
CPSC 322, Lecture 3 Slide 14
CPSC 322, Lecture 3 Slide 15
CPSC 322, Lecture 3 Slide 16
cost is the distance, we can use the straight-line distance from n to the closest goal as the value of h(n).
CPSC 322, Lecture 6 Slide 17
CPSC 322, Lecture 3 Slide 18
CPSC 322, Lecture 3 Slide 19
tile's current position and its position in the solution
1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
CPSC 322, Lecture 7 Slide 20
You identify relaxed version of the problem:
Robot: the agent can move through walls Drive ver: the agent can move straight 8puzzle: (1) tiles can move anywhere (2) tiles can move to any adjacent square
less constrained problem!)
CPSC 322, Lecture 7 Slide 21
solve as the original problem!
Robot: al allowing the agent to move through walls. Optimal solution to this relaxed problem is Manhattan distance Driver: al allowing the agent to move straight. Optimal solution to this relaxed problem is straight-line distance 8puzzle: (1) tiles can an m move ve an anyw ywhere Optimal solution to this relaxed problem is number of misplaced tiles (2) tiles can move to any adjacent square….
CPSC 322, Lecture 3 Slide 22
Current node Goal node
CPSC 322, Lecture 8
CPSC 322, Lecture 8 Slide 24
d=12 IDS = 3,644,035 paths A*(h1) = 227 paths A*(h2) = 73 paths d=24 IDS = too many paths A*(h1) = 39,135 paths A*(h2) = 1,641 paths
CPSC 322, Lecture 3 Slide 25
CPSC 322, Lecture 3 Slide 26
CPSC 322, Lecture 7 Slide 27
CPSC 322, Lecture 7 Slide 28