What to do when you don’t know anything know nothing

Slides:



Advertisements
Similar presentations
Artificial Intelligent
Advertisements

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)
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.
Artificial Intelligence (CS 461D)
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
UnInformed Search What to do when you don’t know anything.
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
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.
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.
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department Read Russell & Norvig Sections (Also read Chapters 1 and 2 if.
Artificial Intelligence
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
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.
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.
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.
Artificial Intelligence Solving problems by searching.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
CSE 473 Artificial Intelligence Oren Etzioni
Introduction to Artificial Intelligence
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Uninformed Search Strategies
Artificial Intelligence (CS 370D)
Search Tuomas Sandholm Read Russell & Norvig Sections
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Uninformed Search Introduction to Artificial Intelligence
Prof. Dechter ICS 270A Winter 2003
Artificial Intelligence
Russell and Norvig: Chapter 3, Sections 3.4 – 3.6
Solving problems by searching
CS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Fall 2008
Problem Solving and Searching
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
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
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:

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

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.

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.

Uniform Cost Now assume edges have positive cost Storage = Priority Queue: scored by path cost or sorted list with lowest values first Select, add unchanged. 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.

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.

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 Until solution is found. 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 0 1 1 1 11 12 2 111 123 3 1111 1234 4 11111 12345

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 state on path Do not return to k recent states Do not return to any seen state Memory costs increase for all algorithms

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