Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm by Prof. Jean-Claude.

Slides:



Advertisements
Similar presentations
Solving problems by searching
Advertisements

Announcements Course TA: Danny Kumar
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Artificial Intelligence Problem Solving Eriq Muhammad Adams
Blind Search by Prof. Jean-Claude Latombe
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Feng Zhiyong Tianjin University Fall  datatype PROBLEM ◦ components: INITIAL-STATE, OPERATORS, GOAL- TEST, PATH-COST-FUNCTION  Measuring problem-solving.
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
A RTIFICIAL I NTELLIGENCE Problem-Solving Solving problems by searching.
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
1 Search Problems (Where reasoning consists of exploring alternatives) R&N: Chap. 3, Sect. 3.1–
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
Artificial Intelligence Chapter 3: Solving Problems by Searching
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?
Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3.
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
Solving problems by searching
Problem-solving agents
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Solving problems by searching This Lecture Read Chapters 3.1 to 3.4 Next Lecture Read Chapter 3.5 to 3.7 (Please read lecture topic material before and.
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.
Solving Problems by Searching CPS Outline Problem-solving agents Example problems Basic search algorithms.

Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department Read Russell & Norvig Sections (Also read Chapters 1 and 2 if.
1 Solving problems by searching This Lecture Chapters 3.1 to 3.4 Next Lecture Chapter 3.5 to 3.7 (Please read lecture topic material before and after each.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
1 Solving problems by searching 171, Class 2 Chapter 3.
Lecture 2: 11/4/1435 Problem Solving Agents Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Artificial Intelligence
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).
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Introduction to State Space Search
© 2006 Pearson Addison-Wesley. All rights reserved 6-1 Chapter 6 Recursion as a Problem- Solving Technique.
Solving problems by searching
Solving Problems by Searching 제 4 주 강의. Problem solving agent What to do by finding sequences of actions that lead to desirable states the current state.
G5AIAI Introduction to AI
1 Solving problems by searching Chapter 3. 2 Outline Problem types Example problems Assumptions in Basic Search State Implementation Tree search Example.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
Search I Tuomas Sandholm Read Russell & Norvig Sections (Also read Chapters 1 and 2 if you haven’t already.) Next time we’ll cover topics related.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3 CS121 – Winter 2003.
Solving problems by searching Chapter 3. Types of agents Reflex agent Consider how the world IS Choose action based on current percept Do not consider.
1 Search Problems (Where we see problems as the exploration of alternatives) R&N: Chap. 3, Sect. 3.1–
Solving problems by searching
Constraint satisfaction
Lecture 2: Problem Solving using State Space Representations
ECE 448 Lecture 4: Search Intro
Introduction to Artificial Intelligence
Artificial Intelligence Lecture No. 6
Problem Solving by Searching
Artificial Intelligence
Solving problems by searching
Problem Solving and Searching
Artificial Intelligence
Problem Solving and Searching
CS 2710, ISSP 2160 Foundations of Artificial Intelligence
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
Solving problems by searching
Solving problems by searching
Solving problems by searching
Solving Problems by Searching
Solving problems by searching
Presentation transcript:

Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm by Prof. Jean-Claude Latombe

Why Search? In many tasks, we know what a solution looks like, but do not have an algorithm that produces a solution. Goal + preferences Search is a general problem solving technique for this kind of situations. Search Problem: Input: Initial State + Goal (utility) + actions (state transitions) Output: A sequence of actions to reach the goal.

Example: Travel Task

Clean House Task

Vacuum Cleaner Space

Search Problem State space Initial state Successor function Goal test Path cost

Example: 8-queens Place 8 queens in a chessboard so that no two queens are in the same row, column, or diagonal. A solutionNot a solution

Example: 8-queens Formulation #1: States: any arrangement of 0 to 8 queens on the board Initial state: 0 queens on the board Successor function: add a queen in any square Goal test: 8 queens on the board, none attacked  64 8 states with 8 queens

Example: 8-queens Formulation #2: States: any arrangement of k = 0 to 8 queens in the k leftmost columns with none attacked Initial state: 0 queens on the board Successor function: add a queen to any square in the leftmost empty column such that it is not attacked by any other queen Goal test: 8 queens on the board  2,067 states

Example: Robot navigation What is the state space ?

Example: Robot navigation Cost of one horizontal/vertical step = 1 Cost of one diagonal step =  2

Example: Robot navigation

Cost of one step = ???

Example: Robot navigation

Cost of one step: length of segment

Example: Robot navigation

Example: Assembly Planning Initial state Goal state Successor function: Merge two subassemblies Complex function: it must find if a collision-free merging motion exists

Example: Assembly Planning

Assumptions in Basic Search The environment is static The environment is discretizable The environment is observable The actions are deterministic  open-loop solution

Search Problem Formulation Real-world environment  Abstraction Validity:  Can the solution be executed?

Search Problem Formulation Real-world environment  Abstraction Validity:  Can the solution be executed?  Does the state space contain the solution? Usefulness  Is the abstract problem easier than the real- world problem? Without abstraction an agent would be swamped by the real world

Search Problem Variants One or several initial states One or several goal states The solution is the path or a goal node In the 8-puzzle problem, it is the path to a goal node In the 8-queen problem, it is a goal node Any, or the best, or all solutions

Multi-state Search In vacuum problem, what if we don’t have sensors to tell us whether the floor is clean or not, and which room are we in?

Important Parameters Number of states in state space Size of memory needed to store a state Running time of the successor function

Applications Route finding: airline travel, telephone/computer networks Pipe routing, VLSI routing Pharmaceutical drug design Robot motion planning Video games

Summary Problem-solving agent State space, successor function, search Examples: Travel Task, house cleaning, 8-queens, robot navigation, assembly planning Assumptions of basic search Important parameters