Copyright R. Weber Search in Problem Solving ISYS 370 Dr. R. Weber.

Slides:



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

Review: Search problem formulation
Announcements Course TA: Danny Kumar
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.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
CS 484 – Artificial Intelligence1 Announcements Department Picnic: today, after class Lab 0 due today Homework 2 due Tuesday, 9/18 Lab 1 due Thursday,
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.
Lets remember about Goal formulation, Problem formulation and Types of Problem. OBJECTIVE OF TODAY’S LECTURE Today we will discus how to find a solution.
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
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 461D)
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 Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
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.
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
1 Using Search in Problem Solving Part II. 2 Basic Concepts Basic concepts: Initial state Goal/Target state Intermediate states Path from the initial.
Artificial Intelligence Chapter 3: Solving Problems by Searching
Using Search in Problem Solving
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?
Using Search in Problem Solving
CSC344: AI for Games Lecture 4: Informed search
Solving problems by searching
CS 561, Session 6 1 Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
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.
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
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.
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
1 Solving problems by searching 171, Class 2 Chapter 3.
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.
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.
Implementation: General Tree Search
Solving problems by searching A I C h a p t e r 3.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
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.
Problem Solving Agents
Introduction to Artificial Intelligence
Problem Solving by Searching
Artificial Intelligence
Artificial Intelligence
CS 2710, ISSP 2160 Foundations of Artificial Intelligence
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Presentation transcript:

Copyright R. Weber Search in Problem Solving ISYS 370 Dr. R. Weber

Copyright R. Weber General Search Algorithm identify initial state expand (generate new states) choose option test goal function expand until goal not attained/no more states to expand

Copyright R. Weber General Search Algorithm search-tree := initial-node loop if there are no leaf nodes then return FAIL else choose a leaf node X according to "strategy" if X is a goal node then return X else expand X add the resulting new leaf node(s) to search-tree end loop

Copyright R. Weber Search strategies

Uninformed search strategies breadth-first search uniform cost search depth-first search depth-limited search iterative deepening search bidirectional search Informed /heuristic strategies best-first search A* Heuristic functions memory bounded search simulated annealing Hill-climbing

Copyright R. Weber Breadth-first search all nodes at depth d are expanded before the nodes at depth d+1 optimal and complete if there are more than one, it will find the shallowest planning puzzles; large memory requirements

Copyright R. Weber Depth-first search expands the deepest node to the deepest level of a tree only expands nodes at shallower levels after reaching the end it does not guarantee a solution (neither complete or optimal) less memory requirements may be faster than breadth-first, but it may get stuck exploring long (potentially infinite) paths, when there is a solution path of less steps

Copyright R. Weber Uniform cost search expands the lowest-cost node to find the best solution it requires that all operators have positive costs route-finding

Copyright R. Weber depth-limited search Improves from depth-first imposes a bound on the maximum depth of a path guarantees that a solution is found if it exists within the length of the chosen depth Not guaranteed to be the optimal iterative deepening search tries to bound the search iteratively (depth 1, 2, 3, till finds a solution) it is optimal and complete, like breadth-first search, but has memory requirements of depth-first search.

Copyright R. Weber bidirectional search start searching from the origin and from the goal and stop when searches meet

Copyright R. Weber Example problems toy problems –used to test search algorithms real world problems –used to solve real problems

Copyright R. Weber Toy problems

Copyright R. Weber The 8-puzzle (Russel&Norvig)

Copyright R. Weber Cryptarithmetic (Russel&Norvig)

Copyright R. Weber Real world problems

Copyright R. Weber Applications of route finding Routing in computer networks Automated travel advisory systems Airline travel planning Garbage collection/cleaning trucks Food/document delivery Does this mean that search is the only method to perform route planning??

Copyright R. Weber Traveling Salesperson Problems is a category of problems each city has to be visited once goal is to find the shortest tour

Copyright R. Weber Exams in university Nurses in hospitals Experts in call centers Crews in different organizations Scheduling NASA satellites NFL games Scheduling

Copyright R. Weber VLSI layout Very large scale integration Design of silicon chip Define the position and connections of a million gates in a chip Tasks: cell layout, channel routing Goal is to min area & connection length

Copyright R. Weber Robot navigation Generalization of route finding problem Any route can be chosen in a continuous space Possible actions and states in a continuous space are infinite The more actions a robot can perform the more dimensions are needed to describe states and actions To identify the result of an action, a robot must use vision

Copyright R. Weber Assembly sequencing Many industries use automatic assembly of objects Find an order to assemble parts of an object Find an order to submit parts to a given process Design for autoclave layout Layout Design

Copyright R. Weber General route finding algorithm 1.identify initial state as origin 2.expand to all possible locations 3.choose location with smallest cost/fastest route/favor highways 4.test goal function, is it the destiny? 5.if yes, return location else, return to 2

Copyright R. Weber General puzzles algorithm 1.identify initial state as origin 2.expand to all possible locations 3.the blank space changes place with tile on its right 4.test goal function, is it the destiny? 5.if yes, return configuration else, return to 2

Copyright R. Weber Constraint Satisfaction Problem 1.Initial is given by values of variables 2.Expand to all possible values 3.Variables change values 4.Do the variables’ values respect constraints? 5.if yes, return values else, return to 2 –Another class of problems –Design and scheduling problems –Algorithms designed specifically for CSP perform better than general ones

Copyright R. Weber Search strategies When do you solve a problem using a search strategy? When there is an algorithm to solve it when: it is guaranteed to find a solution when it finds a solution in a timely manner when the memory requirements are reasonable when it can find the best solution or at least one of the best sometimes, one can combine searches to improve the quality of a solution