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

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Knowledge Representation
Advertisements

Algorithm Design Techniques
Informed Search Algorithms
An Introduction to Artificial Intelligence
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 ?
A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
Problem Solving: Informed Search Algorithms Edmondo Trentin, DIISM.
Greedy best-first search Use the heuristic function to rank the nodes Search strategy –Expand node with lowest h-value Greedily trying to find the least-cost.
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.
Solving Problem by Searching
Quiz 4-26-’07 Search.
Part2 AI as Representation and Search
Search Techniques MSc AI module. Search In order to build a system to solve a problem we need to: Define and analyse the problem Acquire the knowledge.
Search in AI.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Mahgul Gulzai Moomal Umer Rabail Hafeez
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
Game Playing CSC361 AI CSC361: Game Playing.
Structures and Strategies for State Space Search
Structures and Strategies for State Space Search
1 search CS 331/531 Dr M M Awais A* Examples:. 2 search CS 331/531 Dr M M Awais 8-Puzzle f(N) = g(N) + h(N)
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
Robotics Versus Artificial Intelligence. Search. SearchSearch “All AI is search” “All AI is search”  Game theory  Problem spaces Every problem is a.
Pathfinding Algorithms Josh Palmer Rachael Beers.
CIS 310: Visual Programming, Spring 2006 Western State College 310: Visual Programming Othello.
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.
Problem-solving agents
Dijkstra’s Algorithm and Heuristic Graph Search David Johnson.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
MIDPOINT FORMULA. Sometimes you need to find the point that is exactly between two other points. This middle point is called the "midpoint" which is the.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
Heuristic Search In addition to depth-first search, breadth-first search, bound depth-first search, and iterative deepening, we can also use informed or.
1 CO Games Development 1 Week 11 Search Methods Gareth Bellaby.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
1 Solving problems by searching 171, Class 2 Chapter 3.
Neural Heuristics For Problem Solving: Using ANNs to Develop Heuristics for the 8-Puzzle by Bambridge E. Peterson.
Intelligent Control Methods Lecture 4: Searching in State Space Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Problem solving What is problem solving? Weak and strong methods.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
CSCI 4310 Lecture 2: Search. Search Techniques Search is Fundamental to Many AI Techniques.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
The A* and applications to Games Sources: My own Joseph Siefers presentation 2008.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
HEURISTIC SEARCH 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games 4.4Complexity.
Introduction to State Space Search
STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
CSCI 4310 Lecture 4: Search 2 – Including A*. Book Winston Chapters 4,5,6.
Representation and Search The function of a representation is to capture the critical features of the problem domain –and make the information accessible.
Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.
Review: Tree search Initialize the frontier using the starting state
Heuristic Search A heuristic is a rule for choosing a branch in a state space search that will most likely lead to a problem solution Heuristics are used.
Schedule for next 2 weeks
CSE (c) S. Tanimoto, 2002 Search Algorithms
More Recursion.
Algorithms for Exploration
Finding Heuristics Using Abstraction
The A* Algorithm Héctor Muñoz-Avila.
CS 4100 Artificial Intelligence
A* Path Finding Ref: A-star tutorial.
Informed search algorithms
Blay Whitby 2003 Search Blay Whitby 2003
Algorithms Lecture # 29 Dr. Sohail Aslam.
Knowledge Representation
The Shortest Path Algorithm
Midterm Review.
CSE (c) S. Tanimoto, 2004 Search Algorithms
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Presentation transcript:

Searches Algorithms for Exploration

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

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

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

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

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

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

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

Sliding Puzzle 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

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

TicTacToe & Chess

Game Difficulty

Towers of Hanoi

Towers of Hanoi

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