Presentation is loading. Please wait.

Presentation is loading. Please wait.

Searches Algorithms for Exploration. Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?

Similar presentations


Presentation on theme: "Searches Algorithms for Exploration. Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?"— Presentation transcript:

1 Searches Algorithms for Exploration

2 Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?

3 Graphs Graphs can also represent state changes – How do I turn cat into dog?

4 Graph Algorithms Many paths in a graph, how do we find the right one?

5 Graph Algorithms Many paths in a graph, how do we find the right one? Search

6 Best First Search – Maintain list of "towns I know I can reach" – Always explore shortest remaining path – Stop when path to goal is shortest remaining path

7 Heuristic Heuristic : rule of thumb – guesstimation Sometimes we can't give an exact answer, to what is best, but can estimate

8 Applying Search to a Problem 4 Steps: 1) Design your state representation for the problem 2) Define the set of possible transformations that change the state 3) Define your state evaluation function Heuristic 4) Construct the state search tree

9 Sliding Puzzle http://mypuzzle.org/sliding State – where the tiles are Transformations – switch blank with neighbor Heuristic – – 1 pt for each move so far – 1 pt for each out of place block

10 Sliding Puzzle Heuristic – – 1 pt for each move so far – 1 pt for each out of place block Start:Goal:

11 TicTacToe & Chess https://www.youtube.com/watch?v=KFSVZlkHHmM#t=44

12 Game Difficulty

13 Towers of Hanoi http://www.mathsisfun.com/games/towerofhanoi.html

14 Towers of Hanoi

15 1) State: 2) Transformations – move one number 3) Heuristic – 1pt for each move 1 pt for each out of place disk 1 2 3


Download ppt "Searches Algorithms for Exploration. Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?"

Similar presentations


Ads by Google