3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

An Introduction to Artificial Intelligence
Artificial Intelligence Chapter 9 Heuristic Search Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Optimality of A*(standard proof) Suppose suboptimal goal G 2 in the queue. Let n be an unexpanded node on a shortest path to optimal goal G. f(G 2 ) =
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Artificial Intelligence Problem Solving Eriq Muhammad Adams
CSCE 580 ANDREW SMITH JOHNNY FLOWERS IDA* and Memory-Bounded Search Algorithms.
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)
CMSC 471 Spring 2014 Class #4 Thu 2/6/14 Uninformed Search Professor Marie desJardins,
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Problem Solving by Searching
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2008.
Artificial Intelligence
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2005.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
Problem Solving and Search in AI Heuristic Search
CSC344: AI for Games Lecture 4: Informed search
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
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:
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.
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed (Heuristic) Search
Intelligent Systems (2II40) C3 Alexandra I. Cristea September 2005.
Informed search algorithms Chapter 4. Outline Best-first search Greedy best-first search A * search Heuristics.
CHAPTER 4: INFORMED SEARCH & EXPLORATION Prepared by: Ece UYKUR.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Informed searching. Informed search Blind search algorithms do not consider any information about the states and the goals Often there is extra knowledge.
Informed Search Methods. Informed Search  Uninformed searches  easy  but very inefficient in most cases of huge search tree  Informed searches  uses.
Informed Search Strategies Lecture # 8 & 9. Outline 2 Best-first search Greedy best-first search A * search Heuristics.
Chapter 4 Informed/Heuristic Search
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
Advanced Artificial Intelligence Lecture 2: Search.
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
CSC3203: AI for Games Informed search (1) Patrick Olivier
Uninformed Search ECE457 Applied Artificial Intelligence Spring 2007 Lecture #2.
1 Kuliah 4 : Informed Search. 2 Outline Best-First Search Greedy Search A* Search.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
A General Introduction to Artificial Intelligence.
Pengantar Kecerdasan Buatan 4 - Informed Search and Exploration AIMA Ch. 3.5 – 3.6.
Slides by: Eric Ringger, adapted from slides by Stuart Russell of UC Berkeley. CS 312: Algorithm Design & Analysis Lecture #36: Best-first State- space.
Informed Search II CIS 391 Fall CIS Intro to AI 2 Outline PART I  Informed = use problem-specific knowledge  Best-first search and its variants.
CHAPTER 2 SEARCH HEURISTIC. QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its.
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.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
ARTIFICIAL INTELLIGENCE Dr. Seemab Latif Lecture No. 4.
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.
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.
Review: Tree search Initialize the frontier using the starting state
Last time: Problem-Solving
Informed Search and Exploration
EA C461 – Artificial Intelligence
Informed search algorithms
Midterm Review.
Presentation transcript:

3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first search, Hill climbing, Beam search, A*, IDA*, RBFS, SMA* New terms – Heuristics – Optimal solution – Informedness – Hill climbing problems – Admissibility New parameters – g(n) = estimated cost from initial state to state n – h(n) = estimated cost (distance) from state n to closest goal – h(n) is our heuristic Robot path planning, h(n) could be Euclidean distance 8 puzzle, h(n) could be #tiles out of place Search algorithms which use h(n) to guide search are heuristic search algorithms

3.5.1 Best-First Search (Greedy Best-First Search) QueueingFn is sort-by-h Best-first search only as good as heuristic Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.  A node is selected for expansion based on an evaluation function, f(n).  Most best-first algorithm include as a component of f a heuristic function, h(n).

Example – map of Romania Driving from Arad to Bucharest

Example – Driving from Arad to Bucharest heuristic function f(n)=h(n), straight line distance hueristics

Example – Driving from Arad to Bucharest (cont’d)

Comparison of Search Techniques BFSDFSUCSIDSBest CompleteYNYYN OptimalNNYNN HeuristicNNNNY TimeO(b d )O(b m )O(b d )O(b m ) SpaceO(b d )O(bm)O(bd)O(b m ) C*: the cost of the optimal solution ε: every action cost at least ε m: maximum depth of search space

3.5.2 A* Search QueueingFn is sort-by-f – f(n) = g(n) + h(n) g(n): path cost from the start node to node n h(n): estimated cost of the cheapest path from n to goal. Note that UCS and Best-first both improve search – UCS keeps solution cost low – Best-first helps find solution quickly A* combines these approaches

A * search example - Driving from Arad to Bucharest

Comparison of Search Techniques BFSDFSUCSIDSBestA* CompleteYNYYNY OptimalNNYNNY HeuristicNNNNYY TimeO(b d )O(b m )O(b d )O(b m ) SpaceO(b d )O(bm)O(bd)O(b m ) C*: the cost of the optimal solution ε: every action cost at least ε m: maximum depth of search space : Relative Error

3.5.3 Memory-bounded Heuristic Search For A* search, the computation time is not a main drawback. Because it keeps all generated nodes in memory, it run out of space long before it runs out of time. Method to reduce memory requirement: 1.Iterative-deepening A* (IDA*) 2.Recursive best-first search (RBFS) 3.Memory-bounded A* (MA*)

RBFS Recursive Best First Search – Linear space variant of A* Perform A* search but discard subtrees when perform recursion Keep track of alternative (next best) subtree Expand subtree until f value greater than bound Update f values before (from parent) and after (from descendant) recursive call

RBFS Example - Driving from Arad to Bucharest

Example

3.7 Summary Studied search methods that an agent can use to select actions in environment that are deterministic, observable, static, and completely known. Before an agent start searching for solutions, a goal must be identified, and a well-defined problem must be formulated. A problem consists of 5 parts:  the initial state  a set of action  a transition model describing the results of those actions  a goal test function  a path cost function A general Tree-Search algorithm considers all possible paths to find a solution, whereas a Graph-Search algorithm avoids consideration of redundant paths.

Uninformed search methods have access only to the problem definition. Breadth-first search Uniform-cost search Depth-first search Iterative deepening search Bidirectional search Informed search methods may have access to a heuristic function h(n) that estimate the cost of a solution from n.  Greedy best-first search  A* search  Recursive best-first search (RBFS) search