Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.

Slides:



Advertisements
Similar presentations
Artificial Intelligent
Advertisements

Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
Additional Topics ARTIFICIAL INTELLIGENCE
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Artificial Intelligence Problem Solving Eriq Muhammad Adams
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.
Blind Search by Prof. Jean-Claude Latombe
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
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.
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.
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.
Lets remember about Goal formulation, Problem formulation and Types of Problem. OBJECTIVE OF TODAY’S LECTURE Today we will discus how to find a solution.
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
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
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
Artificial Intelligence (CS 461D)
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
CHAPTER 3 CMPT Blind Search 1 Search and Sequential Action.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Searching the search space graph
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
Artificial Intelligence Chapter 3: Solving Problems by Searching
1 Lecture 3 Uninformed Search. 2 Complexity Recap (app.A) We often want to characterize algorithms independent of their implementation. “This algorithm.
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?
1 Lecture 3 Uninformed Search
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
Lecture 3 Uninformed Search.
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.
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.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Prof. Carla P. Gomes Module: Search I (Reading R&N: Chapter.
Lecture 3: Uninformed Search
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
A General Introduction to Artificial Intelligence.
Chapter 3 Solving Problems by Searching. Abstraction  Representing the Real World Want to buy a full-scale model of the Real WorldWant to buy a full-scale.
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;
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).
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 3 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Pengantar Kecerdasan Buatan
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Problem Solving as Search. Problem Types Deterministic, fully observable  single-state problem Non-observable  conformant problem Nondeterministic and/or.
Problem Solving by Searching
Implementation: General Tree Search
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.
WEEK 5 LECTURE -A- 23/02/2012 lec 5a CSC 102 by Asma Tabouk Introduction 1 CSC AI Basic Search Strategies.
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.
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Solving problems by searching
Problem Solving and Searching
Problem Solving and Searching
Presentation transcript:

Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

Introduction Let’s review a goal-based agent called a “problem-solving agent” They have two characteristics: 1.Find sequences of actions to reach a goal. 2.They are uninformed.

Preliminaries We need to define two things: Goal Formulation Define objectives Problem Formulation Define actions and states

Problem Formulation Four components: 1.The initial state 2.Actions (successor function) 3.Goal test 4.Path Cost

Problem Formulation Comments: a. Removing detail from a representation is called “abstraction”. b. Good abstractions are key to solving problems. c. A solution is a path from initial state to goal.

Example

Other Examples Toy Problems: Vacuum World 8-puzzle 8-queens problem

Other Examples Real Problems Route-Finding Problem Robot Navigation Automatic Assembly Sequencing Protein Design Internet Searching

Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

Solutions We search through a search tree We expand new nodes to grow the tree There are different search strategies Nodes contain the following: state parent node action path cost depth

Search Tree Initial state Expanded nodes

Performance Four elements of performance: Completeness (guaranteed to find solution) Optimality (optimal solution?) Time Complexity Space Complexity

Performance Complexity requires three elements: a.Branching factor b b.Depth of the shallowest goal node d c.Maximum length of any path m

Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

Breadth-First Search Root is expanded first Then all successors at level 2. Then all successors at level 3, etc. Properties:  Complete (if b and d are finite)  Optimal (if path cost increases with depth)  Complexity is O(b d+1 )

Search

Implemented as a FIFO Queue

Uniform-Cost Search Like breadth-first search Expand node with lowest path cost. Properties:  Complete (if b and d are finite)  Optimal (if path cost increases with depth)  Could be worse than breadth first search

Search

Depth-First Search Expand the deepest node at the bottom of the tree. Properties:  Incomplete  suboptimal  Time complexity is O(b m )  Space complexity is only O(bm)

Search Failure in infinite spaces…

Search

Depth-Limited Like depth-first search but with depth limit L. Properties:  Incomplete (if L < d)  Nonoptimal (if L > d)  Time complexity is O(b L )  Space complexity is O(bL)

Iterative Deepening A combination of depth and breadth-first search. Gradually increases the limit L Properties:  Complete (if b and d are finite)  Optimal if path cost increases with depth  Time complexity is O(b d )

Search

Bidirectional Search Run two searches – one from the initial state and one backward from the goal. We stop when the two searches meet. Motivation:  Time complexity: (b d/2 + b d/2 ) < b d Searching backwards not easy.

Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

Avoiding Repeated States In some problems repeated states are unavoidable (example 8-Puzzle) Solution: Store all nodes already generated on a hash table.

Avoiding Repeated States

Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

Partial Information Knowledge of states or actions is incomplete. a.Sensorless problems b.Contingency Problems c.Exploration Problems

Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary

To search we need goal and problem formulation. A problem has initial state, actions, goal test, and path function. Performance measures: completeness, optimality, time and space complexity.

Summary Uninformed search has no additional knowledge of states: breadth and depth-first search, depth-limited, iterative deepening, bidirectional search. It is important to eliminate repeated states. In partially observable environments, one can deal with belief states.