Ch. Eick: Introduction to Search Classification of Search Problems Search Uninformed Search Heuristic Search State Space SearchConstraint Satisfaction.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Cooperating Intelligent Systems
Heuristic Searches. Feedback: Tutorial 1 Describing a state. Entire state space vs. incremental development. Elimination of children. Closed and the solution.
Review: Search problem formulation
Heuristic Search techniques
Problem solving with graph search
Uninformed search strategies
Traveling Salesperson Problem
State Space 3 Chapter 4 Heuristic Search. Three Algorithms Backtrack Depth First Breadth First All work if we have well-defined: Goal state Start state.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Search Techniques MSc AI module. Search In order to build a system to solve a problem we need to: Define and analyse the problem Acquire the knowledge.
CS 484 – Artificial Intelligence1 Announcements Department Picnic: today, after class Lab 0 due today Homework 2 due Tuesday, 9/18 Lab 1 due Thursday,
Chapter 4 Search Methodologies.
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Problem Solving by Searching
State-Space Searches. State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
Artificial Intelligence
1 Chapter 4 Search Methodologies. 2 Chapter 4 Contents l Brute force search l Depth-first search l Breadth-first search l Properties of search methods.
MAE 552 – Heuristic Optimization Lecture 27 April 3, 2002
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?
Problem Solving and Search in AI Heuristic Search
State-Space Searches. 2 State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
State-Space Searches.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
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.
For Monday Read chapter 4, section 1 No homework..
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Problem Reduction So far we have considered search strategies for OR graph. In OR graph, several arcs indicate a variety of ways in which the original.
Search Techniques CS480/580 Fall Introduction Trees: – Root, parent, child, sibling, leaf node, node, edge – Single path from root to any node Graphs:
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
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.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence Solving problems by searching.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Lecture 3: Uninformed Search
Traveling Salesperson Problem
Last time: Problem-Solving
Informed Search and Exploration
Artificial Intelligence Problem solving by searching CSC 361
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
HW #1 Due 29/9/2008 Write Java Applet to solve Goats and Cabbage “Missionaries and cannibals” problem with the following search algorithms: Breadth first.
Teaching Plan Problem Solving
Randomized Hill Climbing
CSE 4705 Artificial Intelligence
EA C461 – Artificial Intelligence
CO Games Development 1 Week 8 Depth-first search, Combinatorial Explosion, Heuristics, Hill-Climbing Gareth Bellaby.
Chap 4: Searching Techniques
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
State-Space Searches.
State-Space Searches.
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
Midterm Review.
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
State-Space Searches.
Teaching Plan Problem Solving
Lecture 4: Tree Search Strategies
Problem Solving by Searching Search Methods :
Presentation transcript:

Ch. Eick: Introduction to Search Classification of Search Problems Search Uninformed Search Heuristic Search State Space SearchConstraint Satisfaction Problems Optimization Problems

Ch. Eick: Introduction to Search Figure Goal: find an operator sequence that leads from the start state to the goal state State Space: a 3x3 matrix containing the numbers 1,…,8 and *(empty) Operators: North, South, East, West Example: State Space Search

Ch. Eick: Introduction to Search Maximize f(x,y,z)=|x-y-0.2|*|x*z-0.8|*|0.3-z*z*y| with x,y,z in [0,1] Characteristics: No explicit operators the path that leads to the solution is not important Frequently involves real numbers  number of solutions is not finite Problems might be complicated by additionally requiring that the solution satisfies a set of contraints. Life is easier if the function is continuous and differentiable  e.g. classical numerical optimization techniques can directly be applied AI and evolutionary computing are more attractive for “nasty” optimization problems. Optimization Problems

Ch. Eick: Introduction to Search Heuristic Search General Search Algorithms Domain-specific Knowledge augment

Ch. Eick: Introduction to Search Figure 2.13

Ch. Eick: Introduction to Search Classification of Search Algorithms State Space Search Expansion Search Backtracking Hill Climbing Best First SearchUniform Cost Breadth First Depth First A* Remark: Many other search algorithms exist that do not appear above Greedy Search

Ch. Eick: Introduction to Search Characterization of State Space Search Algorithms A search strategy consists of the following: A state space S, set of operators O: S  S, an initial state, and a (set of) goal state(s). A control strategy that determines how the search space will be searched; it consists of an operator selection and state selection function: –Operator selection function: selects which operator(s) is applied to a given state –State selection function: selects the state to which an operator (selected by the operator selection function) is applied next. Remarks: Operator selection functions only return operators that have not been applied yet, and state selection functions return only states that have not been completely expanded yet (some applicable operators have not been applied to this state yet); moreover, we assume that ties are broken randomly.

Ch. Eick: Introduction to Search Example: Search Strategies for the 8 Puzzle Strategy 1 (Breadth First): Operator Selection Function: select all operators State Selection Function: Select a state s giving preference to states that are closer to the initial state i(closeness is evaluated by the number of operator applications it took to reach s from i) Strategy 2 (Backtracking with depth bound set to 3): Operator Selection Function : Select (applicable) operator by priorities: N>S>E>W State Selection Function : If the most recently created state is less than 3 operator applications away from the initial state, use this state; otherwise, use the predecessor of the most recent state. Strategy 3 (Greedy Search) Operator Selection Function: select all operators State Selection Function: Select the state s that is closest to the goal state g using a distance function d(s,g)=“number of positions in which in which s and g disagree”

Ch. Eick: Introduction to Search Assume you have to search a labyrinth of interconnected rooms trying to find a particular room that contain a red flower. There will be many intersections of walkways that connect rooms all of which look completely the same; you will not know if you entered a particular crossing before; however, you will be given a piece of chalk that allow you to mark the to put signs of your own choosing on a wall. Devise a search strategy that will find a room with a red flower assuming that such a room exists. To be discussed on Sept. 30, 2004 in class! Un-graded Homework Goal State

Ch. Eick: Introduction to Search Use of search strategies that are not suitable for real-time search problem (e.g. breadth first search as explained in the textbook or best first search) --- you cannot jump between states. Propose a suitable algorithm, but it is not clearly explained how chalk is used. Algorithm chooses backtracking direction prior to unexplored directions. Some strategies are not incompletely described, and it is therefore hard to say if they work. Some strategies do not cope properly with looping (reaching the same room twice) Un-graded Homework1 Problems Goal State

Ch. Eick: Introduction to Search Solution1 (does not necessarily find the flower if search space is not finite): If you enter a new intersection, number unexplored directions 1, 2, 3,…, with chalk (do not mark the unexplored direction) and follow direction 1 and mark that you followed this direction by underlining it: 1 If you enter an already visited intersection, follow the lowest unexplored direction and underline it before you leave; if you reach a dead-end or you traveled all possible directions, backtrack by following the unmarked direction. Solution 2: same as Solution1, but uses depth bound and iterative deepening (explore 10 crossings, 20 crossings, 30 crossings…); Un-graded Homework1 Solutions start Revised on October 7, 2004!!