Basic Search Procedure 1. Start with the start node (root of the search tree) and place in on the queue 2. Remove the front node in the queue and If the.

Slides:



Advertisements
Similar presentations
Solving problems by searching
Advertisements

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.
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
1 Lecture 3 Uninformed Search. 2 Uninformed search strategies Uninformed: While searching you have no clue whether one non-goal state is better than any.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
5-1 Chapter 5 Tree Searching Strategies. 5-2 Satisfiability problem Tree representation of 8 assignments. If there are n variables x 1, x 2, …,x n, then.
Blind Search1 Solving problems by searching Chapter 3.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
1 Tree Searching Strategies Updated: 2010/12/27. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these.
Uniform Cost Search Introduction to AI. Uniform cost search A breadth-first search finds the shallowest goal state and will therefore be the cheapest.
1 Lecture 3 Uninformed Search. 2 Uninformed search strategies Uninformed: While searching you have no clue whether one non-goal state is better than any.
Artificial Intelligence for Games Uninformed search Patrick Olivier
Feng Zhiyong Tianjin University Fall  datatype PROBLEM ◦ components: INITIAL-STATE, OPERATORS, GOAL- TEST, PATH-COST-FUNCTION  Measuring problem-solving.
Artificial Intelligence for Games Depth limited search Patrick Olivier
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
Review: Search problem formulation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence
Toy Problem: Missionaries and Cannibals
1 Tree Searching Strategies. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems becomes a tree.
Artificial Intelligence Chapter 3: Solving Problems by Searching
Problem Solving and Search in AI Heuristic Search
Blind Search-Part 2 Ref: Chapter 2. Search Trees The search for a solution can be described by a tree - each node represents one state. The path from.
Using Search in Problem Solving
Artificial Intelligence Methods Rao Vemuri Searching - 2.
1 Tree Searching Strategies. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems becomes a tree.
5-1 Chapter 5 Tree Searching Strategies. 5-2 Breadth-first search (BFS) 8-puzzle problem The breadth-first search uses a queue to hold all expanded nodes.
Solving problems by searching
Problem-solving agents
For Friday Finish chapter 3 Homework: –Chapter 3, exercise 6 –May be done in groups. –Clarification on part d: an “action” must be running the program.
Solving Problems by Searching
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
Solving Problems by Searching CPS Outline Problem-solving agents Example problems Basic search algorithms.
Heuristic Search In addition to depth-first search, breadth-first search, bound depth-first search, and iterative deepening, we can also use informed or.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
More advanced aspects of search Extensions of A*.
Problem-Solving by Searching Uninformed (Blind) Search Algorithms.
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Search exploring the consequences of possible actions.
Lecture 3: Uninformed Search
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
G5BAIM Artificial Intelligence Methods Graham Kendall Searching.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.
1 Solving problems by searching Chapter 3. Depth First Search Expand deepest unexpanded node The root is examined first; then the left child of the root;
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
1 search CS 331/531 Dr M M Awais REPRESENTATION METHODS Represent the information: Animals are generally divided into birds and mammals. Birds are further.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
More Binary Search Trees, Project 2 Bryce Boe 2013/08/06 CS24, Summer 2013 C.
Solving problems by searching A I C h a p t e r 3.
1 Tree Searching Strategies 2010/12/03. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.
For Monday Read chapter 4 exercise 1 No homework.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Solving problems by searching Chapter 3. Types of agents Reflex agent Consider how the world IS Choose action based on current percept Do not consider.
Solving problems by searching
G5AIAI – Introduction to AI
What to do when you don’t know anything know nothing
Breadth-First Searches
(1) Breadth-First Search  S Queue S
Heuristic Search Methods
Tree Searching Strategies
Presentation transcript:

Basic Search Procedure 1. Start with the start node (root of the search tree) and place in on the queue 2. Remove the front node in the queue and If the node is a goal node, then we are done; stop. If the node is a goal node, then we are done; stop. Otherwise expand the node  generate its children using the successor function (other states that can be reached with one move) Otherwise expand the node  generate its children using the successor function (other states that can be reached with one move) 3. Place the children on the queue according to the search strategy 4. Go back to step 2.

Search Strategies Search strategies differ based on the order in which new successor nodes are added to the queue Breadth-first  add nodes to the end of the queue Depth-first  add nodes to the front Uniform cost  sort the nodes on the queue based on the cost of reaching the node from start node

Breadth-First Search add nodes to the end of the queue

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: A 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: B I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: I E C D 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: E C D M K 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: C D M K F H 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: D M K F H N 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: M K F H N 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: K F H N O G 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: F H N O G 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: H N O G Q 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: N O G Q R T 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: O G Q R T P S 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: G Q R T P S 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: Q R T P S  DONE!!! Solution: A  I  M  G

Depth-First Search add nodes to the front of the queue

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: A 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: B I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: C D I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: N D I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: P S D I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: S D I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: D I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: I E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: M K E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: O G K E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: G K E 

Breadth-First Search A IBE CDMK N F H OG Q RT PS goal Queue: K E  DONE!!! Solution: A  I  M  G

Example: The 8-Puzzle States?integer location of tiles Operators? move blank left, right, up, down Goal Test?= goal state (given) Path Cost?One per move

We will assume that we can do repeated state checking (i.e., we will not generate nodes that have been previously expanded) Example: 8-Puzzle – Depth First Search

... Example: 8-Puzzle – Depth First Search