Informed Search A* Algorithm

Size: px
Start display at page:

Download "Informed Search A* Algorithm"

Transcription

1 Informed Search A* Algorithm CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Most slides have been adopted from Klein and Abdeel, CS188, UC Berkeley.

2 Outline Heuristics Greedy (best-first) search A * search Finding heuristics 2

3 Uninformed Search

4 Uniform Cost Search Strategy: expand lowest path cost c 1 c 2 c 3 The good: UCS is complete and optimal! The bad: Explores options in every direction No information about goal location Start Goal

5 UCS Example 5

6 Informed Search

7 Search Heuristics A heuristic is: A function that estimates how close a state is to a goal Designed for a particular search problem Examples: Manhattan distance, Euclidean distance for pathing

8 Heuristic Function Incorporating problem-specific knowledge in search Information more than problem definition In order to come to an optimal solution as rapidly as possible h n : estimated cost of cheapest path from n to a goal Depends only on n (not path from root to n) If n is a goal state then h(n)=0 h(n) 0 Examples of heuristic functions include using a rule-of-thumb, an educated guess, or an intuitive judgment 8

9 Example: Heuristic Function h(x)

10 Greedy Search

11 Greedy search Priority queue based on h(n) e.g., h SLD n = straight-line distance from n to Bucharest Greedy search expands the node that appears to be closest to goal Greedy 11

12 Example: Heuristic Function h(x)

13 Romania with step costs in km 13

14 Greedy best-first search example 14

15 Greedy best-first search example 15

16 Greedy best-first search example 16

17 Greedy best-first search example 17

18 Greedy Search Expand the node that seems closest What can go wrong?

19 Greedy Search Strategy: expand a node that you think is closest to a goal state Heuristic: estimate of distance to nearest goal for each state b A common case: Best-first takes you straight to the (wrong) goal Worst-case: like a badly-guided DFS b

20 Properties of greedy best-first search Complete? No Time Space Similar to DFS, only graph search version is complete in finite spaces Infinite loops, e.g., (Iasi to Fagaras) Iasi Neamt Iasi Neamt O(b m ), but a good heuristic can give dramatic improvement O(b m ): keeps all nodes in memory Optimal? No 20

21 Greedy Search 21

22 A* Search

23 A * search Idea: minimizing the total estimated solution cost Evaluation function for priority f n = g n + h(n) g n = cost so far to reach n h n = estimated cost of the cheapest path from n to goal So, f n = estimated total cost of path through n to goal Actual cost g n Estimated cost h n start n goal f n = g n + h(n) 24

24 Combining UCS and Greedy Uniform-cost orders by path cost, or backward cost g(n) Greedy orders by goal proximity, or forward cost h(n) 8 1 e h=1 g = 1 h=5 a S g = 0 h=6 1 3 S a d h=6 1 h=5 h=2 1 c b h=7 h=6 A* Search orders by the sum: f(n) = g(n) + h(n) 2 G h=0 g = 2 h=6 g = 3 h=7 b c d G g = 4 h=2 g = 6 h=0 e d G g = 9 h=1 g = 10 h=2 g = 12 h=0 Example: Teg Grenager

25 When should A* terminate? Should we stop when we enqueue a goal? 2 h = 2 A 2 S h = 3 h = 0 G 2 B 3 h = 1 No: only stop when we dequeue a goal

26 Is A* Optimal? h = 6 1 A 3 S h = 7 G h = 0 5 What went wrong? Actual bad goal cost < estimated good goal cost We need estimates to be less than actual costs!

27 Admissible Heuristics

28 Idea: Admissibility Inadmissible (pessimistic) heuristics break optimality by trapping good plans on the frontier Admissible (optimistic) heuristics slow down bad plans but never outweigh true costs

29 Admissible Heuristics A heuristic h is admissible (optimistic) if: where is the true cost to a nearest goal Examples: 15 Coming up with admissible heuristics is most of what s involved in using A* in practice.

30 Optimality of A* Tree Search

31 Optimality of A* Tree Search Assume: A is an optimal goal node B is a suboptimal goal node h is admissible Claim: A will exit the frontier before B

32 Optimality of A* Tree Search: Blocking Proof: Imagine B is on the frontier Some ancestor n of A is on the frontier, too (maybe A!) Claim: n will be expanded before B 1. f(n) is less or equal to f(a) f n g n + h (n) Definition of f-cost Admissibility of h g A = g n + h (n) h = 0 at a goal

33 Optimality of A* Tree Search: Blocking Proof: Imagine B is on the frontier Some ancestor n of A is on the frontier, too (maybe A!) Claim: n will be expanded before B 1. f(n) is less or equal to f(a) 2. f(a) is less than f(b) B is suboptimal h = 0 at a goal

34 Optimality of A* Tree Search: Blocking Proof: Imagine B is on the frontier Some ancestor n of A is on the frontier, too (maybe A!) Claim: n will be expanded before B 1. f(n) is less or equal to f(a) 2. f(a) is less than f(b) 3. n expands before B All ancestors of A expand before B A expands before B A* search is optimal

35 A * search Combines advantages of uniform-cost and greedy searches A * can be complete and optimal when h(n) has some properties 36

36 A * search: example 37

37 A * search: example 38

38 A * search: example 39

39 A * search: example 40

40 A * search: example 41

41 A * search: example 42

42 Properties of A* Uniform-Cost A* b b

43 A* Example 44

44 Example UCS Greedy A* 45

45 UCS vs A* Contours Uniform-cost (A* using h(n)=0) expands equally in all directions Start Goal A* expands mainly toward the goal, but does hedge its bets to ensure optimality More accurate heuristics stretched toward the goal (more narrowly focused around the optimal path) Start Goal States are points in 2-D Euclidean space. g(n)=distance from start h(n)=estimate of distance from goal

46 Comparison Uniform Cost Greedy A*

47 Graph Search

48 Tree Search: Extra Work! Failure to detect repeated states can cause exponentially more work. State Graph Search Tree

49 Graph Search In BFS, for example, we shouldn t bother expanding the circled nodes (why?) S d e p b c e h r q a a h r p q f p q f q c G q c G a a

50 Recall: Graph Search Idea: never expand a state twice How to implement: Tree search + set of expanded states ( closed set ) Expand the search tree node-by-node, but Before expanding a node, check to make sure its state has never been expanded before If not new, skip it, if new add to closed set Important: store the closed set as a set, not a list Can graph search wreck completeness? Why/why not? How about optimality?

51 Optimality of A* Graph Search

52 A* Graph Search Gone Wrong? State space graph Search tree S h=2 1 1 B A h=4 2 1 C h=1 3 S (0+2) A (1+4) B (1+1) C (2+1) C (3+1) h=1 G G (5+0) G (6+0) h=0

53 Conditions for optimality of A * Admissibility: h(n) be a lower bound on the cost to reach goal Condition for optimality of TREE-SEARCH version of A * Consistency (monotonicity): h n c n, a, n + h n Condition for optimality of GRAPH-SEARCH version of A * 54

54 Consistent heuristics Triangle inequality n c(n, a, n ) n h(n) h(n ) G for every node n and every successor n generated by any action a h n c n, a, n + h n c n, a, n : cost of generating n by applying action to n 55

55 Consistency of Heuristics Main idea: estimated heuristic costs actual costs Admissibility: heuristic cost actual cost to goal A h=4 1 C h=1 h=2 3 h(a) actual cost from A to G Consistency: heuristic arc cost actual cost for each arc h(a) h(c) cost(a to C) Consequences of consistency: The f value along a path never decreases h(a) cost(a to C) + h(c) G A* graph search is optimal

56 Optimality Tree search: A* is optimal if heuristic is admissible UCS is a special case (h = 0) Graph search: A* optimal if heuristic is consistent UCS optimal (h = 0 is consistent) Consistency implies admissibility In general, most natural admissible heuristics tend to be consistent, especially if from relaxed problems

57 Consistency implies admissibility Consistency Admissblity All consistent heuristic functions are admissible Nonetheless, most admissible heuristics are also consistent c(n 1, a 1, n 2 ) c(n 2, a 2, n 3 ) c(n k, a k, G) n 1 n 2 n 3 n k G h n 1 c n 1, a 1, n 2 + h(n 2 ) c n 1, a 1, n 2 + c n 2, a 2, n 3 + h(n 3 ) k i=1 c n i, a i, n i+1 + h(g) 0 h n 1 cost of (every) path from n 1 to goal cost of optimal path from n 1 to goal 58

58 Admissible but not consistent: Example G n n g n = 5 h n = 9 f(n) = 14 g n = 6 h n = 6 f(n ) = 12 c(n, a, n ) = 1 h(n) = 9 h(n ) = 6 h n h n + c(n, a, n ) f (for admissible heuristic) may decrease along a path Is there any way to make h consistent? h n = max(h n, h n c(n, a, n )) 59

59 Optimality of A* Graph Search Sketch: consider what A* does with a consistent heuristic: Fact 1: In graph search, A* expands nodes in increasing total f value (f-contours) Fact 2: For every state s, nodes that reach s optimally are expanded before nodes that reach s suboptimally Result: A* graph search is optimal f 1 f 2 f 3

60 Optimality of A * (consistent heuristics) Theorem: If h(n) is consistent, A* using GRAPH-SEARCH is optimal Lemma1: if h(n) is consistent then f(n) values are nondecreasing along any path Proof: Let n be a successor of n I. f(n ) = g(n ) + h(n ) II. g(n ) = g(n) + c(n, a, n ) III. I, II f n = g n + c n, a, n + h n IV. h n is consistent h n c n, a, n + h n V. III, IV f(n ) g(n) + h(n) = f(n) 61

61 Optimality of A * (consistent heuristics) Lemma 2: If A* selects a node n for expansion, the optimal path to that node has been found. Proof by contradiction: Another frontier node n must exist on the optimal path from initial node to n (using graph separation property). Moreover, based on Lemma 1, f n f n and thus n would have been selected first. Lemma 1 & 2 The sequence of nodes expanded by A* (using GRAPH- SEARCH) is in non-decreasing order of f(n) Since h = 0 for goal nodes, the first selected goal node for expansion is an optimal solution (f is the true cost for goal nodes) 62

62 Admissible vs. consistent (tree vs. graph search) Consistent heuristic: When selecting a node for expansion, the path with the lowest cost to that node has been found When an admissible heuristic is not consistent, a node will need repeated expansion, every time a new best (so-far) cost is achieved for it. 63

63 Contours in the state space (using GRAPH-SEARCH) expands nodes in order of increasing f value A * Gradually adds "f-contours" of nodes Contour i has all nodes with f = f i wheref i < f i+1 A* expands all nodes with f(n) < C* A* expands some nodes with f(n) = C* (nodes on the goal contour) A* expands no nodes with f(n) > C* pruning 64

64 Properties of A* Complete? Yes if nodes with f f G = C are finite Time? Step cost ε > 0 and b is finite Exponential But, with a smaller branching factor b h h or when equal step costs b d h h h Polynomial when h(x) h (x) = O(log h (x)) However,A* is optimally efficient for any given consistent heuristic Space? No optimal algorithm of this type is guaranteed to expand fewer nodes than A* (except to node with f = C ) Keeps all leaf and/or explored nodes in memory Optimal? Yes (expanding node in non-decreasing order of f) 65

65 Robot navigation example Initial state? Red cell States? Cells on rectangular grid (except to obstacle) Actions? Move to one of 8 neighbors (if it is not obstacle) Goal test? Green cell Path cost? Action cost is the Euclidean length of movement 66

66 A* vs. UCS: Robot navigation example Heuristic: Euclidean distance to goal Expanded nodes: filled circles in red & green Color indicating g value (red: lower, green: higher) Frontier: empty nodes with blue boundary Nodes falling inside the obstacle are discarded 67 Adopted from:

67 Robot navigation: Admissible heuristic Is Manhattan d M x, y = x 1 y 1 + x 2 y 2 distance an admissible heuristic for previous example? 68

68 A*: inadmissible heuristic h = 5 h_sld h = h_sld Adopted from: 69

69 A*: Summary

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

71 Creating Heuristics

72 Creating Admissible Heuristics Most of the work in solving hard search problems optimally is in coming up with admissible heuristics Often, admissible heuristics are solutions to relaxed problems, where new actions are available Inadmissible heuristics are often useful too

73 Example: 8 Puzzle Start State Actions Goal State What are the states? How many states? What are the actions? How many successors from the start state? What should the costs be?

74 8 Puzzle: Heuristic h1 Heuristic: Number of tiles misplaced Why is it admissible? h1(start) = 8 Start State Goal State Average nodes expanded when the optimal path has 4 steps 8 steps 12 steps UCS 112 6, x 10 6 A*(h1) Statistics from Andrew Moore

75 Admissible heuristics: 8-puzzle h 1 (n) = number of misplaced tiles h 2 (n) = sum of Manhattan distance of tiles from their target position i.e., no. of squares from desired location of each tile h 1 (S) = h 2 (S) = = 18 76

76 8 Puzzle: Heuristic h2 What if we had an easier 8-puzzle where any tile could slide any direction at any time, ignoring other tiles? Total Manhattan distance Start State Goal State Why is it admissible? h2(start) = = 18 Average nodes expanded when the optimal path has 4 steps 8 steps 12 steps A*(h1) A*(h2)

77 8 Puzzle: heuristic How about using the actual cost as a heuristic? Would it be admissible? Would we save on nodes expanded? What s wrong with it? With A*: a trade-off between quality of estimate and work per node As heuristics get closer to the true cost, you will expand fewer nodes but usually do more work per node to compute the heuristic itself

78 Effect of heuristic on accuracy N: number of generated nodes by A* d: solution depth Effective branching factor b : branching factor of a uniform tree of depth d containing N + 1 nodes. N + 1 = 1 + b + (b ) (b ) d Well-defined heuristic: b is close to one 79

79 Comparison on 8-puzzle Search Cost (N) d IDS A*(h 1 ) A*(h 2 ) Effective branching factor (b ) d IDS A*(h 1 ) A*(h 2 )

80 Heuristic quality If n, h 2 (n) h 1 (n) (both admissible) then h 2 dominates h 1 and it is better for search Surely expanded nodes: f n < C h n < C g n If h 2 (n) h 1 (n) then every node expanded for h 2 will also be surely expanded with h 1 (h 1 may also causes some more node expansion) 81

81 More accurate heuristic Max of admissible heuristics is admissible (while it is a more accurate estimate) h n = max(h 1 n, h 2 n ) How about using the actual cost as a heuristic? h(n) = h (n) for all n Will go straight to the goal?! Trade of between accuracy and computation time 82

82 Trivial Heuristics, Dominance Dominance: h a h c if Heuristics form a semi-lattice: Max of admissible heuristics is admissible Trivial heuristics Bottom of lattice is the zero heuristic (what does this give us?) Top of lattice is the exact heuristic

83 Generating heuristics Relaxed problems Inventing admissible heuristics automatically Sub-problems (pattern databases) Learning heuristics from experience 84

84 Relaxed problem Relaxed problem: Problem with fewer restrictions on the actions Optimal solution to the relaxed problem may be computed easily (without search) The cost of an optimal solution to a relaxed problem is an admissible heuristic for the original problem The optimal solution is the shortest path in the super-graph of the statespace. 85

85 Relaxed problem: 8-puzzle 8-Puzzle: move a tile from square A to B if A is adjacent (left, right, above, below) to B and B is blank Relaxed problems 1) can move from A to B if A is adjacent to B (ignore whether or not position is blank) 2) can move from A to B if B is blank (ignore adjacency) 3) can move from A to B (ignore both conditions) Admissible heuristics for original problem (h 1 (n) and h 2 (n)) are optimal path costs for relaxed problems 86 First case: a tile can move to any adjacent square h 2 (n) Third case: a tile can move anywhere h 1 (n)

86 Sub-problem heuristic The cost to solve a sub-problem Store exact solution costs for every possible sub-problem Admissible? The cost of the optimal solution to this problem is a lower bound on the cost of the complete problem 87

87 Pattern databases heuristics Storing the exact solution cost for every possible subproblem instance Combination (taking maximum) of heuristics resulted by different sub-problems Puzzle: 10 3 times reduction in no. of generated nodes vs. h 2

88 Disjoint pattern databases Adding these pattern-database heuristics yields an admissible heuristic?! Dividing up the problem such that each move affects only one sub-problem (disjoint sub-problems) and then adding heuristics 15-puzzle: 10 4 times reduction in no. of generated nodes vs. h 2 24-Puzzle: 10 6 times reduction in no. of generated nodes vs. h 2 Can Rubik s cube be divided up to disjoint sub-problems? 89

89 Learning heuristics from experience Machine Learning Techniques Learn h(n) from samples of optimally solved problems (predicting solution cost for other states) Features of state (instead of raw state description) 8-puzzle number of misplaced tiles number of adjacent pairs of tiles that are not adjacent in the goal state Linear Combination of features 90

Informed search. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016

Informed search. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Informed search CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Best-first search Greedy

More information

CSCI 446: Artificial Intelligence

CSCI 446: Artificial Intelligence CSCI 446: Artificial Intelligence Informed Search Instructor: Michele Van Dyne [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available

More information

CS 188: Artificial Intelligence

CS 188: Artificial Intelligence CS 188: Artificial Intelligence Today Informed Search Informed Search Heuristics Greedy Search A* Search Instructor: Marco Alvarez University of Rhode Island (These slides were created/modified by Dan

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Informed Search Prof. Scott Niekum University of Texas at Austin [These slides based on ones created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

CS 343H: Artificial Intelligence

CS 343H: Artificial Intelligence CS 343H: Artificial Intelligence Lecture 4: Informed Search 1/23/2014 Slides courtesy of Dan Klein at UC-Berkeley Unless otherwise noted Today Informed search Heuristics Greedy search A* search Graph search

More information

Today. Informed Search. Graph Search. Heuristics Greedy Search A* Search

Today. Informed Search. Graph Search. Heuristics Greedy Search A* Search Informed Search [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at http://ai.berkeley.edu.] Today Informed Search Heuristics

More information

Artificial Intelligence Informed Search

Artificial Intelligence Informed Search Artificial Intelligence Informed Search Instructors: David Suter and Qince Li Course Delivered @ Harbin Institute of Technology [Many slides adapted from those created by Dan Klein and Pieter Abbeel for

More information

521495A: Artificial Intelligence

521495A: Artificial Intelligence 521495A: Artificial Intelligence Informed Search Lectured by Abdenour Hadid Adjunct Professor, CMVS, University of Oulu Slides adopted from http://ai.berkeley.edu Today Informed Search Heuristics Greedy

More information

Announcements. CS 188: Artificial Intelligence

Announcements. CS 188: Artificial Intelligence Announcements Projects: Looking for project partners? --- Come to front after lecture. Try pair programming, not divide-and-conquer Account forms available up front during break and after lecture Assignments

More information

CE 473: Artificial Intelligence. Autumn 2011

CE 473: Artificial Intelligence. Autumn 2011 CE 473: Artificial Intelligence Autumn 2011 A* Search Luke Zettlemoyer Based on slides from Dan Klein Multiple slides from Stuart Russell or Andrew Moore Today A* Search Heuristic Design Graph search Recap:

More information

Graphs vs trees up front; use grid too; discuss for BFS, DFS, IDS, UCS Cut back on A* optimality detail; a bit more on importance of heuristics,

Graphs vs trees up front; use grid too; discuss for BFS, DFS, IDS, UCS Cut back on A* optimality detail; a bit more on importance of heuristics, Graphs vs trees up front; use grid too; discuss for BFS, DFS, IDS, UCS Cut back on A* optimality detail; a bit more on importance of heuristics, performance data Pattern DBs? General Tree Search function

More information

Solving problems by searching

Solving problems by searching Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2017 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Search Algorithms Instructor: Wei Xu Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley.] Today Agents that Plan Ahead Search Problems

More information

Solving problems by searching

Solving problems by searching Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2014 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving

More information

Chapter 3: Informed Search and Exploration. Dr. Daisy Tang

Chapter 3: Informed Search and Exploration. Dr. Daisy Tang Chapter 3: Informed Search and Exploration Dr. Daisy Tang Informed Search Definition: Use problem-specific knowledge beyond the definition of the problem itself Can find solutions more efficiently Best-first

More information

Outline. Best-first search

Outline. Best-first search Outline Best-first search Greedy best-first search A* search Heuristics Admissible Heuristics Graph Search Consistent Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing

More information

CS 188: Artificial Intelligence Fall Search Gone Wrong?

CS 188: Artificial Intelligence Fall Search Gone Wrong? CS 188: Artificial Intelligence Fall 2009 Lecture 3: A* Search 9/3/2009 Pieter Aeel UC Berkeley Many slides from Dan Klein Search Gone Wrong? 1 Announcements Assignments: Project 0 (Python tutorial): due

More information

Informed Search and Exploration for Agents

Informed Search and Exploration for Agents Informed Search and Exploration for Agents R&N: 3.5, 3.6 Michael Rovatsos University of Edinburgh 29 th January 2015 Outline Best-first search Greedy best-first search A * search Heuristics Admissibility

More information

Outline. Best-first search

Outline. Best-first search Outline Best-first search Greedy best-first search A* search Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing search Genetic algorithms Constraint Satisfaction Problems

More information

Informed search strategies (Section ) Source: Fotolia

Informed search strategies (Section ) Source: Fotolia Informed search strategies (Section 3.5-3.6) Source: Fotolia Review: Tree search Initialize the frontier using the starting state While the frontier is not empty Choose a frontier node to expand according

More information

A.I.: Informed Search Algorithms. Chapter III: Part Deux

A.I.: Informed Search Algorithms. Chapter III: Part Deux A.I.: Informed Search Algorithms Chapter III: Part Deux Best-first search Greedy best-first search A * search Heuristics Outline Overview Informed Search: uses problem-specific knowledge. General approach:

More information

Informed Search Lecture 5

Informed Search Lecture 5 Lecture 5 How can we exploit problem-specific knowledge to find solutions more efficiently? Where does this knowledge come from and under what conditions is it useful? 1 Agenda Review: Uninformed Search

More information

Informed/Heuristic Search

Informed/Heuristic Search Informed/Heuristic Search Outline Limitations of uninformed search methods Informed (or heuristic) search uses problem-specific heuristics to improve efficiency Best-first A* Techniques for generating

More information

CS 771 Artificial Intelligence. Informed Search

CS 771 Artificial Intelligence. Informed Search CS 771 Artificial Intelligence Informed Search Outline Review limitations of uninformed search methods Informed (or heuristic) search Uses problem-specific heuristics to improve efficiency Best-first,

More information

CSE 40171: Artificial Intelligence. Informed Search: A* Search

CSE 40171: Artificial Intelligence. Informed Search: A* Search CSE 40171: Artificial Intelligence Informed Search: A* Search 1 Homework #1 has been released. It is due at 11:59PM on 9/10. 2 Quick Recap: Search Quick Recap: Search Search problem: States (configurations

More information

Outline. Informed search algorithms. Best-first search. Review: Tree search. A search Heuristics. Chapter 4, Sections 1 2 4

Outline. Informed search algorithms. Best-first search. Review: Tree search. A search Heuristics. Chapter 4, Sections 1 2 4 Outline Best-first search Informed search algorithms A search Heuristics Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Informed Search and Exploration Chapter 4 (4.1 4.2) A General Search algorithm: Chapter 3: Search Strategies Task : Find a sequence of actions leading from the initial state to

More information

Heuristic Search. Rob Platt Northeastern University. Some images and slides are used from: AIMA

Heuristic Search. Rob Platt Northeastern University. Some images and slides are used from: AIMA Heuristic Search Rob Platt Northeastern University Some images and slides are used from: AIMA Recap: What is graph search? Start state Goal state Graph search: find a path from start to goal what are the

More information

Lecture 4: Informed/Heuristic Search

Lecture 4: Informed/Heuristic Search Lecture 4: Informed/Heuristic Search Outline Limitations of uninformed search methods Informed (or heuristic) search uses problem-specific heuristics to improve efficiency Best-first A* RBFS SMA* Techniques

More information

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Informed Search Readings R&N - Chapter 3: 3.5 and 3.6 Search Search strategies determined by choice of node (in queue)

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Today: Informed search algorithms

More information

COMP9414/ 9814/ 3411: Artificial Intelligence. 5. Informed Search. Russell & Norvig, Chapter 3. UNSW c Alan Blair,

COMP9414/ 9814/ 3411: Artificial Intelligence. 5. Informed Search. Russell & Norvig, Chapter 3. UNSW c Alan Blair, COMP9414/ 9814/ 3411: Artificial Intelligence 5. Informed Search Russell & Norvig, Chapter 3. COMP9414/9814/3411 15s1 Informed Search 1 Search Strategies General Search algorithm: add initial state to

More information

Informed Search and Exploration

Informed Search and Exploration Ch. 03 p.1/47 Informed Search and Exploration Sections 3.5 and 3.6 Ch. 03 p.2/47 Outline Best-first search A search Heuristics, pattern databases IDA search (Recursive Best-First Search (RBFS), MA and

More information

Informed search algorithms

Informed search algorithms Artificial Intelligence Topic 4 Informed search algorithms Best-first search Greedy search A search Admissible heuristics Memory-bounded search IDA SMA Reading: Russell and Norvig, Chapter 4, Sections

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Search Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Problem formulation & examples Basic search algorithms 2/100 Example:

More information

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell) Informed search algorithms (Based on slides by Oren Etzioni, Stuart Russell) Outline Greedy best-first search A * search Heuristics Local search algorithms Hill-climbing search Simulated annealing search

More information

ARTIFICIAL INTELLIGENCE. Informed search

ARTIFICIAL INTELLIGENCE. Informed search INFOB2KI 2017-2018 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Informed search Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html

More information

Informed search algorithms. Chapter 4

Informed search algorithms. Chapter 4 Informed search algorithms Chapter 4 Material Chapter 4 Section 1 - Exclude memory-bounded heuristic search 3 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms

More information

Informed search algorithms

Informed search algorithms Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)

More information

CS 331: Artificial Intelligence Informed Search. Informed Search

CS 331: Artificial Intelligence Informed Search. Informed Search CS 331: Artificial Intelligence Informed Search 1 Informed Search How can we make search smarter? Use problem-specific knowledge beyond the definition of the problem itself Specifically, incorporate knowledge

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 Artificial Intelligence Spring 2018 Informed Search Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart

More information

Heuristic Search. Robert Platt Northeastern University. Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA

Heuristic Search. Robert Platt Northeastern University. Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA Heuristic Search Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA Recap: What is graph search? Start state Goal state Graph search: find a path

More information

Outline for today s lecture. Informed Search I. One issue: How to search backwards? Very briefly: Bidirectional search. Outline for today s lecture

Outline for today s lecture. Informed Search I. One issue: How to search backwards? Very briefly: Bidirectional search. Outline for today s lecture Outline for today s lecture Informed Search I Uninformed Search Briefly: Bidirectional Search (AIMA 3.4.6) Uniform Cost Search (UCS) Informed Search Introduction to Informed search Heuristics 1 st attempt:

More information

CS 331: Artificial Intelligence Informed Search. Informed Search

CS 331: Artificial Intelligence Informed Search. Informed Search CS 331: Artificial Intelligence Informed Search 1 Informed Search How can we make search smarter? Use problem-specific knowledge beyond the definition of the problem itself Specifically, incorporate knowledge

More information

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Informed Search Readings R&N - Chapter 3: 3.5 and 3.6 Search Search strategies determined by choice of node (in

More information

CSE 473. Chapter 4 Informed Search. CSE AI Faculty. Last Time. Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search

CSE 473. Chapter 4 Informed Search. CSE AI Faculty. Last Time. Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search CSE 473 Chapter 4 Informed Search CSE AI Faculty Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search Last Time 2 1 Repeated States Failure to detect repeated states can turn a linear

More information

Informed search algorithms. Chapter 3 (Based on Slides by Stuart Russell, Dan Klein, Richard Korf, Subbarao Kambhampati, and UW-AI faculty)

Informed search algorithms. Chapter 3 (Based on Slides by Stuart Russell, Dan Klein, Richard Korf, Subbarao Kambhampati, and UW-AI faculty) Informed search algorithms Chapter 3 (Based on Slides by Stuart Russell, Dan Klein, Richard Korf, Subbarao Kambhampati, and UW-AI faculty) Intuition, like the rays of the sun, acts only in an inflexibly

More information

Informed Search and Exploration

Informed Search and Exploration Ch. 03b p.1/51 Informed Search and Exploration Sections 3.5 and 3.6 Nilufer Onder Department of Computer Science Michigan Technological University Ch. 03b p.2/51 Outline Best-first search A search Heuristics,

More information

Informed Search Algorithms

Informed Search Algorithms Informed Search Algorithms CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2017, Semester 2 Introduction

More information

Lecture 5 Heuristics. Last Time: A* Search

Lecture 5 Heuristics. Last Time: A* Search CSE 473 Lecture 5 Heuristics CSE AI Faculty Last Time: A* Search Use an evaluation function f(n) for node n. f(n) = estimated total cost of path thru n to goal f(n) = g(n) + h(n) g(n) = cost so far to

More information

Ar#ficial)Intelligence!!

Ar#ficial)Intelligence!! Introduc*on! Ar#ficial)Intelligence!! Roman Barták Department of Theoretical Computer Science and Mathematical Logic Uninformed (blind) search algorithms can find an (optimal) solution to the problem,

More information

Informed Search. CS 486/686 University of Waterloo May 10. cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart

Informed Search. CS 486/686 University of Waterloo May 10. cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart Informed Search CS 486/686 University of Waterloo May 0 Outline Using knowledge Heuristics Best-first search Greedy best-first search A* search Other variations of A* Back to heuristics 2 Recall from last

More information

Artificial Intelligence Informed search. Peter Antal

Artificial Intelligence Informed search. Peter Antal Artificial Intelligence Informed search Peter Antal antal@mit.bme.hu 1 Informed = use problem-specific knowledge Which search strategies? Best-first search and its variants Heuristic functions? How to

More information

Informed Search. Best-first search. Greedy best-first search. Intelligent Systems and HCI D7023E. Romania with step costs in km

Informed Search. Best-first search. Greedy best-first search. Intelligent Systems and HCI D7023E. Romania with step costs in km Informed Search Intelligent Systems and HCI D7023E Lecture 5: Informed Search (heuristics) Paweł Pietrzak [Sec 3.5-3.6,Ch.4] A search strategy which searches the most promising branches of the state-space

More information

mywbut.com Informed Search Strategies-I

mywbut.com Informed Search Strategies-I Informed Search Strategies-I 1 3.1 Introduction We have outlined the different types of search strategies. In the earlier chapter we have looked at different blind search strategies. Uninformed search

More information

Informed search algorithms. Chapter 4, Sections 1 2 1

Informed search algorithms. Chapter 4, Sections 1 2 1 Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)

More information

Introduction to Artificial Intelligence. Informed Search

Introduction to Artificial Intelligence. Informed Search Introduction to Artificial Intelligence Informed Search Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Best-first search A search Heuristics B. Beckert:

More information

Mustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, Chapter 3 Informed Searching. Mustafa Jarrar. University of Birzeit

Mustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, Chapter 3 Informed Searching. Mustafa Jarrar. University of Birzeit Mustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, 2018 Chapter 3 Informed Searching Mustafa Jarrar University of Birzeit Jarrar 2018 1 Watch this lecture and download the slides

More information

Artificial Intelligence: Search Part 2: Heuristic search

Artificial Intelligence: Search Part 2: Heuristic search Artificial Intelligence: Search Part 2: Heuristic search Thomas Trappenberg January 16, 2009 Based on the slides provided by Russell and Norvig, Chapter 4, Section 1 2,(4) Outline Best-first search A search

More information

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE Artificial Intelligence, Computational Logic PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE Lecture 3 Informed Search Sarah Gaggl Dresden, 22th April 2014 Agenda 1 Introduction 2 Uninformed Search

More information

TDDC17. Intuitions behind heuristic search. Recall Uniform-Cost Search. Best-First Search. f(n) =... + h(n) g(n) = cost of path from root node to n

TDDC17. Intuitions behind heuristic search. Recall Uniform-Cost Search. Best-First Search. f(n) =... + h(n) g(n) = cost of path from root node to n Intuitions behind heuristic search The separation property of GRAPH-SEARCH TDDC17 Seminar III Search II Informed or Heuristic Search Beyond Classical Search Find a heuristic measure h(n) which estimates

More information

Solving problems by searching

Solving problems by searching Solving problems by searching Chapter 3 Some slide credits to Hwee Tou Ng (Singapore) Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Heuristics

More information

CS 380: Artificial Intelligence Lecture #4

CS 380: Artificial Intelligence Lecture #4 CS 380: Artificial Intelligence Lecture #4 William Regli Material Chapter 4 Section 1-3 1 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms Hill-climbing

More information

Informed (Heuristic) Search. Idea: be smart about what paths to try.

Informed (Heuristic) Search. Idea: be smart about what paths to try. Informed (Heuristic) Search Idea: be smart about what paths to try. 1 Blind Search vs. Informed Search What s the difference? How do we formally specify this? A node is selected for expansion based on

More information

Informed Search. Notes about the assignment. Outline. Tree search: Reminder. Heuristics. Best-first search. Russell and Norvig chap.

Informed Search. Notes about the assignment. Outline. Tree search: Reminder. Heuristics. Best-first search. Russell and Norvig chap. Notes about the assignment Informed Search Russell and Norvig chap. 4 If it says return True or False, return True or False, not "True" or "False Comment out or remove print statements before submitting.

More information

Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 3: Search 2.

Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 3: Search 2. Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu Lecture 3: Search 2 http://cs.nju.edu.cn/yuy/course_ai18.ashx Previously... function Tree-Search( problem, fringe) returns a solution,

More information

Outline for today s lecture. Informed Search. Informed Search II. Review: Properties of greedy best-first search. Review: Greedy best-first search:

Outline for today s lecture. Informed Search. Informed Search II. Review: Properties of greedy best-first search. Review: Greedy best-first search: Outline for today s lecture Informed Search II Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing 2 Review: Greedy best-first search: f(n): estimated

More information

Informed search algorithms

Informed search algorithms Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations

More information

S A E RC R H C I H NG N G IN N S T S A T T A E E G R G A R PH P S

S A E RC R H C I H NG N G IN N S T S A T T A E E G R G A R PH P S LECTURE 2 SEARCHING IN STATE GRAPHS Introduction Idea: Problem Solving as Search Basic formalism as State-Space Graph Graph explored by Tree Search Different algorithms to explore the graph Slides mainly

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Dr Ahmed Rafat Abas Computer Science Dept, Faculty of Computers and Informatics, Zagazig University arabas@zu.edu.eg http://www.arsaliem.faculty.zu.edu.eg/ Informed search algorithms

More information

A* optimality proof, cycle checking

A* optimality proof, cycle checking A* optimality proof, cycle checking CPSC 322 Search 5 Textbook 3.6 and 3.7.1 January 21, 2011 Taught by Mike Chiang Lecture Overview Recap Admissibility of A* Cycle checking and multiple path pruning Slide

More information

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit Lecture Notes on Informed Searching University of Birzeit, Palestine 1 st Semester, 2014 Artificial Intelligence Chapter 4 Informed Searching Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu

More information

Problem Solving and Search

Problem Solving and Search Artificial Intelligence Problem Solving and Search Dae-Won Kim School of Computer Science & Engineering Chung-Ang University Outline Problem-solving agents Problem types Problem formulation Example problems

More information

Informed Search Methods

Informed Search Methods Informed Search Methods How can we improve searching strategy by using intelligence? Map example: Heuristic: Expand those nodes closest in as the crow flies distance to goal 8-puzzle: Heuristic: Expand

More information

COMP9414: Artificial Intelligence Informed Search

COMP9414: Artificial Intelligence Informed Search COMP9, Wednesday March, 00 Informed Search COMP9: Artificial Intelligence Informed Search Wayne Wobcke Room J- wobcke@cse.unsw.edu.au Based on slides by Maurice Pagnucco Overview Heuristics Informed Search

More information

Heuris'c Search. Reading note: Chapter 4 covers heuristic search.

Heuris'c Search. Reading note: Chapter 4 covers heuristic search. Heuris'c Search Reading note: Chapter 4 covers heuristic search. Credits: Slides in this deck are drawn from or inspired by a multitude of sources including: Shaul Markovitch Jurgen Strum Sheila McIlraith

More information

Planning, Execution & Learning 1. Heuristic Search Planning

Planning, Execution & Learning 1. Heuristic Search Planning Planning, Execution & Learning 1. Heuristic Search Planning Reid Simmons Planning, Execution & Learning: Heuristic 1 Simmons, Veloso : Fall 2001 Basic Idea Heuristic Search Planning Automatically Analyze

More information

A* Optimality CS4804

A* Optimality CS4804 A* Optimality CS4804 Plan A* in a tree A* in a graph How to handle multiple paths to a node Intuition about consistency Search space + heuristic design practice A* Search Expand node in frontier with best

More information

Informed search. Lirong Xia

Informed search. Lirong Xia Informed search Lirong Xia Spring, 207 Last class ØSearch problems state space graph: modeling the problem search tree: scratch paper for solving the problem ØUninformed search BFS DFS 2 Today s schedule

More information

Introduction to Artificial Intelligence (G51IAI)

Introduction to Artificial Intelligence (G51IAI) Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Heuristic Searches Blind Search vs. Heuristic Searches Blind search Randomly choose where to search in the search tree When problems get large,

More information

Heuristic Search. Heuristic Search. Heuristic Search. CSE 3401: Intro to AI & LP Informed Search

Heuristic Search. Heuristic Search. Heuristic Search. CSE 3401: Intro to AI & LP Informed Search CSE 3401: Intro to AI & LP Informed Search Heuristic Search. Required Readings: Chapter 3, Sections 5 and 6, and Chapter 4, Section 1. In uninformed search, we don t try to evaluate which of the nodes

More information

Advanced Artificial Intelligence (DT4019, HT10)

Advanced Artificial Intelligence (DT4019, HT10) Advanced Artificial Intelligence (DT4019, HT10) Problem Solving and Search: Informed Search Strategies (I) Federico Pecora School of Science and Technology Örebro University federico.pecora@oru.se Federico

More information

TDDC17. Intuitions behind heuristic search. Best-First Search. Recall Uniform-Cost Search. f(n) =... + h(n) g(n) = cost of path from root node to n

TDDC17. Intuitions behind heuristic search. Best-First Search. Recall Uniform-Cost Search. f(n) =... + h(n) g(n) = cost of path from root node to n Intuitions behind heuristic search The separation property of GRAPH-SEARCH TDDC17 Seminar III Search II Informed or Heuristic Search Beyond Classical Search Find a heuristic measure h(n) which estimates

More information

Part I. Instructor: Dr. Wei Ding. Uninformed Search Strategies can find solutions to problems by. Informed Search Strategies

Part I. Instructor: Dr. Wei Ding. Uninformed Search Strategies can find solutions to problems by. Informed Search Strategies Informed Search and Exploration Part I Instructor: Dr. Wei Ding Fall 2010 1 Motivation Uninformed Search Strategies can find solutions to problems by Systematically generating new states Testing them against

More information

Problem Solving: Informed Search

Problem Solving: Informed Search Problem Solving: Informed Search References Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003 (Chapters 1,2, and 4) Nilsson, Artificial intelligence: A New synthesis.

More information

CSC384: Intro to Artificial Intelligence Search III

CSC384: Intro to Artificial Intelligence Search III CSC384: Intro to Artificial Intelligence Search III 4 Prolog Tutorials: T1, T2, T3, and T4 T1: Fri Sep 22 10-11am SS2127 T2: Fri Sep 22 4-5pm BA3012 T3: Fri Sep 29 10-11am SS2127 T4: Fri Sep 29 4-5pm BA3012

More information

Artificial Intelligence. Informed search methods

Artificial Intelligence. Informed search methods Artificial Intelligence Informed search methods In which we see how information about the state space can prevent algorithms from blundering about in the dark. 2 Uninformed vs. Informed Search Uninformed

More information

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Chapter 4 Informed Searching Dr. Mustafa

More information

Informed Search Algorithms. Chapter 4

Informed Search Algorithms. Chapter 4 Informed Search Algorithms Chapter 4 Outline Informed Search and Heuristic Functions For informed search, we use problem-specific knowledge to guide the search. Topics: Best-first search A search Heuristics

More information

Lecture 2: Fun with Search. Rachel Greenstadt CS 510, October 5, 2017

Lecture 2: Fun with Search. Rachel Greenstadt CS 510, October 5, 2017 Lecture 2: Fun with Search Rachel Greenstadt CS 510, October 5, 2017 Reminder! Project pre-proposals due tonight Overview Uninformed search BFS, DFS, Uniform-Cost, Graph-Search Informed search Heuristics,

More information

Informed search algorithms

Informed search algorithms Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations

More information

Informed search algorithms

Informed search algorithms Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations

More information

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 19 January, 2018

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 19 January, 2018 DIT411/TIN175, Artificial Intelligence Chapter 3: Classical search algorithms CHAPTER 3: CLASSICAL SEARCH ALGORITHMS DIT411/TIN175, Artificial Intelligence Peter Ljunglöf 19 January, 2018 1 DEADLINE FOR

More information

CS 188: Artificial Intelligence. Recap Search I

CS 188: Artificial Intelligence. Recap Search I CS 188: Artificial Intelligence Review of Search, CSPs, Games DISCLAIMER: It is insufficient to simply study these slides, they are merely meant as a quick refresher of the high-level ideas covered. You

More information

Informed search algorithms. Chapter 4

Informed search algorithms. Chapter 4 Informed search algorithms Chapter 4 Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search Best-first search Idea: use an evaluation function f(n) for each node

More information

Heuristic (Informed) Search

Heuristic (Informed) Search Heuristic (Informed) Search (Where we try to choose smartly) R&N: Chap. 4, Sect. 4.1 3 1 Recall that the ordering of FRINGE defines the search strategy Search Algorithm #2 SEARCH#2 1. INSERT(initial-node,FRINGE)

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence hapter 1 hapter 1 1 Iterative deepening search function Iterative-Deepening-Search( problem) returns a solution inputs: problem, a problem for depth 0 to do result Depth-Limited-Search(

More information

Today s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004

Today s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004 Today s s lecture Search and Agents Material at the end of last lecture Lecture 3: Search - 2 Victor R. Lesser CMPSCI 683 Fall 2004 Continuation of Simple Search The use of background knowledge to accelerate

More information

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell) Informed search algorithms (Based on slides by Oren Etzioni, Stuart Russell) The problem # Unique board configurations in search space 8-puzzle 9! = 362880 15-puzzle 16! = 20922789888000 10 13 24-puzzle

More information

Informed Search. CS 486/686: Introduction to Artificial Intelligence Fall 2013

Informed Search. CS 486/686: Introduction to Artificial Intelligence Fall 2013 Informed Search CS 486/686: Introduction to Artificial Intelligence Fall 2013 1 Outline Using knowledge Heuristics Bestfirst search Greedy bestfirst search A* search Variations of A* Back to heuristics

More information