Problem Solving by Searching Search Methods : informed (Heuristic) search.

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

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.
Traveling Salesperson Problem
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2004.
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
CSC 423 ARTIFICIAL INTELLIGENCE
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Problem Solving by Searching
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
A* Search Introduction to AI. What is an A* Search? A greedy search method minimizes the cost to the goal by using an heuristic function, h(n). It works.
Artificial Intelligence
Informed Search Strategies Tutorial. Heuristics for 8-puzzle These heuristics were obtained by relaxing constraints … (Explain !!!) h1: The number of.
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
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
CS 561, Session 6 1 Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Artificial Intelligence Problem solving by searching CSC 361 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
Informed Search Idea: be smart about what paths to try.
Problem Solving and Search Andrea Danyluk September 11, 2013.
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 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..
Search with Costs and Heuristic Search 1 CPSC 322 – Search 3 January 17, 2011 Textbook §3.5.3, Taught by: Mike Chiang.
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.
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
Artificial Intelligence Problem solving by searching.
1 Kuliah 4 : Informed Search. 2 Outline Best-First Search Greedy Search A* Search.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Informed Search and Heuristics Chapter 3.5~7. Outline Best-first search Greedy best-first search A * search Heuristics.
Heuristic Search Foundations of Artificial Intelligence.
Heuristic Functions. A Heuristic is a function that, when applied to a state, returns a number that is an estimate of the merit of the state, with respect.
A* optimality proof, cycle checking CPSC 322 – Search 5 Textbook § 3.6 and January 21, 2011 Taught by Mike Chiang.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
G5AIAI Introduction to AI Graham Kendall Heuristic Searches.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
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.
Dept. Computer Science, Korea Univ. Intelligent Information System Lab A I (Artificial Intelligence) Professor I. J. Chung.
Review: Tree search Initialize the frontier using the starting state
Last time: Problem-Solving
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Department of Computer Science
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.
CAP 5636 – Advanced Artificial Intelligence
EA C461 – Artificial Intelligence
Artificial Intelligence
Informed search algorithms
(1) Breadth-First Search  S Queue S
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
Informed Search Idea: be smart about what paths to try.
Informed Search.
Supplemental slides for CSE 327 Prof. Jeff Heflin
“If I Only had a Brain” Search
Presentation transcript:

Problem Solving by Searching Search Methods : informed (Heuristic) search

2 Traditional informed search strategies Greedy Best first search “Always chooses the successor node with the best f value” where f(n) = h(n) We choose the one that is nearest to the final state among all possible choices A* search Best first search using an “admissible” heuristic function f that takes into account the current cost g Always returns the optimal solution path

Informed Search Strategies Best First Search

Informed Search Strategies Greedy Search eval-fn: f(n) = h(n)

5 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

6 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

7 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

8 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

9 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

10 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

11 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

12 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

13 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

14 Greedy Search ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140 dist(A-E-F-I) = = 450

15 Greedy Search: Tree Search ABCEFI GA 80 Start Goal [374] [329] [253] [193] [366] [178] E [0] [253] Path cost(A-E-F-I) = = 431 dist(A-E-F-I) = = 450

16 Greedy Search: Optimal ? ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic dist(A-E-G-H-I) = =418 StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 140

17 Greedy Search: Complete ? ABDCEFI GH 80 Start Goal f(n) = h (n) = straight-line distance heuristic StateHeuristic: h(n) A366 B374 ** C250 D244 E253 F178 G193 H98 I0 140

18 Greedy Search: Time and Space Complexity ? ABDCEFI GH 80 Start Goal Greedy search is not optimal. Greedy search is incomplete without systematic checking of repeated states. In the worst case, the Time and Space Complexity of Greedy Search are both O(b m ) Where b is the branching factor and m the maximum path length

Informed Search Strategies A* Search eval-fn: f(n)=g(n)+h(n)

20 A* (A Star) Greedy Search minimizes a heuristic h(n) which is an estimated cost from a node n to the goal state. However, although greedy search can considerably cut the search time (efficient), it is neither optimal nor complete. Uniform Cost Search minimizes the cost g(n) from the initial state to n. UCS is optimal and complete but not efficient. New Strategy: Combine Greedy Search and UCS to get an efficient algorithm which is complete and optimal.

21 A* (A Star) A* uses a heuristic function which combines g(n) and h(n): f(n) = g(n) + h(n) g(n) is the exact cost to reach node n from the initial state. Cost so far up to node n. h(n) is an estimation of the remaining cost to reach the goal.

22 A* (A Star) n g(n) h(n) f(n) = g(n)+h(n)

23 A* Search f(n) = g(n) + h (n) g(n): is the exact cost to reach node n from the initial state. StateHeuristic: h(n) A366 B374 C329 D244 E253 F178 G193 H98 I0 A B D C E F I G H 80 Start Goal