Introduction to Artificial Intelligence

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Part2 AI as Representation and 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.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
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.
Artificial Intelligence (CS 461D)
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
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]
Introduction to Artificial Intelligence Blind Search Ruth Bergman Fall 2004.
1 Solving Problems by Searching. 2 Terminology State State Space Initial State Goal Test Action Step Cost Path Cost State Change Function State-Space.
Problem Spaces & Search CSE 473. © Daniel S. Weld Topics Agents & Environments Problem Spaces Search & Constraint Satisfaction Knowledge Repr’n.
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?
Introduction to Artificial Intelligence Blind Search Ruth Bergman Fall 2002.
Heuristic Search Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
Solving Problems by Searching
Search Introduction to Artificial Intelligence COS302
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Artificial Intelligence
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
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;
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
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.
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.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
Problem Solving Agents
Last time: Problem-Solving
CSE 473 Artificial Intelligence Oren Etzioni
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
Artificial Intelligence
Russell and Norvig: Chapter 3, Sections 3.4 – 3.6
Quiz Oct
CS 188: Artificial Intelligence Spring 2007
SOLVING PROBLEMS BY SEARCHING
Problem Solving and Searching
What to do when you don’t know anything know nothing
EA C461 – Artificial Intelligence
Artificial Intelligence
Searching for Solutions
Heuristic Search Thank you Michael L. Littman, Princeton University for sharing these slides.
Problem Solving and Searching
CS 2710, ISSP 2160 Foundations of Artificial Intelligence
Depth-First Searches Introduction to AI.
Principles of Computing – UFCFA3-30-1
A General Backtracking Algorithm
Problem Spaces & Search
CPSC 322 Introduction to Artificial Intelligence
Informed Search Idea: be smart about what paths to try.
Problem Spaces & Search
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Informed Search Idea: be smart about what paths to try.
Search Strategies CMPT 420 / CMPG 720.
Lecture 4: Tree Search Strategies
Supplemental slides for CSE 327 Prof. Jeff Heflin
Presentation transcript:

Introduction to Artificial Intelligence Search Introduction to Artificial Intelligence Thank you Michael L. Littman, Princeton University for sharing these slides.

What’s AI? (to me) apply solve formulate Computers making decisions in real-world problems apply solve formulate

Search Problems Let S be the set of states (strings) Input: Initial state: s0 Neighbor generator, N: S  2S Goal function, G: S  {0,1}

Search Answer s1,…,sn such that: s1,…,sn  S for all 1in, si  N(si-1) G(sn) = 1

Examples We’re very impressed. Meaning? Rush Hour 8-puzzle Logistics 8-queens problem Logic puzzles Job-shop scheduling

Rush Hour Move cars forward and backward to “escape”

Search Version States: configurations of cars N(s): reachable states G(s): 1 if red car at gate

8-puzzle Slide tiles into order States: N(s): G(s): 6 4 2 7 8 1 3 5 6 4 2 7 8 1 3 5 6 4 2 7 8 1 3 5

Logistics Very sophisticated. What goes where when? Desert Storm logistics “paid for AI research”

8 Queens Puzzle No captures States: N(s): G(s):

Logic Puzzles Jody, who is an ape, wasn’t the ape who returned immediately after Tom and immediately before the animal who appeared in the movie with no rating. The only lions that were used in the movies were the one who was the third to return, the one who appeared in the R movie, and the one who appeared in “Luck”. …

Job-Shop Scheduling Industrial problem: Allocate machines and machinists to time slots Constraints on orders in which parts are serviced

Search Template fringe = {(s0, 0)}; /* initial cost */ markvisited(s0); While (1) { If empty(fringe), return failure; (s, c) = removemincost(fringe); If G(s) return s; Foreach s’ in N(s) if unvisited(s’) fringe = fringe U {(s’, cost(s’)}; }

Data Structures How implement this efficiently? removemincost-U-empty? markvisited-unvisited?

Vary Cost How does search behavior change with cost? cost(s’) = c + 1

Grid Example: BFS s0 G s0 G s0 G s0 G s0 G s0 G

Grid Example: DFS s0 G s0 G s0 G s0 G s0 G s0 G s0 G s0 G s0 G s0 G s0

How Evaluate? What makes one search scheme better than another? Completeness: Find solution? Time complexity: How long? Space complexity: Memory? Optimality: Find shortest path?

Depth vs. Breadth-first Let |T(s)|  b (branching factor), goal at depth d How implement priority queue? Completeness? Time complexity? Space complexity? Optimality?

BFS Completeness? Time complexity? Space complexity? Optimality? Yes O(bd) Space complexity? O(bd)  Optimality? yes

DFS Completeness? Time complexity? Space complexity? Optimality? Yes, assuming state space finite Time complexity? O(|S |), can do well if lots of goals Space complexity? O(n), n deepest point of search Optimality? No 

Depth-limited Search DFS, only expand nodes depth  l. Completeness? No, if l  d.  Time complexity? O(bl) Space complexity? O(l) Optimality? No 

Iterative Deepening Depth limited, increasing l. Completeness? Yes.  Time complexity? O(bd), even with repeated work!  Space complexity? O(d)  Optimality? Yes 

Bidirectional Search BFS in both directions Need N-1 How could this help? bl vs 2bl/2 What makes this hard to implement?

Which do you choose? 8-queens, neighbors of s add one queen to board

Which do you choose? Big grid, goal nearby

What to Learn How to express problems in the search framework The basic algorithms for search Strengths and weaknesses of the basic algorithms

Homework 1 (due 9/26) 1. Let BFS’ and DFS’ be versions of BFS and DFS that don’t check whether a state has been previously visited. Evaluate BFS’ and DFS’ on the four comparison criteria we discussed. 2. Consider the Rush Hour board from these notes. Assume a single move consists of sliding a car forward or backward some number of spaces. (a) Give an upper bound on the branching factor. (b) Assuming the solution is at depth 20, how many nodes will be searched? (c) Ignoring the search, how many states are in the search space? Give as tight an upper bound as you can.