Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3.

Slides:



Advertisements
Similar presentations
Solving problems by searching
Advertisements

Announcements Course TA: Danny Kumar
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
January 26, 2003AI: Chapter 3: Solving Problems by Searching 1 Artificial Intelligence Chapter 3: Solving Problems by Searching Michael Scherger Department.
Artificial Intelligence Problem Solving Eriq Muhammad Adams
1 Chapter 3 Solving Problems by Searching. 2 Outline Problem-solving agentsProblem-solving agents Problem typesProblem types Problem formulationProblem.
1 Blind (Uninformed) Search (Where we systematically explore alternatives) R&N: Chap. 3, Sect. 3.3–5.
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.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
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.
CHAPTER 3 CMPT Blind Search 1 Search and Sequential Action.
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.
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.
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–
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
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?
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.
CS 440 / ECE 448 Introduction to Artificial Intelligence Spring 2010 Lecture #3 Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
1 Solving Problems by Searching (Blindly) R&N: Chap. 3 (many of these slides borrowed from Stanford’s AI Class)
1 Solving problems by searching 171, Class 2 Chapter 3.
Lecture 3: 18/4/1435 Searching for solutions. Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 3 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
Introduction to State Space Search
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.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
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
Introduction to Artificial Intelligence
Artificial Intelligence Lecture No. 6
Problem Solving by Searching
Artificial Intelligence
Russell and Norvig: Chapter 3, Sections 3.4 – 3.6
Solving problems by searching
Problem Solving and Searching
Artificial Intelligence
Problem Solving and Searching
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
Solving problems by searching
Solving problems by searching
Solving problems by searching
Instructor: Kris Hauser
Solving Problems by Searching
Solving problems by searching
Presentation transcript:

Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3

Search Problems2 Problem-Solving Agent environment agent ? sensors actuators

Search Problems3 Problem-Solving Agent environment agent ? sensors actuators Actions Initial state Goal test

Search Problems4 문제를 어떻게 탐색 문제로 단순한 탐색 길 찾기 추적하기 규칙 문제를 탐색으로 If 비교조건 then 행동 또는 결론 우선순위 없는 수많은 규칙에서 적합한 것 찾기 고차원적 문제 Meta-knowledge 에서 찾기

Search Problems5 State Space and Successor Function Actions Initial state Goal test state space successor function

Search Problems6 Initial State Actions Initial state Goal test state space successor function

Search Problems7 Goal Test Actions Initial state Goal test state space successor function

Search Problems8 Example: 8-puzzle Initial state Goal state

Search Problems9 Example: 8-puzzle

Search Problems10 Example: 8-puzzle Size of the state space = 9!/2 = 181, puzzle .65 x puzzle .5 x millions states/sec 0.18 sec 6 days 12 billion years

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

Search Problems12 Search Problem State space each state is an abstract representation of the environment the state space is discrete Initial state Successor function Goal test Path cost

Search Problems13 Search Problem State space Initial state: usually the current state sometimes one or several hypothetical states (“what if …”) Successor function Goal test Path cost

Search Problems14 Search Problem State space Initial state Successor function: [state  subset of states] an abstract representation of the possible actions Goal test Path cost

Search Problems15 Search Problem State space Initial state Successor function Goal test: usually a condition sometimes the description of a state Path cost

Search Problems16 Search Problem State space Initial state Successor function Goal test Path cost: [path  positive number] usually, path cost = sum of step costs e.g., number of moves of the empty tile

Search Problems17 Search of State Space

Search Problems18 Search of State Space

Search Problems19 Search State Space

Search Problems20 Search of State Space

Search Problems21 Search of State Space

Search Problems22 Search of State Space  search tree

Search Problems23 Simple Agent Algorithm Problem-Solving-Agent 1. initial-state  sense/read state 2. goal  select/read goal 3. successor  select/read action models 4. problem  (initial-state, goal, successor) 5. solution  search(problem) 6. perform(solution)

Search Problems24 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

Search Problems25 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

Search Problems26 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

Search Problems27 실제 n-queen 문제 Neural, Genetic 또는 Heuristic 방법으로 잘 해결 최악의 경우에는 처리 불가능 실제 n 이 커지면 답이 매우 많으므로 간단한 Heuristics 로도 답을 쉽게 찾음  따라서 n 이 커도 답을 잘 찾는다고 해서 인공지능 접근방법이 문제를 해결한다는 증거는 아님  그러나 많은 실제 문제는 알고리즘에서 이야기하는 최악의 경우로는 잘 가지 않음  더구나 대부분 우리가 원하는 답은 최적이 아니라 실제 활용해서 도움이 되는, feasible solution 을 원하므로 인공지능 기법이 효과적으로 이용될 수 있음

Search Problems28 Example: Robot navigation What is the state space ?

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

Search Problems30 Example: Robot navigation

Search Problems31 Example: Robot navigation

Search Problems32 Example: Robot navigation Cost of one step = ???

Search Problems33 Example: Robot navigation

Search Problems34 Example: Robot navigation

Search Problems35 Example: Robot navigation Cost of one step: length of segment

Search Problems36 Example: Robot navigation

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

Search Problems38 Example: Assembly Planning

Search Problems39 Example: Assembly Planning

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

Search Problems41 Search Problem Formulation Real-world environment  Abstraction

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

Search Problems43 Search Problem Formulation Real-world environment  Abstraction Validity:  Can the solution be executed?  Does the state space contain the solution?

Search Problems44

Search Problems45

Search Problems46

Search Problems47

Search Problems48 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?

Search Problems49 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 Problems50 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

Search Problems51 Problem Variants One or several initial states One or several goal states The solution is the path or a goal node Any, or the best, or all solutions

Search Problems52 Important Parameters Number of states in state space 8-puzzle  181, puzzle .65 x puzzle .5 x queens  2, queens  There exist techniques to solve N-queens problems efficiently! Stating a problem as a search problem is not always a good idea!

Search Problems53 Important Parameters Number of states in state space Size of memory needed to store a state

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

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

Search Problems56 Task EnvironmentObservableDeterministicEpisodicStaticDiscreteAgents Crossword puzzleFullyDeterministicSequentialStaticDiscreteSingle Chess with a clockFullyStrategicSequentialSemiDiscreteMulti PokerPartiallyStrategicSequentialStaticDiscreteMulti BackgammonFullyStochasticSequentialStaticDiscreteMulti Taxi drivingPartiallyStochasticSequentialDynamicContinuousMulti Medical diagnosisPartiallyStochasticSequentialDynamicContinuousSingle Image-analysisFullyDeterministicEpisodicSemiContinuousSingle Part-picking robotPartiallyStochasticEpisodicDynamicContinuousSingle Refinery controllerPartiallyStochasticSequentialDynamicContinuousSingle Interactive English tutorPartiallyStochasticSequentialDynamicDiscreteMulti Figure 2.6 Examples of task environments and their characteristics.

Search Problems57 Summary Problem-solving agent State space, successor function, search Examples: 8-puzzle, 8-queens, route finding, robot navigation, assembly planning Assumptions of basic search Important parameters

Search Problems58 Future Classes Search strategies Blind strategies Heuristic strategies Extensions Uncertainty in state sensing Uncertainty action model On-line problem solving