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 ) =

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

An Introduction to Artificial Intelligence
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Problem-solving as search. History Problem-solving as search – early insight of AI. Newell and Simon’s theory of human intelligence and problem-solving.
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
Review: Search problem formulation
Informed search algorithms
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.
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
Informed Search CSE 473 University of Washington.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
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:
Pag.1 Artificial Intelligence Informed search algorithms Chapter 4, Sections 1-5.
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
Informed search algorithms
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
Informed search algorithms
Informed (Heuristic) Search
1 CS 2710, ISSP 2610 Chapter 4, Part 1 Heuristic Search.
Informed search algorithms Chapter 4. Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search.
Informed search algorithms
Informed search algorithms Chapter 4. Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search.
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.
CS 380: Artificial Intelligence Lecture #4 William Regli.
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 Include specific knowledge to efficiently conduct the search and find the solution.
Chapter 4 Informed/Heuristic Search
Informed Search ECE457 Applied Artificial Intelligence Spring 2007 Lecture #3.
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
CSC3203: AI for Games Informed search (1) Patrick Olivier
CS 312: Algorithm Design & Analysis Lecture #37: A* (cont.); Admissible Heuristics Credit: adapted from slides by Stuart Russell of UC Berkeley. This work.
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.
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.
Informed Search CSE 473 University of Washington.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Heuristic Search  Best First Search –A* –IDA* –Beam Search  Generate and Test  Local Searches –Hill Climbing  Simple Hill Climbing  Steepest Ascend.
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.
Reading Material Sections 3.3 – 3.5 Sections 4.1 – 4.2 “Optimal Rectangle Packing: New Results” By R. Korf (optional) “Optimal Rectangle Packing: A Meta-CSP.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Last time: Problem-Solving
Informed Search Methods
Informed Search and Exploration
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.
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CS 4100 Artificial Intelligence
Artificial Intelligence Informed Search Algorithms
EA C461 – Artificial Intelligence
Informed search algorithms
Informed search algorithms
Artificial Intelligence
CSE 473 University of Washington
Heuristic Search Generate and Test Hill Climbing Best First Search
Artificial Intelligence
Midterm Review.
Presentation transcript:

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 ) = g(G 2 )since h(G 2 )=0 > g(G)since G 2 is suboptimal >= f(n)since h is admissible Since f(G 2 ) > f(n), A* will never select G 2 for expansion

A* - Optimality A* is optimally efficient (Dechter and Pearl 1985): –It can be shown that all algorithms that do not expand a node which A* did expand may miss an optimal solution

Memory-bounded heuristic search A* keeps all generated nodes in memory –On many problems A* will run out of memory Iterative deepening A* (IDA*) –Like IDS but uses f-cost rather than depth at each iteration SMA* (Simplified Memory-Bounded A*) –Uses all available memory –Proceeds like A* but when it runs out of memory it drops the worst leaf node (one with highest f-value) –If all leaf nodes have the same f-value then it drops oldest and expands the newest –Optimal and complete if depth of shallowest goal node is less than memory size

Iterative Deepening A* (IDA*) Use f(n) = g(n) + h(n) like in A* Each iteration is depth-first with cutoff on the value of f of expanded nodes

8-Puzzle 4 6 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=4

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=4 6

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=4 6 5

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=

4 8-Puzzle 4 6 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=

8-Puzzle 4 6 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=5 G

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=5 6

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=5 6 5

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=5 6 57

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=

8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=

Iterative Improvement Algorithms Example: n queens Try to find the highest peaks which are optimal Keep track of only the current state and do not look ahead beyond the immediate neighbours Two classes Hill climbing algoritms make changes to improve the current state Simulated annealing algoritms Allow some bad moves to get out of a local maxima

Hill Climbing

Simulated Annealing