AI Tut Lab2 Search Slides
AI Tut Lab2 Search Slides
—
Artificial Intelligence
Tut/Lab week 2
COSC2129
RMIT Classification: Trusted
Outline
• Search
– Blind search
– Informed search
– Hands-on examples
• Assignment 1 part 1
• Q&A
RMIT Classification: Trusted
Course material
Activity 1
• What is Search?
– Search is an exploration of possibilities
RMIT Classification: Trusted
Activity 1
Why search?
Why search?
Why search
• 8 puzzle problem
RMIT Classification: Trusted
https://www.mdpi.com/1424-8220/18/9/3170
RMIT Classification: Trusted
Search Problems
Activity 2
Search Algorithms
Search Algorithms
RMIT Classification: Trusted
• Hand-on slides
RMIT Classification: Trusted
Practice
Practice
https://www.geeksforgeeks.org/search-algorithms-in-ai/
RMIT Classification: Trusted
Practice
• Solution
– Start from S, we can traverse to
A(h=9) or D(h=5). We choose D,
as it has the lower heuristic cost.
– From D, we can move to B(h=4)
or E(h=3). We choose E with a
lower heuristic cost.
– From E, we go to G(h=0). This
entire traversal is shown in the
search tree below.
RMIT Classification: Trusted
Practice
• A* Tree Search
– Heuristic: f(x) = g(x) + h(x)
• Here, h(x), the forward cost, is an estimate of the distance of
the current node from the goal node.
• And, g(x), the backward cost, is the cumulative cost of a
node from the root node.
• Admissibility:
Practice
https://www.geeksforgeeks.org/search-algorithms-in-ai/
RMIT Classification: Trusted
Practice
• Solution
RMIT Classification: Trusted
Recap
Search Algorithms
RMIT Classification: Trusted
Project 0
Activity 4
https://en.wikipedia.org/wiki/Pac-Man
RMIT Classification: Trusted
• Pacman in A1-1
– Question 1
– Question 2
– Question 3
– Question 4
– Question 5
– Question 6
– Question 7
– Question 8
http://ai.berkeley.edu/search.html
RMIT Classification: Trusted
Notes
RMIT Classification: Trusted
Notes
Question?