Informed Search CS 171/271 (Chapter 4)

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Informed search algorithms
0 - 0.
Addition Facts
Heuristic Search Russell and Norvig: Chapter 4 Slides adapted from:
Chapter 4: Informed Heuristic Search
CMSC 471 Fall 2002 Class #5-6 – Monday, September 16 / Wednesday, September 18.
Heuristic Functions By Peter Lane
Informed search algorithms
Review: Search problem formulation
Informed Search Algorithms
Notes Dijstra’s Algorithm Corrected syllabus.
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
Informed search strategies
Informed search algorithms
An Introduction to Artificial Intelligence
Test B, 100 Subtraction Facts
Heuristic Search Methods Methods that use a heuristic function to provide specific knowledge about the problem: Heuristic Functions Hill climbing Beam.
The A* Algorithm Héctor Muñoz-Avila. The Search Problem Starting from a node n find the shortest path to a goal node g ?
Problem Solving: Informed Search Algorithms Edmondo Trentin, DIISM.
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2004.
Solving Problem by Searching
Problem Solving by Searching
Review: Search problem formulation
Artificial Intelligence
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
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
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:
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.
INTRODUÇÃO AOS SISTEMAS INTELIGENTES Prof. Dr. Celso A.A. Kaestner PPGEE-CP / UTFPR Agosto de 2011.
Informed search algorithms
Informed search algorithms
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 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.
For Monday Read chapter 4, section 1 No homework..
Local Search Algorithms
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.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
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:
CHAPTER 2 SEARCH HEURISTIC. QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
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.
For Monday Read chapter 4 exercise 1 No homework.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Last time: Problem-Solving
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Department of Computer Science
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
Problem Solving and Searching
Problem Solving and Searching
Informed search algorithms
First Exam 18/10/2010.
Midterm Review.
Informed Search.
Presentation transcript:

Informed Search CS 171/271 (Chapter 4) Some text and images in these slides were drawn from Russel & Norvig’s published material

Search Strategies Revisited Strategy defines order of node expansion We can view BFS, Uniform-Cost, DFS, and others as strategies that select nodes according to an evaluation function f(n): some measure on node n Select the node with minimum f(n)

Search Strategies Revisited Uninformed search Evaluation function dependent on states and successor function only Improvements achieved if repeated states are detected Informed (heuristic) search Problem-specific information may be incorporated in the evaluation function

Informed Search Greedy Best-First Search A* Search Local Search Algorithms

Greedy Best-First Search Strategy: expand node that is closest to goal Based on a heuristic function on each node that represents closeness to goal Closeness measure not necessarily accurate (of course!), but has some basis

Example 1: Route Finding Straight-line distance heuristic Direct distance from node to goal Actual cost is not always this distance since not all nodes are connected by a straight line path Practical significance You have a map where straight-line distances are more obvious than the sums of connections

Example 2: 8-puzzle Sum of Manhattan distances Select the move that yields the minimum sum of distances of tiles from their goal positions (horizontal/vertical steps only) Number of misplaced tiles Select the move that renders a configuration with the fewest number of misplaced tiles

Sum of Manhattan distances: 3+1+2+2+2+3+3+2 = 18 Sum of misplaced tiles: 8

About Greedy Best-First Search Not always optimal/complete Completeness depends on heuristic Example? (see page 97) Implementation requires a priority queue Uninformed (and Informed) Search Algorithms are in fact special cases of Greedy Best-First search

A* Search Greedy Best-First Search where the evaluation function is g(n) + h(n) Guaranteed to be optimal as long as h is admissible cost to reach node heuristic: node to goal

Admissible Heuristics A heuristic is admissible if it never overestimates the cost to reach the goal Examples Straight-line distance Manhattan distance Number of misplaced tiles Note: a relaxed version of a problem yields an admissible heuristic

Local Search Most appropriate when the path-cost is not relevant Strategy: start with an initial complete state, and then improve incrementally Example: n-queens use complete-state formulation instead of incremental formulation Repeatedly move to a successor (move a queen within a column) that has the fewest queen-pairs that attack each other (hill-climbing)

Hill-Climbing Search

Climb Illustration Number of “hostile” queen-pairs: 17 Several possible moves improve this measure to 12

Problem: Local Maximum

Getting Stuck in a Local Maximum Not a goal state but improvement is not possible

Escaping Local Maxima Simulated Annealing Local Beam Search Select successors randomly Allow “downhill” moves in early iterations Local Beam Search Keep k states instead of just one Choose top states from all successors Mimics natural selection (survival of the fittest)