Algorithms for Exploration

Slides:



Advertisements
Similar presentations
Problem solving with graph search
Advertisements

Heuristic Search Methods Methods that use a heuristic function to provide specific knowledge about the problem: Heuristic Functions Hill climbing Beam.
The A* Algorithm Héctor Muñoz-Avila. The Search Problem Starting from a node n find the shortest path to a goal node g ?
Heuristics Some further elaborations of the art of heuristics and examples.
State Space 3 Chapter 4 Heuristic Search. Three Algorithms Backtrack Depth First Breadth First All work if we have well-defined: Goal state Start state.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.4) January, 14, 2009.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Graphs.
Using Search in Problem Solving
Using Search in Problem Solving
5-Nov-2003 Heuristic Search Techniques What do you do when the search space is very large or infinite? We’ll study three more AI search algorithms: Backtracking.
CISC220 Fall 2009 James Atlas Nov 13: Graphs, Line Intersections.
Graphs Chapter 28 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
Dijkstra’s Algorithm and Heuristic Graph Search David Johnson.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Dijkstra’s Algorithm. 2 Shortest-path Suppose we want to find the shortest path from node X to node Y It turns out that, in order to do this, we need.
GRAPHS
For Monday Read chapter 4, section 1 No homework..
Searches Algorithms for Exploration. Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
CSE 373 Data Structures and Algorithms
Review: Tree search Initialize the frontier using the starting state
Thinking about Algorithms Abstractly
Graph Algorithms BFS, DFS, Dijkstra’s.
CSE (c) S. Tanimoto, 2002 Search Algorithms
Discrete Math 2 Weighted Graph Search Tree
Unweighted Shortest Path Neil Tang 3/11/2010
CS120 Graphs.
The A* Algorithm Héctor Muñoz-Avila.
Refresh and Get Ready for More
Greedy Algorithms / Dijkstra’s Algorithm Yin Tat Lee
A* Path Finding Ref: A-star tutorial.
CSE 373: Data Structures and Algorithms
Lecture 13 CSE 331 Oct 1, 2012.
Chapter 22: Elementary Graph Algorithms I
CSE 373: Data Structures and Algorithms
Yan Shi CS/SE 2630 Lecture Notes
Graphs Part 2 Adjacency Matrix
Artificial Intelligence
Pruned Search Strategies
Blay Whitby 2003 Search Blay Whitby 2003
Lecture 12 CSE 331 Sep 26, 2011.
CSE 373: Data Structures and Algorithms
Heuristic Search Methods
Algorithms Lecture # 29 Dr. Sohail Aslam.
Backtracking and Branch-and-Bound
CPSC 322 Introduction to Artificial Intelligence
Weighted Graphs & Shortest Paths
Lecture 11 CSE 331 Sep 21, 2017.
Lecture 12 CSE 331 Sep 22, 2014.
CSE (c) S. Tanimoto, 2002 State-Space Search
EMIS 8374 Search Algorithms Updated 9 February 2004
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Informed Search Idea: be smart about what paths to try.
Graphs.
Lecture 11 CSE 331 Sep 22, 2016.
Graphs.
State-Space Searches.
Graphs.
State-Space Searches.
CSE (c) S. Tanimoto, 2004 State-Space Search
Graphs.
Lecture 15 CSE 331 Oct 4, 2010.
CSE (c) S. Tanimoto, 2004 Search Algorithms
State-Space Searches.
Informed Search Idea: be smart about what paths to try.
EMIS 8374 Search Algorithms Updated 12 February 2008
Presentation transcript:

Algorithms for Exploration Searches Algorithms for Exploration

Graphs How do we find the shortest path from NY to LA?

Graphs Graph representation: Nodes or Vertices : places you can be Edges : routes between them

Graphs Graphs can represent any problem with connected states: How do I turn cat into dog?

Graphs Examples:

Breadth First Search Explore all paths of length 1, then all paths of length 2, then all paths of length 3

BFS – Optimal Paths Optimal Paths

Edge Weights Edge Weights : Cost of taking a particular edge

Edge Weights Edge Weights : Cost of taking a particular edge Optimal path may not have fewest edges:

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

Best First Search Best First Search Optimal path

Best First Search Best First Search Optimal path Impossibly large number of paths to worry about Given 20 branches per node:

Heuristic Heuristic : rule of thumb – guesstimation Heuristic Search : Use a heuristic to guide your search – pick particular paths to explore first Heurisitc adds "expected future cost" to each possible path

Sliding Puzzle http://mypuzzle.org/sliding

Sliding Puzzle State – where the tiles are Edge – switch blank with neighbor

Sliding Puzzle Goal: Fewest moves Each move costs 1

Sliding Puzzle Goal: Fewest moves Each move costs 1 Heuristic : each out of place piece is 1 more cost Total estimated cost = moves so far + pieces out of place http://computerscience.chemeketa.edu/cs160Reader/NineAlgorithms/SearchAI/HeuristicSearch.html

TicTacToe & Chess & Go

Game Difficulty https://www.youtube.com/watch?v=SUbqykXVx0A https://www.youtube.com/watch?v=5oXyibEgJr0