CS 520: Introduction to Artificial Intelligence. Review

Similar documents
CS 520: Introduction to Artificial Intelligence. Lectures on Search

Solving Problem by Searching. Chapter 3

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents

Problem Solving and Searching

CS 380: Artificial Intelligence Lecture #3

Artificial Intelligence

Uninformed Search Strategies

Uninformed Search. Reading: Chapter 4 (Tuesday, 2/5) HW#1 due next Tuesday

Solving problems by searching

CS 8520: Artificial Intelligence

Uninformed Search. Problem-solving agents. Tree search algorithms. Single-State Problems

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Outline. Solving problems by searching. Problem-solving agents. Example: Romania

Search EECS 395/495 Intro to Artificial Intelligence

Search EECS 348 Intro to Artificial Intelligence

Chapter 3. A problem-solving agent is a kind of goal-based agent. It decide what to do by finding sequences of actions that lead to desirable states.

Solving problems by searching. Chapter 3

Solving problems by searching

Basic Search. Fall Xin Yao. Artificial Intelligence: Basic Search

Artificial Intelligence Uninformed search

ARTIFICIAL INTELLIGENCE (CSC9YE ) LECTURES 2 AND 3: PROBLEM SOLVING

Solving problems by searching

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

CS 4700: Foundations of Artificial Intelligence. Bart Selman. Search Techniques R&N: Chapter 3

Solving Problems by Searching

Problem solving and search

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

Solving problems by searching

ARTIFICIAL INTELLIGENCE SOLVING PROBLEMS BY SEARCHING. Chapter 3

Problem Solving and Search

AI: problem solving and search

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 19 January, 2018

Uninformed Search. Chapter 3

Artificial Intelligence Problem Solving and Uninformed Search

Solving Problems: Blind Search

Artificial Intelligence

AI: Week 2. Tom Henderson. Fall 2014 CS 5300

521495A: Artificial Intelligence

Chapter 2. Blind Search 8/19/2017

Problem solving and search

Chapter 3 Solving problems by searching

Multiagent Systems Problem Solving and Uninformed Search

Uninformed Search. Chapter 3. (Based on slides by Stuart Russell, Subbarao Kambhampati, Dan Weld, Oren Etzioni, Henry Kautz, and other UW-AI faculty)

CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on. Instructor: Wei-Min Shen

Why Search. Things to consider. Example, a holiday in Jamaica. CSE 3401: Intro to Artificial Intelligence Uninformed Search

A2 Uninformed Search

Example: The 8-puzzle. A2 Uninformed Search. It can be generalized to 15-puzzle, 24-puzzle, or. (n 2 1)-puzzle for n 6. Department of Computer Science

Search. (Textbook Chpt ) Computer Science cpsc322, Lecture 2. May, 10, CPSC 322, Lecture 2 Slide 1

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

Search. CS 3793/5233 Artificial Intelligence Search 1

UNINFORMED SEARCH. What to do if teammates drop? Still have 3 or more? No problem keep going. Have two or fewer and want to be merged?

DFS. Depth-limited Search

Announcements. Project 0: Python Tutorial Due last night

CSC 2114: Artificial Intelligence Search

ITCS 6150 Intelligent Systems. Lecture 3 Uninformed Searches

Chapter 3: Solving Problems by Searching

AGENTS AND ENVIRONMENTS. What is AI in reality?

CITS3001. Algorithms, Agents and Artificial Intelligence. Semester 1, 2015

Chapter3. Problem-Solving Agents. Problem Solving Agents (cont.) Well-defined Problems and Solutions. Example Problems.

A4B36ZUI - Introduction ARTIFICIAL INTELLIGENCE

Goal-Based Agents Problem solving as search. Outline

Informed search strategies (Section ) Source: Fotolia

Artificial Intelligence

CS486/686 Lecture Slides (c) 2015 P.Poupart

Artificial Intelligence

Problem solving and search

Outline. Best-first search

CS486/686 Lecture Slides (c) 2014 P.Poupart

Solving Problems by Searching

Vorlesung Grundlagen der Künstlichen Intelligenz

Solving Problems by Searching (Blindly)

Program of Study. Artificial Intelligence 1. Shane Torbert TJHSST

Computer Science and Software Engineering University of Wisconsin - Platteville. 3. Search (Part 1) CS 3030 Lecture Notes Yan Shi UW-Platteville

AGENTS AND ENVIRONMENTS. What is AI in reality?

CS 730/730W/830: Intro AI

Uninformed Search. Remember: Implementation of search algorithms

Informed (Heuristic) Search. Idea: be smart about what paths to try.

CS 151: Intelligent Agents, Problem Formulation and Search

Lecture 3 - States and Searching

Solving Problems by Searching

Solving Problems by Searching

A4B36ZUI - Introduction to ARTIFICIAL INTELLIGENCE

CPS 170: Artificial Intelligence Search

Solving Problems by Searching

Outline. Best-first search

Solving Problems by Searching

Last time: Problem-Solving

Robot Programming with Lisp

Set 2: State-spaces and Uninformed Search. ICS 271 Fall 2015 Kalev Kask

Solving problems by searching

Solving problems by searching

Search I. slides from: Padhraic Smyth, Bryan Low, S. Russell and P. Norvig

Blind (Uninformed) Search (Where we systematically explore alternatives)

Chapter 3: Informed Search and Exploration. Dr. Daisy Tang

CS 4100 // artificial intelligence

Artificial Intelligence Search: summary&exercises. Peter Antal

Uninformed Search Strategies AIMA

Problem Solving and Search in Artificial Intelligence

Artificial Intelligence

CMU-Q Lecture 2: Search problems Uninformed search. Teacher: Gianni A. Di Caro

Transcription:

CS 520: Introduction to Artificial Intelligence Prof. Louis Steinberg Lecture 2: state spaces uninformed search 1 What is AI? A set of goals Review build an artificial intelligence useful subgoals A class of problems characteristics common to these goals A set of methods commonly useful in solving problems like these A set of people 2

Agents Act in the world Sensors, percepts Effectors, actions Goals Environment Review 3 Reflex Reflex with State Planning with Goals Planning with Utility Classes of agent: Percepts The Current World State-Action Rules Actions 4

Reflex Reflex with State Planning with Goals Planning with Utility Classes of agent: Percepts The Current World Memory State-Action Rules Actions 5 Reflex Reflex with State Planning with Goals Planning with Utility Classes of agent: Percepts The Current World Memory The Desired World Action-Result Rules Actions 6

Reflex Reflex with State Planning with Goals Planning with Utility Classes of agent: Percepts The Current World Memory A Desired World A Desired World A Desired World Action-Result Rules Actions 7 Given: A set of states An initial state A State Space A set of operators mapping states to states Preconditions of each operator Effects of operator (Cost of each operator) A set of goal states 8

A State Space Find: A (minimal cost) sequence of operators that transforms the initial state into a goal state. Kinds of cost search cost: cost to find solution path cost: cost to execute operators once the sequence is known solution cost (or value): cost (value) of specific goal state 9 Lectures on Search Formulation of search problems. State Spaces Uninformed (blind) search algorithms. Informed (heuristic) search algorithms. Constraint Satisfaction Problems. Game Playing Problems. 10

A State Space Illustration 11 Two classes of problems Space exists, search only: A start state. A graph G = (States,Edges). Possibly represented by adjacency matrix. Possibly represented by adjacency lists. A list of goal states. Generate space while searching: A start state. A set of operators. A goal test. 12

The 8-puzzle 13 The 8-puzzle Problem formulation as search: states: location of each tile as well as blank tile. operators: blank moves left, right, up, or down. goal test: state matches goal state shown. path cost: each move costs 1; path cost=path length. 14

The vacuum world 15 The vacuum world Problem formulation as search: states: one of the 8 shown above. operators: move left, move right, or suck. goal test: no dirt left in any square. path cost: each action costs 1; path cost=path length. 16

The vacuum world (no sensors) This is a multiple state problem. 17 The 8-queens problem 18

Water Jug Problem 19 Towers of Hanoi Problem 20

Route (Path) finding 21 Solving the Route (Path) finding problem by search Initial state Arad expanded Sibu expanded 22

Lectures on Search Formulation of search problems. Uninformed (blind) search algorithms. Informed (heuristic) search algorithms. Constraint Satisfaction Problems. Game Playing Problems. 23 Multiple paths Complications Cycles Infinite paths 24

Search Method Evaluation Criteria Correctness: Are all ``solutions'' found by the algorithm correct? Completeness: Does the algorithm find a solution, whenever one exists? Termination: Is the algorithm guaranteed to terminate on all problems? Solution Optimality: Is the algorithm guaranteed to find optimal solutions? Complexity: How much time and space does the algorithm use? Algorithm Optimality: Does the algorithm use as little time or space as possible? 25 Depth: d Branching factor: b Costs Time Space Depth First b d d Breadth First b d b (d-1) 26

Other Pros & Cons Depth First Cycles & Infinite Paths Incomplete Shortest Path first No Recursive Yes Breadth First Complete Yes No 27 Limited Depth Depth-first Search Lddfs(node, limit) If solution(node) return node; If (limit == 0) then return false else loop for child in expand(node) {result = Ldffs(child, limit-1); if result then return result} Completeness of breadth-first up to depth limit 28

Iterative Deepening Low space cost, recursive like depth first Complete, shortest first like breadth first Small constant-factor extra time cost Algorithm: Loop for d from 1 to infinity Do a limited-depth depth-first to depth d If solution found, return it Cost: d*b 1 + (d-1)b 2 + b 3 + + b d which is O(b d ), and in fact not much more than b d 29