UnInformed Search What to do when you don’t know anything.

Slides:



Advertisements
Similar presentations
BEST FIRST SEARCH - BeFS
Advertisements

Artificial Intelligent
Review: Search problem formulation
Uninformed search strategies
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
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.
Uninformed (also called blind) search algorithms) This Lecture Chapter Next Lecture Chapter (Please read lecture topic material before.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
G5BAIM Artificial Intelligence Methods Graham Kendall Blind Searches.
Blind Search1 Solving problems by searching Chapter 3.
Search Strategies Reading: Russell’s Chapter 3 1.
1 Blind (Uninformed) Search (Where we systematically explore alternatives) R&N: Chap. 3, Sect. 3.3–5.
Implementation and Evaluation of Search Methods. Use a stack data structure. 1. Push root node of tree on the stack. 2. Pop the top node off the stack.
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 (CS 461D)
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Review: Search problem formulation
1 Solving Problems by Searching. 2 Terminology State State Space Initial State Goal Test Action Step Cost Path Cost State Change Function State-Space.
1 Lecture 3 Uninformed Search. 2 Complexity Recap (app.A) We often want to characterize algorithms independent of their implementation. “This algorithm.
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.
CS 188: Artificial Intelligence Spring 2006 Lecture 2: Queue-Based Search 8/31/2006 Dan Klein – UC Berkeley Many slides over the course adapted from either.
Solving problems by searching
1 Lecture 3 Uninformed Search
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.
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.
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.
How are things going? Core AI Problem Mobile robot path planning: identifying a trajectory that, when executed, will enable the robot to reach the goal.
Artificial Intelligence
For Monday Read chapter 4, section 1 No homework..
Lecture 3: Uninformed Search
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
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 strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Fahiem Bacchus © 2005 University of Toronto 1 CSC384: Intro to Artificial Intelligence Search II ● Announcements.
Solving problems by searching A I C h a p t e r 3.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
AI Adjacent Fields  Philosophy:  Logic, methods of reasoning  Mind as physical system  Foundations of learning, language, rationality  Mathematics.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Introduction to Artificial Intelligence
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Uninformed Search Strategies
Artificial Intelligence (CS 370D)
Uninformed Search Introduction to Artificial Intelligence
Prof. Dechter ICS 270A Winter 2003
Russell and Norvig: Chapter 3, Sections 3.4 – 3.6
CS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Fall 2008
Problem Solving and Searching
What to do when you don’t know anything know nothing
EA C461 – Artificial Intelligence
Artificial Intelligence
Searching for Solutions
Problem Solving and Searching
Principles of Computing – UFCFA3-30-1
Problem Spaces & Search
Problem Spaces & Search
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
Search Strategies CMPT 420 / CMPG 720.
Basic Search Methods How to solve the control problem in production-rule systems? Basic techniques to find paths through state- nets. For the moment: -
Presentation transcript:

UnInformed Search What to do when you don’t know anything

What to know Be able to execute (by hand) an algorithm for a problem Know the general properties Know the advantages/disadvantages Know the pseudo-code Believe you can code it

Assumptions of State-Space Model Fixed number of operators Finite number of operators Known initial state Known behavior of operators Perfect Information Real World  Micro World What we can do.

Concerns State-space: tree vs graph? –Are states repeated? Completeness: finds a solution if one exists Time Complexity Space Complexity: Major problem Optimality: finds best solution Assume Directed Acyclic graphs (DAGS) –no cycles Later: adding knowledge

General Search Algorithm Current State = initial state While (Current State is not the Goal) –Expand State compute all successors/ apply all operators –Store successors in Memory –Select a next State –Set Current state to next If current state is goal: success, else failure

Derived Search Algorithms Algorithm description incomplete What is “store in memory” What is “memory” What is “select” Different choices yield different methods.

Abstract tree for evaluation Let T be a tree where each node has b descendants. B is the branching factor. Suppose that a goal lies at depth d. If goal is root, depth of solution is 0. Unlike in theory, tree usually generated dynamically.

Depth First Storage = Stack Add = push Select = Pop Not complete (if infinite or cycles, otherwise complete) Not optimal Time: O(b^m), space O(bm) where m is max depth.

Ex. DFS for Permutations of 3 Initial State: Next State: add to front, no repeats Stack: { } Next Stack: {,, } Next Stack:,,, } etc Trick: encode states with legal operators –  How much memory? O(n^2)

Breadth First Memory = Queue Store = add to end Select = take from the front Properties: –complete, –optimal: min of steps Time/Space Complexity = –1+b+b^2…+b^d = [b^(d+1) -1 ]/ (b-1) = O(b^d) Problem: Exponential memory Size.

Ex. BFS for Permutations of 3 Init: Queue: { } Next Queue {,, } Next Queue {,,, } So what’s the big deal? Space n!*n for n! search.

Uniform Cost Now assume edges have positive cost Storage = Priority Queue: scored by path cost –or sorted list with lowest values first Select- choose minimum cost add – maintains order Check: careful – only check minimum cost for goal Complete & optimal Time & space like Breadth.

Uniform Cost Example Root – A cost 1 Root – B cost 3 A -- C cost 4 B – C cost 1 C is goal state. Why is Uniform cost optimal? –Expanded does not mean checked node.

Watch the queue R/0 // Path/path-cost R-A/1, R-B/3 R-B/3, R-A-C/5: – Note: you don’t test expanded node –You put it in the queue R-B-C/4, R-A-C/5

Depth Limited Depth First search with limit = l Algorithm change: states not expanded if at depth k. Complete : no Time: O(b^k) Space: O(b*l) Complete if solution <=l, but not optimal.

Iterative Deepening Set l = 0 Repeat –Do depth limited search to depth l –l = l+1 Until solution is found. Complete & Optimal Time: O(b^d) Space: O(bd) when goal at depth d

Comparison Breadth vs ID Branching Factor 10 Depth Breadth ID

Bidirectional Won’t work with most goal predicates Needs identifiable goal states Needs reversible operators. Needs a good hashing functions to determine if states are the same. Then: O(b^d/2) time if bf is b in both directions.

Bidirectional Search Simple Case: Initial State = {Start State+ Goal State} Operators: –forward from start, backwards from goal Standard: Breadth in both directions Check: newly generated states intersect fringe. (can be expensive)

Repeated States Occurs whenever reversible operators Occurs in many problems Improvements –Do not return to k recent states: cheap and non-effective – Do not return to state on path: cycle checking: Cheap and effective –Do not return to any seen state: exponential Memory costs increase for all algorithms

Algorithm Effects Cycles: –DFS incomplete: fix cycle checking –IDS incomplete: fix cycle checking –BFS still complete, but increased cost

Grid World Start (0,0) Goal (8,8) Legal moves: up, down, left, right What happens to algorithms?