Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Lights Out Issues Questions? Comment from me.
Informed search algorithms
Review: Search problem formulation
Informed Search Algorithms
Notes Dijstra’s Algorithm Corrected syllabus.
Informed search algorithms
Problem Solving: Informed Search Algorithms Edmondo Trentin, DIISM.
Solving Problem by Searching
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Properties of breadth-first search Complete? Yes (if b is finite) Time? 1+b+b 2 +b 3 +… +b d + b(b d -1) = O(b d+1 ) Space? O(b d+1 ) (keeps every node.
EIE426-AICV 1 Blind and Informed Search Methods Filename: eie426-search-methods-0809.ppt.
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Problem Solving by Searching
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
Problem Solving and Search in AI Heuristic Search
CSC344: AI for Games Lecture 4: Informed search
CS 561, Session 6 1 Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
Informed search algorithms
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
INTRODUÇÃO AOS SISTEMAS INTELIGENTES Prof. Dr. Celso A.A. Kaestner PPGEE-CP / UTFPR Agosto de 2011.
Informed search algorithms
Informed search algorithms
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.
1 Shanghai Jiao Tong University Informed Search and Exploration.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
ISC 4322/6300 – GAM 4322 Artificial Intelligence Lecture 3 Informed Search and Exploration Instructor: Alireza Tavakkoli September 10, 2009 University.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
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.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
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.
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
CSC3203: AI for Games Informed search (1) Patrick Olivier
Informed Search I (Beginning of AIMA Chapter 4.1)
Artificial Intelligence Problem solving by searching.
1 Kuliah 4 : Informed Search. 2 Outline Best-First Search Greedy Search A* Search.
Informed Search and Heuristics Chapter 3.5~7. Outline Best-first search Greedy best-first search A * search Heuristics.
4/11/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005.
A General Introduction to Artificial Intelligence.
Feng Zhiyong Tianjin University Fall  Best-first search  Greedy best-first search  A * search  Heuristics  Local search algorithms  Hill-climbing.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
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 CSE 473 University of Washington.
Heuristic Search Foundations of Artificial Intelligence.
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.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Review: Tree search Initialize the frontier using the starting state
Last time: Problem-Solving
Artificial Intelligence (CS 370D)
Heuristic Search Introduction to Artificial Intelligence
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CS 4100 Artificial Intelligence
EA C461 – Artificial Intelligence
Informed search algorithms
Informed search algorithms
Artificial Intelligence
CSE 473 University of Washington
Artificial Intelligence
Solving Problems by Searching
Informed Search.
Presentation transcript:

Chapter 3.5 Heuristic Search

Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions

So let’s try it again… Consider a state space where the start state is number 1 and the successor function for state n returns two states, numbers 2n and 2n+1. –Suppose the goal state is 11. List the order in which nodes will be visited in depth limited search with limit 3 For iterative deepening.

Solution Depth Limited, l=3 –1, 2, 4, 8, 16, 17, 9, 18, 19, 5, 10, 20, 21, 11 Iterative Deepening –1, 1, 2, 3, 1, 2, 4, 5, 3, 6, 7, 1, 2, 4, 8, 9, 5, 10, 11

Review Review: tree search a strategy is defined by picking the order of node expansion

Summary of algorithms

7 Bidirectional Search

Review Review: tree search a strategy is defined by picking the order of node expansion Even when we try to use knowledge about the problem (uniform cost search) we are limited to what we have “learned” This makes it a “backward looking” search.

But, when I ask you to get from Arad to Bucharest, what do you do?

Heuristic Search Heuristic searches use knowledge about the problem to include “forward looking” information. That is, which move do I THINK would get me closest to the goal.

Heuristic Search Best-first search: use an evaluation function for each node –Estimate of “desirability” –Expand most desirable unexpanded node –Implementation: fringe is a queue sorted in decreasing order of desirability –Special cases: Greedy search A* search

Heuristic Search Romania with step costs in km

Heuristic Search Greedy search –Evaluation function h(n) (heuristic) = estimate of cost from n to closest goal –Example: h SLD (n) = straight-line distance from n to Bucharest –Greedy search expands the node that appears to be closest to goal

Heuristic search Greedy search example

Heuristic Search Greedy search example

Heuristic Search Greedy search example

Heuristic Search Properties of greedy search –Complete??

Heuristic Search Complete?? No – can get stuck in loops, e.g., start in Iasi with Oradea as goal…. Iasi  Neamt  Complete in finite space with repeated-state checking

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time??

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time?? O(b m ), but a good heuristic can give dramatic improvement

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time?? O(b m ), but a good heuristic can give dramatic improvement –Space??

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time?? O(b m ), but a good heuristic can give dramatic improvement –Space?? O(b m ) – keeps all nodes in memory

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time?? O(b m ), but a good heuristic can give dramatic improvement –Space?? O(b m ) – keeps all nodes in memory –Optimal??

Heuristic Search Properties of greedy search –Complete?? No – can get stuck in loops, e.g., Complete in finite space with repeated-state checking –Time?? O(b m ), but a good heuristic can give dramatic improvement –Space?? O(b m ) – keeps all nodes in memory –Optimal?? No

Heuristic Search A* search –Premise - Avoid expanding paths that are already expansive –Evaluation function f(n) = g(n) + h(n) g(n) = cost so far to reach n h(n) = estimated cost to goal from n f(n) = estimated total cost of path through n to goal

Heuristic Search A* search –A* search uses an admissible heuristic i.e., h(n)  h*(n) where h*(n) is the true cost from n. (also require h(n)  0, so h(G) = 0 for any goal G.) example, h SLD (n) never overestimates the actual road distance.

Heuristic Search A* search example

Heuristic Search A* search example

Heuristic Search A* search example

Heuristic Search A* search example

Heuristic Search A* search example

Heuristic Search Properties of A* –Complete?? Yes, unless there are infinitely many nodes with f  f(G) –Time?? Exponential in [relative error in h x length of solution.] –Space?? Keeps all nodes in memory –Optimal?? Yes – cannot expand f i+1 until f i is finished A* expands all nodes with f(n) C*