“If I Only had a Brain” Search

Slides:



Advertisements
Similar presentations
Informed Search Algorithms
Advertisements

Informed search strategies
Greedy best-first search Use the heuristic function to rank the nodes Search strategy –Expand node with lowest h-value Greedily trying to find the least-cost.
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2004.
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*
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Problem Solving by Searching
Review: Search problem formulation
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
ITCS 3153 Artificial Intelligence Lecture 4 Uninformed Searches (cont) Lecture 4 Uninformed Searches (cont)
5-Nov-2003 Heuristic Search Techniques What do you do when the search space is very large or infinite? We’ll study three more AI search algorithms: Backtracking.
Informed Search Idea: be smart about what paths to try.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
CS 416 Artificial Intelligence Lecture 4 Uninformed Searches (cont) Lecture 4 Uninformed Searches (cont)
Problem Solving by Searching Search Methods : informed (Heuristic) search.
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.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
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*
CSC3203: AI for Games Informed search (1) Patrick Olivier
Lecture 5-1CS250: Intro to AI/Lisp “If I Only had a Brain” Search Lecture 5-1 October 26 th, 1999 CS250.
Informed Search I (Beginning of AIMA Chapter 4.1)
1 Kuliah 4 : Informed Search. 2 Outline Best-First Search Greedy Search A* Search.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
Informed Search CSE 473 University of Washington.
G5AIAI Introduction to AI Graham Kendall Heuristic Searches.
Solving problems by searching Uninformed search algorithms Discussion Class CS 171 Friday, October, 2nd (Please read lecture topic material before and.
For Monday Read chapter 4 exercise 1 No homework.
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.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Pengantar Kecerdasan Buatan
Review: Tree search Initialize the frontier using the starting state
Last time: Problem-Solving
Artificial Intelligence (CS 370D)
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Department of Computer Science
Heuristic Search Introduction to Artificial Intelligence
“If I Only had a Brain” Search II
Artificial Intelligence Problem solving by searching CSC 361
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.
The A* Algorithm Héctor Muñoz-Avila.
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CAP 5636 – Advanced Artificial Intelligence
CS 4100 Artificial Intelligence
EA C461 – Artificial Intelligence
Week 4 Jan 29th 2016.
Informed search algorithms
Informed search algorithms
Lecture 8 Heuristic search Motivational video Assignment 2
Artificial Intelligence
CSE 473 University of Washington
Announcements This Friday Project 1 due Talk by Jeniya Tabassum
HW 1: Warmup Missionaries and Cannibals
Informed Search Idea: be smart about what paths to try.
HW 1: Warmup Missionaries and Cannibals
Artificial Intelligence
Midterm Review.
Informed Search Idea: be smart about what paths to try.
Informed Search.
Presentation transcript:

“If I Only had a Brain” Search Lecture 3-1 January 19th, 1999 CS250 Lecture 3-1 CS250: Intro to AI/Lisp

Blind Search No information except Initial state Operators Goal test If we want worst-case optimality, need exponential time Lecture 3-1 CS250: Intro to AI/Lisp

“How long ‘til we get there?” Add a notion of progress to search Not just the cost to date How far we have to go Lecture 3-1 CS250: Intro to AI/Lisp

Best-First Search Next node in General-Search Queuing function Replace with evaluation function Go with the most desirable path Lecture 3-1 CS250: Intro to AI/Lisp

Heuristic Functions Estimate with a heuristic function, h(n) Problem specific (Why?) Information about getting to the goal Not just where we’ve been Examples Route-finding? 8 Puzzle? Lecture 3-1 CS250: Intro to AI/Lisp

Greedy Searching Take the path that looks the best right now Lowest estimated cost Not optimal Not complete Complexity? Time: O(bm) Space: O(bm) Lecture 3-1 CS250: Intro to AI/Lisp

Best of Both Worlds? Greedy Uniform cost Minimizes total estimated cost to goal, h(n) Not optimal Not complete Uniform cost Minimizes cost so far, g(n) Optimal & complete Inefficient Lecture 3-1 CS250: Intro to AI/Lisp

Greedy + Uniform Cost Evaluate with both criteria f(n) = g(n) + h(n) What does this mean? Sounds good, but is it: Complete? Optimal? Lecture 3-1 CS250: Intro to AI/Lisp

Admissible Heuristics Optimistic: Never overestimate the cost of reaching the goal A* Search = Best-first + Admissible h(n) Lecture 3-1 CS250: Intro to AI/Lisp

A* Search Complete Optimal, if: Heuristic is admissible Lecture 3-1 CS250: Intro to AI/Lisp