CHAPTER 2 SEARCH HEURISTIC. QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its.

Slides:



Advertisements
Similar presentations
Informed Search CS 171/271 (Chapter 4)
Advertisements

Review: Search problem formulation
An Introduction to Artificial Intelligence
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*
Announcements Homework 1: Search Project 1: Search Sections
CS 343H: Artificial Intelligence
Review: Search problem formulation
Artificial Intelligence
CS 188: Artificial Intelligence Fall 2009 Lecture 3: A* Search 9/3/2009 Dan Klein – UC Berkeley Multiple slides from Stuart Russell or Andrew Moore.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
CSC344: AI for Games Lecture 4: Informed search
CS 188: Artificial Intelligence Spring 2006 Lecture 2: Queue-Based Search 8/31/2006 Dan Klein – UC Berkeley Many slides over the course adapted from either.
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
CS 188: Artificial Intelligence Fall 2009 Lecture 2: Queue-Based Search 9/1/2009 Dan Klein – UC Berkeley Multiple slides from Stuart Russell, Andrew Moore.
CSE 511a: Artificial Intelligence Spring 2012
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.
Informed search algorithms
Informed search algorithms
CHAPTER 4: INFORMED SEARCH & EXPLORATION Prepared by: Ece UYKUR.
1 Shanghai Jiao Tong University Informed Search and Exploration.
Quiz 1 : Queue based search  q1a1: Any complete search algorithm must have exponential (or worse) time complexity.  q1a2: DFS requires more space than.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
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 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.
Heuristic Search: A* 1 CPSC 322 – Search 4 January 19, 2011 Textbook §3.6 Taught by: Vasanth.
Advanced Artificial Intelligence Lecture 2: 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*
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
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:
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.
Warm-up: Tree Search Solution
CE 473: Artificial Intelligence Autumn 2011 A* Search Luke Zettlemoyer Based on slides from Dan Klein Multiple slides from Stuart Russell or Andrew Moore.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
CSE 473: Artificial Intelligence Spring 2012 Search: Cost & Heuristics Luke Zettlemoyer Lecture adapted from Dan Klein’s slides Multiple slides from Stuart.
AI Adjacent Fields  Philosophy:  Logic, methods of reasoning  Mind as physical system  Foundations of learning, language, rationality  Mathematics.
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.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Review: Tree search Initialize the frontier using the starting state
Announcements Homework 1 Questions 1-3 posted. Will post remainder of assignment over the weekend; will announce on Slack. No AI Seminar today.
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Informed Search and Exploration
Artificial Intelligence Problem solving by searching CSC 361
CS 188: Artificial Intelligence Spring 2007
CSE 4705 Artificial Intelligence
CAP 5636 – Advanced Artificial Intelligence
CS 188: Artificial Intelligence Fall 2008
CS 188: Artificial Intelligence Fall 2008
Lecture 1B: Search.
Announcements Homework 1: Search Project 1: Search
CS 188: Artificial Intelligence Fall 2006
Announcements This Friday Project 1 due Talk by Jeniya Tabassum
CS 188: Artificial Intelligence Spring 2006
Midterm Review.
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Informed Search.
Presentation transcript:

CHAPTER 2 SEARCH HEURISTIC

QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its goals and prior knowledge, a rational agent should: 1. Use the information available in new observations to update its knowledge, and 2. Use its knowledge to act in a way that is expected to achieve its goals in the world How do you define a search problem? Initial state Successor function Goal test Path cost

Review: DFS vs. BFS

Graph Search In BFS, for example, we shouldn’t bother expanding the circled nodes (why?)

Graph Search

Iterative Deepening

Costs on Actions BFS finds the shortest path in terms of number of transitions, not the least-cost path

Uniform Cost Search

Priority Queue Refresher A priority queue is a data structure in which you can insert and retrieve (key, value) pairs with the following operations: You can promote or demote keys by resetting their priorities Unlike a regular queue, insertions into a priority queue are not constant time, usually O(log n) We’ll need priority queues for most cost-sensitive search methods

Uniform Cost Search What will UCS do for this graph? What does this mean for completeness?

Uniform Cost Search

Uniform Cost Issues Where will uniform cost explore? Why? What is wrong here?

Straight Line Distances

Greedy Best-First Search Expand the node that seems closest… What can go wrong?

Greedy Best-First Search

Combining UCS and Greedy

When should A* terminate? A* Search orders by the sum: f(n) = g(n) + h(n) Should we stop when we enqueue a goal? No! Only stop when we dequeue a goal

Is A* Optimal? A* Search orders by the sum: f(n) = g(n) + h(n) What went wrong? Actual goal cost greater than estimated goal cost We need estimates to be less than actual costs!

Admissible Heuristics

Optimality of A*: Blocking

Optimality of A*: Contours Consider what A* does: –Expands nodes in increasing total f value (fcontours) –Optimal goals have lower f value, so get expanded first

Consistency/Monotonicity

UCS vs A* Contours

Properties of A*

Admissible Heuristics Most of the work is in coming up with admissible heuristics Quiz: what’s the simplest admissable heuristic? Good news: usually admissible heuristics are also consistent More good news: inadmissible heuristics are still useful effective (Why?)

8-Puzzle I

8-Puzzle II

Relaxed Problems A version of the problem with fewer restrictions on actions is called a relaxed problem Relaxed problems of the 8 puzzle: - Each move can swap a tile directly into its final position - Each move can move a tile one step closer to its final position Relaxed problem for the route planning problem: - You can fly directly to the goal from each state Relaxed problems for Pac-Man?

8-Puzzle III How about using the actual cost as a heuristic? - Would it be admissible? - Would we save on nodes? - What’s wrong with it? With A*, trade-off between quality of estimate and work per node!

Trivial Heuristics, Dominance

Other A* Applications Robot motion planning Routing problems Planning problems Machine translation Statistical parsing Speech recognition

Summary: A* A* uses both backward costs and (estimates of) forward costs A* is optimal with admissible heuristics Heuristic design is key: often use relaxed problems

Local Search Methods Queue-based algorithms keep fallback options(backtracking) Local search: improve what you have until youcan’t make it better Generally much more efficient (but incomplete)

Types of Problems

Example: N-Queens

Hill Climbing Simple, general idea: –Start wherever –Always choose the best neighbor –If no neighbors have better scores than current, quit Why can this be a terrible idea? –Complete? –Optimal? What’s good about it?

Hill Climbing Diagram

Simulated Annealing

Beam Search

Genetic Algorithms

Example: N-Queens

Continuous Problems

Gradient Methods