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*

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Informed Search CS 171/271 (Chapter 4)
Informed search strategies
Informed search algorithms
Artificial Intelligence Presentation
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2004.
Solving Problem by Searching
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Problem Solving by Searching
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
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.
Problem Solving and Search in AI Heuristic Search
Review Best-first search uses an evaluation function f(n) to select the next node for expansion. Greedy best-first search uses f(n) = h(n). Greedy best.
CSC344: AI for Games Lecture 4: Informed search
PROBLEM SOLVING BY SEARCHING (2)
Informed Search Chapter 4 Adapted from materials by Tim Finin, Marie desJardins, and Charles R. Dyer CS 63.
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
Informed Search Methods
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
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 Uninformed searches easy but very inefficient in most cases of huge search tree Informed searches uses problem-specific information to.
Informed search algorithms
Informed search algorithms
January 31, 2006AI: Chapter 4: Informed Search and Exploration 1 Artificial Intelligence Chapter 4: Informed Search and Exploration Michael Scherger Department.
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.
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 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.
Informed Search Include specific knowledge to efficiently conduct the search and find the solution.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
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 Friday Finish chapter 6 Program 1, Milestone 1 due.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
Chapter 4 Informed Search and Exploration. Outline Informed (Heuristic) search strategies  (Greedy) Best-first search  A* search (Admissible) Heuristic.
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
CSC3203: AI for Games Informed search (1) Patrick Olivier
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.
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.
Local Search Algorithms CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and.
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)
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed Search Uninformed searches Informed searches easy
Review: Tree search Initialize the frontier using the starting state
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Informed Search Methods
Local Search Algorithms
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.
Informed search algorithms
Midterm Review.
Informed Search.
“If I Only had a Brain” Search
Presentation transcript:

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*

Program 1 Any questions?

Problem Formulation States Initial state Actions Transition model Goal test Path cost

Informed Search So far we’ve looked at search methods that require no knowledge of the problem However, these can be very inefficient Now we’re going to look at searching methods that take advantage of the knowledge we have a problem to reach a solution more efficiently

Best First Search At each step, expand the most promising node Requires some estimate of what is the “most promising node” We need some kind of evaluation function Order the nodes based on the evaluation function

Greedy Search A heuristic function, h(n), provides an estimate of the distance of the current state to the closest goal state. The function must be 0 for all goal states Example: –Straight line distance to goal location from current location for route finding problem

Beam Search Variation on greedy search Limit the queue to the best n nodes (n is the beam width) Expand all of those nodes Select the best n of the remaining nodes And so on May not produce a solution

Focus on Total Path Cost Uniform cost search uses g(n) --the path cost so far Greedy search uses h(n) --the estimated path cost to the goal What we’d like to use instead is f(n) = g(n) + h(n) to estimate the total path cost

Admissible Heuristic An admissible heuristic is one that never overestimates the cost to reach the goal. It is always less than or equal to the actual cost. If we have such a heuristic, we can prove that best first search using f(n) is both complete and optimal. A* Search

Heuristics Don’t Solve It All NP-complete problems still have a worst- case exponential time complexity Good heuristic function can: –Find a solution for an average problem efficiently –Find a reasonably good (but not optimal) solution efficiently

8-Puzzle Heuristic Functions Number of tiles out of place Manhattan Distance Which is better? Effective branching factor

Inventing Heuristics Relax the problem Cost of solving a subproblem Learn weights for features of the problem

Local Search Works from the “current state” No focus on path Also useful for optimization problems

Local Search Advantages? Disadvantages?

Hill-Climbing Also called gradient descent Greedy local search Move from current state to a state with a better overall value Issues: –Local maxima –Ridges –Plateaux

Variations on Hill Climbing Stochastic hill climbing First-choice hill climbing Random-restart hill climbing

Evaluation of Hill Climbing

Simulated Annealing Similar to hill climbing, but-- –We select a random successor –If that successor improves things, we take it –If not, we may take it, based on a probability –Probability gradually goes down

Local Beam Search Variant of hill-climbing where multiple states and successors are maintained

Genetic Algorithms Have a population of k states (or individuals) Have a fitness function that evaluates the states Create new individuals by randomly selecting pairs and mating them using a randomly selected crossover point. More fit individuals are selected with higher probability. Apply random mutation. Keep top k individuals for next generation.