Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Artificial Intelligence Chapter 9 Heuristic Search Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Problem Solving Eriq Muhammad Adams
Problem Solving and Search Andrea Danyluk September 9, 2013.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
CMSC 471 Spring 2014 Class #4 Thu 2/6/14 Uninformed Search Professor Marie desJardins,
Blind Search1 Solving problems by searching Chapter 3.
Search Strategies Reading: Russell’s Chapter 3 1.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
1 Chapter 3 Solving Problems by Searching. 2 Outline Problem-solving agentsProblem-solving agents Problem typesProblem types Problem formulationProblem.
1 Blind (Uninformed) Search (Where we systematically explore alternatives) R&N: Chap. 3, Sect. 3.3–5.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Touring problems Start from Arad, visit each city at least once. What is the state-space formulation? Start from Arad, visit each city exactly once. What.
Artificial Intelligence for Games Uninformed search Patrick Olivier
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 461D)
September 26, 2012Introduction to Artificial Intelligence Lecture 7: Search in State Spaces I 1 After our “Haskell in a Nutshell” excursion, let us move.
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Review: Search problem formulation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence
Artificial Intelligence Chapter 3: Solving Problems by Searching
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Solving problems by searching
1 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.
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Chapter 4 Search in State Spaces Xiu-jun GONG (Ph. D) School of Computer Science and Technology, Tianjin University
CS 440 / ECE 448 Introduction to Artificial Intelligence Spring 2010 Lecture #3 Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l all learning algorithms,
Artificial Intelligence
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
A General Introduction to Artificial Intelligence.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Artificial Intelligence Chapter 10 Planning, Acting, and Learning Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Uninformed Search ECE457 Applied Artificial Intelligence Spring 2007 Lecture #2.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Search in State Spaces Problem solving as search Search consists of –state space –operators –start state –goal states A Search Tree is an efficient way.
Implementation: General Tree Search
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Solving problems by searching A I C h a p t e r 3.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
For Monday Read chapter 4 exercise 1 No homework.
Artificial Intelligence Chapter 7 Agents That Plan Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Artificial Intelligence Solving problems by searching.
Problem Solving by Searching
Searching for Solutions
Artificial Intelligence Chapter 10 Planning, Acting, and Learning
Artificial Intelligence Chapter 9 Heuristic Search
Artificial Intelligence Chapter 8 Uninformed Search
Artificial Intelligence Chapter 10 Planning, Acting, and Learning
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
Presentation transcript:

Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search

(c) 2009 SNU CSE Biointelligence Lab 2 Outline Search Space Graphs Breadth-First Search Depth-First Search Iterative Deepening

Search for the optimal weight in training a multi- layer perceptron Search for the optimal solution by evolutional computation ex) wall-following robot Search in State Spaces - Motivating Examples (c) 2009 SNU CSE Biointelligence Lab 3

Search in State Spaces - Motivating Examples Agents that plan  State + action  State-space search is used to plan action sequences  ex) moving a block (Ch. 7) (c) 2009 SNU CSE Biointelligence Lab 4 A state-space graph (The size of the search space is small)

(c) 2009 SNU CSE Biointelligence Lab 5 1. Formulating the State Space For huge search space we need  Careful formulation  Implicit representation of large search graphs  Efficient search method

(c) 2009 SNU CSE Biointelligence Lab 6 1. Formulating the State Space (Cont’d) e.g.) 8-puzzle problem  state description  3-by-3 array: each cell contains one of 1-8 or blank symbol  two choices of describing state transitions  8  4 moves: one of 1-8 numbers moves up, down, right, or left  4 moves: one black symbol moves up, down, right, or left start goal

(c) 2009 SNU CSE Biointelligence Lab 7  The number of nodes in the state-space graph:  9! ( = 362,880 )  State space for 8-puzzle is  Divided into two separate graphs : not reachable from each other 1. Formulating the State Space (Cont’d)

(c) 2009 SNU CSE Biointelligence Lab 8 2. Components of Implicit State-Space Graphs 3 basic components to an implicit representation of a state-space graph  Description of start node  Operators  Functions of state transformation  Models of the effects of actions  3. Goal condition  True-False valued function  A list of actual instances of state descriptions

(c) 2009 SNU CSE Biointelligence Lab 9 2. Components of Implicit State-Space Graphs Two broad classes of search process  Uninformed search:  no problem specific reason to prefer one part of the search space to any other  Apply operators to nodes without using any special knowledge about the problem domain  Heuristic search  existence of problem-specific information to help focus the search  Using evaluation functions  Ex) A* algorithm

Uninformed Search for Graphs Breadth-First Search Depth-First Search Iterative Deepening State-space search tree  Each node represents a problem or sub-problem  Root of tree: initial problem to be solved  Children of a node created by adding constraints (c) 2009 SNU CSE Biointelligence Lab 10

(c) 2009 SNU CSE Biointelligence Lab Breadth-First Search Procedure 1. Apply all possible operators (successor function) to the start node. 2. Apply all possible operators to all the direct successors of the start node. 3. Apply all possible operators to their successors till good node found.  Expanding : applying successor function to a node

(c) 2009 SNU CSE Biointelligence Lab 12 Figure 8.2 Breadth-First Search of the Eight-Puzzle

(c) 2009 SNU CSE Biointelligence Lab Breadth-First Search (Cont’d) Advantage  When a goal node is found, we have found a path of minimal length to the goal Disadvantage  Requires the generation and storage of a tree whose size is exponential to the depth of the shallowest goal node Uniform-cost search [Dijkstra 1959]  A variant of BFS: expansion by equal cost (not equal depth)  If costs of all arcs are identical, same as BFS

(c) 2009 SNU CSE Biointelligence Lab Depth-First or Backtracking Search Procedure  Generates the successor of a node just one at a time.  Trace is left at each node to indicate that additional operators can be applied there if needed.  At each node a decision must be made about which operator to apply first, which next, and so on.  Repeats this process until the depth bound.  chronological Backtrack when search depth is depth bound.

(c) 2009 SNU CSE Biointelligence Lab Depth-First or Backtracking Search (Cont’d) 8-puzzle example  Depth bound: 5  Operator order: left  up  right  down Figure 8.3 Generation of the First Few Nodes in a Depth-First Search

(c) 2009 SNU CSE Biointelligence Lab Depth-First or Backtracking Search (Cont’d)  The graph when the goal is reached in depth-first search

(c) 2009 SNU CSE Biointelligence Lab Depth-First or Backtracking Search (Cont’d) Advantage  Low memory size: linear in the depth bound  saves only that part of the search tree consisting of the path currently being explored plus traces Disadvantage  No guarantee for the minimal state length to goal state  The possibility of having to explore a large part of the search space

(c) 2009 SNU CSE Biointelligence Lab Iterative Deepening Advantage  Linear memory requirements of depth-first search  Guarantee for goal node of minimal depth Procedure  Successive depth-first searches are conducted – each with depth bounds increasing by 1

(c) 2009 SNU CSE Biointelligence Lab Iterative Deepening (Cont’d) Figure 8.5 Stages in Iterative-Deepening Search

(c) 2009 SNU CSE Biointelligence Lab Iterative Deepening (Cont’d) The number of expanded nodes  In case of breadth-first search  In case of iterative deepening search (in the worst case)

(c) 2009 SNU CSE Biointelligence Lab Iterative Deepening (Cont’d)  For large d the ratio N id /N df is b/(b-1)  For a branching factor of 10 and deep goals, 11% more nodes expansion in iterative-deepening search than breadth-first search  Related technique iterative broadening is useful when there are many goal nodes

(c) 2009 SNU CSE Biointelligence Lab Additional Readings and Discussion Various improvements in chronological backtracking  Dependency-directed backtracking [Stallman & Sussman 1977]  Backjumping [Gaschnig 1979]  Dynamic backtracking [Ginsberg 1993]