Chapter 3 Solving Problems by Searching. Abstraction  Representing the Real World Want to buy a full-scale model of the Real WorldWant to buy a full-scale.

Slides:



Advertisements
Similar presentations
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
Advertisements

Additional Topics ARTIFICIAL INTELLIGENCE
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
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.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
1 Chapter 3 Solving Problems by Searching. 2 Outline Problem-solving agentsProblem-solving agents Problem typesProblem types Problem formulationProblem.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
1 Lecture 3: 18/4/1435 Uninformed search strategies Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Touring problems Start from Arad, visit each city at least once. What is the state-space formulation? Start from Arad, visit each city exactly once. What.
Artificial Intelligence for Games Uninformed search Patrick Olivier
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
EIE426-AICV 1 Blind and Informed Search Methods Filename: eie426-search-methods-0809.ppt.
Feng Zhiyong Tianjin University Fall  datatype PROBLEM ◦ components: INITIAL-STATE, OPERATORS, GOAL- TEST, PATH-COST-FUNCTION  Measuring problem-solving.
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Artificial Intelligence for Games Depth limited search Patrick Olivier
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.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Review: Search problem formulation
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.
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
Artificial Intelligence Chapter 3: Solving Problems by Searching
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.
For Friday Finish chapter 3 Homework: –Chapter 3, exercise 6 –May be done in groups. –Clarification on part d: an “action” must be running the program.
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.
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.
CS 440 / ECE 448 Introduction to Artificial Intelligence Spring 2010 Lecture #3 Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam.
Artificial Intelligence
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Prof. Carla P. Gomes Module: Search I (Reading R&N: Chapter.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
1 Solving problems by searching 171, Class 2 Chapter 3.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
A General Introduction to Artificial Intelligence.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.
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 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).
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
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.
1 search CS 331/531 Dr M M Awais REPRESENTATION METHODS Represent the information: Animals are generally divided into birds and mammals. Birds are further.
Pengantar Kecerdasan Buatan
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Problem Solving by Searching
Solving problems by searching A I C h a p t e r 3.
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.
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.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Uninformed Search ECE457 Applied Artificial Intelligence Spring 2008 Lecture #2.
Artificial Intelligence Solving problems by searching.
Problem Solving by Searching
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Solving Problems by Searching
Presentation transcript:

Chapter 3 Solving Problems by Searching

Abstraction  Representing the Real World Want to buy a full-scale model of the Real WorldWant to buy a full-scale model of the Real World Way too complex!Way too complex!  Simplify the Problem  Throw-out unnecessary information This is where much of the real intelligence happensThis is where much of the real intelligence happens

Problem Solving Agents  Goal Formulation What does the agent need to accomplish right now.What does the agent need to accomplish right now.  Problem Formulation What States and Actions to considerWhat States and Actions to consider This is where we need abstractionThis is where we need abstraction  Search for Solution Given states and actionsGiven states and actions What actions should be taken to achieve goalWhat actions should be taken to achieve goal

Well-defined Problems and Solutions  Well-defined Problems Initial StateInitial State ActionsActions  Successor Function Goal TestGoal Test Path CostPath Cost  Step Cost  Well-defined Solution Sequence of ActionsSequence of Actions

How do I get to Bucharest?  Problem Formulation State SpaceState Space  Map of Romania

Road Map of Romania

How do I get to Bucharest?  Problem Formulation State SpaceState Space  Map of Romania Initial StateInitial State  At(Arad) ActionsActions  Go(Arad,Zerind), Go(Iasi,Vaslui), … Goal TestGoal Test  At(Bucharest) Path CostPath Cost  Sum of individual step costs  Well-defined Solution Sequence of ActionsSequence of Actions

8-Puzzle Problem

How do I solve an 8-puzzle?  Problem Formulation StatesStates  Position of each tile Initial StateInitial State  Random Position ActionsActions  Move tiles  Move empty tile Goal TestGoal Test  Are all of the tiles in the correct position Path CostPath Cost  step cost is 1  Well-defined Solution Sequence of ActionsSequence of Actions

8-Queens

How do I Solve an n-Queens Problem?  Problem Formulation StatesStates  Position of each queen Initial StateInitial State  Random Position  Empty Board ActionsActions  Move(Queen,Square)  Place(Queen,Square) Goal TestGoal Test  No Queen Attacks another Path CostPath Cost  None  Well-defined Solution Placement of each QueenPlacement of each Queen

Real-World Problems  Robot Navigation  VLSI Layout  Internet Searching

Search Algorithms  Simulated Exploration of State Space  Off-line  Create Search Tree  Simple Search Algorithm 1. Start with initial state1. Start with initial state 2. Expand state by applying appropriate actions2. Expand state by applying appropriate actions 3. Check Goal Test3. Check Goal Test  If False: Goto 2 4. Return Path From Initial State To Goal4. Return Path From Initial State To Goal

States vs. Nodes  State Physical ConfigurationPhysical Configuration  Node IncludesIncludes DepthDepth Parent NodeParent Node Etc.Etc.

Road Map of Romania

Representation  One possible node representation StateState Parent pointerParent pointer ActionAction Path-CostPath-Cost DepthDepth Child ListChild List

Measuring Performance  Completeness Guaranteed to find a solution?Guaranteed to find a solution?  Optimality Find an optimal solution?Find an optimal solution?  Space complexity How much memory to find a solutionHow much memory to find a solution  Time complexity How long to find a solutionHow long to find a solution

Uninformed Search Strategies  Breadth-first Search  Uniform-cost Search  Depth-first Search  Depth-limited Search  Iterative-deepening Search  Bidirectional Search

Breadth-first Search  Expand according to tree-depth  Complete  Non-optimal (optimal if cost related to depth)(optimal if cost related to depth)  Space!! All nodes remain in memoryAll nodes remain in memory b d nodes per levelb d nodes per level

Breadth-first Search Time & Memory Requirements DepthNodesTimeMemory sec 1 meg 4111, sec 106 meg min 10 gig hrs 1 T days 101 T

Uniform-cost Search  Expand node with lowest path cost  Complete  Optimal  Space Complexity Similar to BFSSimilar to BFS O(b C*/e )O(b C*/e )  C* is memory cost of optimal solution  e is the minimal cost of each action If all costs are the sameIf all costs are the same  O(b C*/e ) = b d

Depth-first Search  Expand deepest node first  Implemented with stack  Space Complexity Only need a single pathOnly need a single path O(bd)O(bd)  Time Complexity O(b d )O(b d )  Not Complete  Not Optimal

Depth-limited Search  DFS with a predetermined depth limit – ‘L’  Better space and time complexities Space O(bL)Space O(bL) Time O(b L )Time O(b L )  Not Complete  Not Optimal

Iterative Deepening  DLS with modification  Gradually increase depth limit  Complete  Optimal  Space O(bd)O(bd)  Time O(b d )O(b d )

Bi-directional  Search Both directions From Start and GoalFrom Start and Goal  Both Searches use BFS why?why?  Complete  Optimal  Space O(b d/2 )O(b d/2 )  Time O(b d/2 )O(b d/2 )  Requires Predecessor Information

Avoiding Repeated States  Issue in all problems with reversible actions  Must somehow mark nodes as visited Check expanded nodes in queueCheck expanded nodes in queue Create memory of visited statesCreate memory of visited states  Must also check to see if new path to repeated state has lower cost of previous path