CS 5100: Founda.ons of Ar.ficial Intelligence

Size: px
Start display at page:

Download "CS 5100: Founda.ons of Ar.ficial Intelligence"

Transcription

1 CS 5100: Founda.ons of Ar.ficial Intelligence Search Problems and Solutions Prof. Amy Sliva October 6, 2011

2 Outline Review inference in FOL Most general unidiers Conversion to CNF UniDication algorithm Backward chaining Search Problems Uninformed search Informed search (maybe )

3 Review: Find a MGU for the following pairs (if one exists) 1. Isa(Fido,Dog) Isa(x, Dog) 2. Isa(x,Dog) Isa(y,z) 3. Likes(x,Owner(x)) Likes(John, Owner(Fido)) 4. Likes(x,Owner(y)) Likes(John, z) 5. Likes(x,Owner(y)) Likes(Fido, Father(John))

4 Review: Find a MGU for the following pairs (if one exists) 1. Isa(Fido,Dog) Isa(x, Dog) θ = {x/fido} 2. Isa(x,Dog) Isa(y,z) θ = {x/y, z/dog} 3. Likes(x,Owner(x)) Likes(John, Owner(Fido)) None 4. Likes(x,Owner(y)) Likes(John, z) θ = {x/john, z/owner(y)} 5. Likes(x,Owner(y)) Likes(Fido, Father(John)) None

5 Review: Steps in conver.ng FOL to CNF Remove implications Move negation inward Standardize variable names Skolemize (drop existential quantidiers) x y z [ Knows(x, z) Knows(y, z) ] becomes x y [Knows(x, F(x,y)) Knows(y, F(x,y)) ] x z y [ Knows(x, z) Knows(y, z) ] becomes x y [Knows(x, F(x)) Knows(y, F(x)) ] Drop universal quantidiers Distribute over

6 Conversion to CNF Examples 1. y z [ City(z) Team- from(y, z) Winner(y, SuperBowl) ] 2. x y [ Student(x) TakingClass(x, y) z [ Grade(z) GradeFor(x, y, z)] ] 3. w [ z [ House(z) ( Owns(w, z) Rents(w, z) ) ] CreditWorthy(w) ]

7 Conversion to CNF Examples 1. y z [ City(z) Team- from(y, z) Winner(y, SuperBowl) ] City(g2) Team- from(g1, g2) Winner(g1, SuperBowl) 2. x y [ Student(x) TakingClass(x, y) z [ Grade(z) GradeFor(x, y, z)] ] ( Student(x) TakingClass(x, y) Grade(z)) ( Student(x) TakingClass(x, y) GradeFor(x, y, z)) 3. w [ z [ House(z) ( Owns(w, z) Rents(w, z) ) ] CreditWorthy(w) ] ( House(z) Owns(w, z) CreditWorthy(w)) ( House(z) Rents(w, z) CreditWorthy(w))

8 Unifica.on Algorithm and Op(x) = Op(y) then

9 Unifica.on Algorithm (cont.) Using compose

10 Unifica.on algorithm in ac.on Unify Likes(y,x) with Likes(x,John)

11 Unifica.on algorithm in ac.on and Op(x) = Op(y) then call UNIFY(Likes(y,x), Likes(x,John), [ ]) return UNIFY([y,x], [x,john], [ ])

12 Unifica.on algorithm in ac.on and Op(x) = Op(y) then call UNIFY([y,x], [x,john], [ ]) return UNIFY([x], [John], UNIFY([y],[x],[ ]))

13 Unifica.on algorithm in ac.on and Op(x) = Op(y) then call UNIFY(y,x,[ ]) return UNIFY- VAR(y,x,[ ])

14 Unifica.on algorithm in ac.on # Using compose call UNIFY- VAR(y,x,[ ]) return θ = {y/x}

15 Unifica.on algorithm in ac.on Unify Likes(y,x) with Likes(x,John) First step: θ = {y/x}

16 Unifica.on algorithm in ac.on and Op(x) = Op(y) then call UNIFY([y,x], [x,john], [ ]) return UNIFY(x, John, θ = {y/x})

17 Unifica.on algorithm in ac.on and Op(x) = Op(y) then call UNIFY(x, John, θ = {y/x}) return UNIFY- VAR(x,John, θ = {y/x})

18 Unifica.on algorithm in ac.on # Using compose call UNIFY- VAR(x,John, θ = {y/x})

19 Unifica.on algorithm in ac.on Unify Likes(y,x) with Likes(x,John) First step: θ = {y/x} Second step: unify- var(x, John, θ) add{x/john} to θ yields what? Push(newpair, θ) à {x/john, y/x} Compose(newpair, θ): s.t. when the lhs (L) of the new pair appears in the rhs (R) of an existing element of theta, replace R with subst(newpair, R)à {x/john, y/john}

20 Unifica.on algorithm in ac.on # Using compose call UNIFY- VAR(x,John, θ = {y/x}) return θ = {x/john, y/john}

21 Backward chaining algorithm

22 Some slight changes/correc.ons NOTE: Should be: for each r, θ combination in KB where An empty θ = [ ] means an exact match, so subst(θ,p) does nothing Why can t we standardize apart once at the beginning? Remember, backward chaining is a depth- Dirst search procedure Search methods can be used to solve many problems in AI

23 Syntax of AND/OR trees How do we search for backward chaining solutions? Facts are queried Dirst (in the order they appear) Then rules in the order they appear Premises are also solved in the order they appear Alternating node types (except for leaf nodes) A goal/subgoal node OR node representing all the ways the goal can be proved Children are rules or facts A rule node AND node since the premises are conjoined Children are subgoals Fact node leaf node that satisdies a subgoal

24 Example: AND/OR tree for backward chaining process NOTE: Order of the KB is important R1. House(x) Owns(y, x) Cr(y) R2. House(x) Rents(y, x) NoDebts(y) Cr(y) R3. Rich(x) Cr(x) F1. House(H33) F2. House(H21) F3. Owns(John, H21) F4. Rents(Sally, Apt 12) F5. Owns(Max, Tent33) F6. Rich(Mike) F7. Rents(Jim, H33) Query:?Cr(z) who is credit worthy??

25 CR(z) Solutions: [ [z = John], [z = Mike] ] [z=john, x1=h21] OR FAIL [z = Mike] R1 R2 R3 AND AND AND House(x1) Owns(z, x1) OR OR House(x2) Rents(z,x2) NoDebts(z) Rich(z) F1 x1=h33 F2 x1=h21 OR F1 F2 OR OR F6 x2=h33 x2=h21 z = Mike F3 F5 F4 F7 z = John x1 = H21 z = Max x1 = Tent33

26 Search problems Classic search problems Missionaries and cannibals 8- puzzle 4 color map problem Path Dinding Resource allocation Adversarial games extend the basic model Relationship to operations research Factor scheduling (e.g., painting cars) Logistics (e.g., delivering cars to dealers) Finding optimal or good schedules

27 Search framework for problem solving Problem formulation: A set of discrete states (usually Dinite, but often very large) that dedine the problem space A designated start state A subset of states designated as goal states A set of operators or actions the agent can perform at each state A transition function Next: State OP à State Objective: Find a sequence of operators that, if applied in the start state, will lead to a goal state Optimal solution Dind the shortest or least- cost such sequence Cost determined by agent s performance measure

28 Explore the problem space using a search tree State space forms a directed graph or tree structure Root = start state Each node represents a state Actions are branches children are all the possible next- states

29 Graph search (dynamic programming) Graph contains at most one copy of each state Growing tree directly on state- space graph

30 Example: The 8- puzzle States? Actions? Goal test? Path cost? Start State Goal State

31 Example: The 8- puzzle Start State Goal State States? Locations of tiles Actions? Move blank left, right, up, down Goal test? ==Goal State (given) Path cost? 1 per move [NOTE: optimal solution of n- puzzle family is NP- hard]

32 Example: Path finding Sample problem On holiday in Romania; currently in Arad Flight leaves tomorrow from Bucharest Formulate goal: Be in Bucharest Formulate problem: States cities in Romania Actions drive between cities Find solution: Sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest

33 Example: Path finding (cont.) 71 Oradea Neamt Arad Zerind 140 Timisoara 151 Sibiu 99 Fagaras 80 Rimnicu Vilcea 87 Iasi 92 Vaslui 111 Lugoj 97 Pitesti Drobeta Mehadia Bucharest 90 Craiova Giurgiu 98 Urziceni Hirsova 86 Eforie

34 Solve path finding with tree search (a) The initial state Arad Sibiu Timisoara Zerind Arad Fagaras Oradea Rimnicu Vilcea Arad Lugoj Arad Oradea (b) After expanding Arad Arad

35 Solve path finding with tree search (b) After expanding Arad Arad Sibiu Timisoara Zerind Arad Fagaras Oradea Rimnicu Vilcea Arad Lugoj Arad Oradea (c) After expanding Sibiu Arad

36 Solve path finding with tree search (c) After expanding Sibiu Arad Sibiu Timisoara Zerind Arad Fagaras Oradea Rimnicu Vilcea Arad Lugoj Arad Oradea

37 Implementa.on: states vs. nodes A state is a (representation of) a physical condiguration A node is a data structure constituting part of a search tree Representative data structure must include state, parent node, action, path cost More than one node can correspond to a single world state PARENT 5 4 Node ACTION = Right PATH-COST = STATE 7 3 2

38 Search strategies Search strategy dedined by picking the order of node expansion Strategies are evaluated along the following dimensions 1. Completeness does it always Dind a solution if one exists? 2. Time complexity number of nodes generated 3. Space complexity maximum number of nodes in memory 4. Optimality does it always Dind a least- cost solution? Time and space complexity are measured in terms of b Maximum branching factor for the search tree d Depth of the least- cost solution m Maximum depth of the state space (may be )

39 Uninformed search strategies Uninformed (blind) search strategies use only the information available in the problem dedinition Search strategies 1. Breadth- Dirst search 2. Uniform- cost search 3. Depth- Dirst search 4. Depth- limited search 5. Iterative deepening search

40 Breadth- first search Expand shallowest unexpanded node All nodes at a given depth expanded before any at the next level Implementation Frontier is a FIFO queue, i.e., new successors go at the end A B C D E F G

41 Breadth- first search Expand shallowest unexpanded node All nodes at a given depth expanded before any at the next level Implementation Frontier is a FIFO queue, i.e., new successors go at the end A B C D E F G

42 Breadth- first search Expand shallowest unexpanded node All nodes at a given depth expanded before any at the next level Implementation Frontier is a FIFO queue, i.e., new successors go at the end A B C D E F G

43 Breadth- first search Expand shallowest unexpanded node All nodes at a given depth expanded before any at the next level Implementation Frontier is a FIFO queue, i.e., new successors go at the end A B C D E F G

44 Proper.es of breadth- first search Complete? Yes (if b is Dinite) Time? 1 + b + b 2 + b b d + b(b d - 1) = O(b d+1 ) Space? O(b d+1 ) keeps every node in memory Optimal? Yes (if cost is non- decreasing function of depth) Space is the bigger problem (more than time) Suppose b = 10, a node uses 1000 bytes, and 1 million nodes per second can be generated Solution at depth 10 takes 3 hours and uses 10 terabytes At level 12 it is 13 days and 1 petabyte; at 14 it is 3.5 years, 99 petabytes Exponential complexity bound search problems cannot be solved by uninformed strategies not scalable

45 Uniform- cost search Expand least- cost unexpanded node Implementation Frontier is a queue ordered by path cost Equivalent to breadth- Dirst search if step costs are all equal Complete? Yes, if step cost ε Time? # of nodes with g cost of optimal solution, O(b ceiling(c*/ ε) ) where C * is the cost of the optimal solution Space? # of nodes with g cost of optimal solution, O(b ceiling(c*/ ε) ) Optimal? Yes nodes are expanded in increasing order of g(n)

46 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C D E F G H I J K L M N O

47 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C D E F G H I J K L M N O

48 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C D E F G H I J K L M N O

49 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C D E F G H I J K L M N O

50 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C D E F G I J K L M N O

51 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A C E F G J K L M N O

52 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A C E F G J K L M N O

53 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A B C E F G K L M N O

54 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front C F G L M N O

55 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A C F G L M N O

56 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A C F G L M N O

57 Depth- first search Expand deepest unexpanded node Implementation Frontier is a LIFO queue (stack), i.e., new successors go at the front A C F G M N O

58 Proper.es of depth- first search Complete? No fails in indinite depth spaces or spaces with loops (NOTE: our algorithm prevents loops) Modify to avoid repeated states along path complete in Dinite spaces Time? O(b m ) terrible if m is much larger than d Solutions are dense, so may be much faster than breadth- Dirst Space? O(bm) linear space! Optimal? No

59 Depth- limited search Depth- Dirst search with depth limit l Nodes at depth l have no successors

60 Itera.ve deepening search Gradually increase the depth limit in depth- Dirst search Combines benedits of breadth- Dirst and depth- Dirst search

61 Itera.ve deepening search Limit = 0 A A

62 Itera.ve deepening search Limit = 1 A A A A B C B C B C B C Limit = 2

63 Itera.ve deepening search Limit = 2 A A A A B C B C B C B C D E F G D E F G D E F G D E F G A A A A B C B C B C B C D E F G D E F G D E F G D E F G Limit = 3

64 Itera.ve deepening search Limit = 3 A A A A B C B C B C B C D E F G D E F G D E F G D E F G H I J K L M N O H I J K L M N O H I J K L M N O H I J K L M N O A A A A B C B C B C B C D E F G D E F G D E F G D E F G H I J K L M N O H I J K L M N O H I J K L M N O H I J K L M N O A A A A B C B C B C B C D E F G D E F G D E F G D E F G H I J K L M N O H I J K L M N O H I J K L M N O H I J K L M N O

65 Itera.ve deepening search Number of nodes generated in iterative deepening search to depth d with branching factor b N(IDS) = (d+1)b 0 + (d)b 1 + (d- 1)b (3)b d- 2 +(2)b d- 1 + (1)b d Time complexity = O(b d ) Same as breadth- Dirst search Time complexity comparison to breadth- Dirst search Suppose b = 10 and d = 5 N(IDS) = , , ,000 = 123,450 N(BFS) = , , ,000 = 111,110 Overhead difference = (123, ,110) / 111,110 = 11%

66 Proper.es of itera.ve deepening Complete? Yes Time? (d+1)b 0 + (d)b 1 + (d- 1)b (3)b d- 2 +(2)b d- 1 + (1)b d = O(b d ) Space? O(bd) same as depth- Dirst search Optimal? Yes, if step cost = 1

67 Summary of uninformed search algorithms

68 Informed search Uses problem- speciaic knowledge beyond the problem dedinition to Dind solutions more efdiciently Outline of topics Heuristics Best- Dirst search Greedy best- Dirst search A* search Remember, a search strategy is dedined by picking the order of node expansion

69 Best- first search Use an evaluation function f(n) for each node Estimate of desirability Includes a heuristic function to add more knowledge to the problem h(n) = estimated cost of cheapest path from state at n to the goal Heuristics are problem- specidic Expand most desirable unexpanded node Implementation Order nodes in the frontier in decreasing order of desirability Special cases Greedy best- Dirst search A* search

70 Heuris.c for path- finding Romania example: estimate the straight- line distance from each node to Bucharest (the goal) Arad Oradea 71 Neamt Zerind Sibiu 99 Fagaras 80 Timisoara Rimnicu Vilcea 111 Lugoj 70 Mehadia 75 Drobeta 120 Pitesti Bucharest 90 Craiova Giurgiu 87 Iasi Urziceni Vaslui Hirsova 86 Eforie Straight- line distance to Bucharest Arad 366 Bucharest 0 Craiova 160 Drobeta 242 Eforie 161 Fagaras 176 Giurgiu 77 Hirsova 151 Iasi 226 Lugoj 244 Mehadia 241 Neamt 234 Oradea 380 Pitesti 100 Rimnicu Vilcea 193 Sibiu 253 Timisoara 329 Urziceni 80 Vaslui 199 Zerind 374

71 Greedy best- first search Evaluation function f(n) = h(n) = estimate cost from n to goal e.g., h SLD (n) = straight line distance from n to Bucharest Search strategy Expand the node that appears to be closest to the goal (i.e., has the lowest h(n)

72 Greedy best- first search (a) The initial state (b) After expanding Arad Arad 366 Arad

73 Greedy best- first search 366 (b) After expanding Arad Arad Sibiu Timisoara Zerind (c) After expanding Sibiu Arad

74 Greedy best- first search (c) After expanding Sibiu Arad Sibiu Timisoara 329 Zerind 374 Arad Fagaras Oradea Rimnicu Vilcea (d) After expanding Fagaras

75 Greedy best- first search (d) After expanding Fagaras Arad Sibiu Timisoara Zerind Arad Fagaras Oradea Rimnicu Vilcea Sibiu Bucharest 253 0

76 Proper.es of greedy best- first search Complete? No can get stuck in loops e.g., Iasi à Neamt à Iasi à Neamt à Time? O(b m ), but a good heuristic can give dramatic improvement Space? O(b m ) keeps all nodes in memory Optimal? No

77 A* Search Avoid expanding paths that are already expensive Evaluation function f(n) = g(n) + h(n) g(n) = cost of path so far to reach n h(n) = estimated cost from n to goal f(n) = estimated total cost of path through n to goal

78 A* Search (a) The initial state (b) After expanding Arad Arad 366=0+366 Arad

79 A* Search (b) After expanding Arad Arad Sibiu 393= Timisoara 447= Zerind 449= (c) After expanding Sibiu Arad

80 A* Search (c) After expanding Sibiu Arad Sibiu Timisoara Zerind 447= = Arad Fagaras Oradea Rimnicu Vilcea 646= = = = (d) After expanding Rimnicu Vilcea Arad

81 A* Search (d) After expanding Rimnicu Vilcea Arad Sibiu Timisoara Zerind 447= = Arad Fagaras Oradea 646= = = Rimnicu Vilcea Craiova Pitesti Sibiu 526= = = (e) After expanding Fagaras

82 A* Search (e) After expanding Fagaras Arad Sibiu Timisoara Zerind 447= = Arad Fagaras Oradea Rimnicu Vilcea 646= = Sibiu Bucharest Craiova Pitesti Sibiu 591= = = = = (f) After expanding Pitesti

83 A* Search (f) After expanding Pitesti Arad Sibiu Timisoara Zerind 447= = Arad Fagaras Oradea Rimnicu Vilcea 646= = Sibiu Bucharest Craiova Pitesti Sibiu 591= = = = Bucharest Craiova Rimnicu Vilcea 418= = =

84 Proper.es of A* Complete? Yes (unless there are indinitely many nodes with f(n) < C* Time? Exponential depends on assumptions made about state space Space? Keeps all nodes in memory Optimal? Yes

85 Admissible heuris.cs Heuristic h(n) is admissible if for every node n, h(n) h*(n), where h*(n) is the true cost to reach the goal state from n Never overestimates the cost to reach the goal, i.e., it is optimistic Example h SLD (n) never overestimates the actual road distance by using straight- line distance Theorem If h(n) is admissible, A* using TREE-SEARCH is optimal

86 Op.mality of A* (proof) Suppose some suboptimal goal G 2 is in the frontier. Let n be an unexpanded node in the frontier s.t. n is on a shortest path to an optimal goal G Proof: f(g 2 ) > f(g) from above h(n) h*(n) since h is admissible g(n) + h(n) g(n) + h*(n) f(n) f(g) Hence f(g 2 ) > f(n), and A* will never select G 2 for expansion

87 Consistent heuris.cs Heuristic is consistent if for every node n, every successor n of n generated by action a, h(n) c(n,a,n ) + h(n ) If h is consistent we have f(n ) = g(n ) + h(n ) = g(n) + c(n,a,n ) + h(n ) g(n) + h(n) f(n) i.e., f(n) is non- decreasing along any path Theorem If h(n) is consistent, A* using GRAPH-SEARCH is optimal

88 Genera.ng admissible heuris.cs Possible heuristics for the 8- puzzle Generate from a relaxed problem fewer restrictions than original h 1 (n) = number of misplaced tiles h 2 (n) = total Manhattan distance to the goal position h 1 (S) =? h 2 (S) =? Start State Goal State

89 Genera.ng admissible heuris.cs Possible heuristics for the 8- puzzle Generate from a relaxed problem fewer restrictions than original h 1 (n) = number of misplaced tiles h 2 (n) = total Manhattan distance to the goal position Start State Goal State h 1 (S) =? 8 h 2 (S) =? = 18 h*(s) = 26 so both are admissible heuristics (lower bounds)

Problem solving and search

Problem solving and search Problem solving and search Chapter 3 Chapter 3 1 Outline Problem-solving agents Problem types Problem formulation Example problems Uninformed search algorithms Informed search algorithms Chapter 3 2 Restricted

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

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

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

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

CS486/686 Lecture Slides (c) 2015 P.Poupart

CS486/686 Lecture Slides (c) 2015 P.Poupart 1 2 Solving Problems by Searching [RN2] Sec 3.1-3.5 [RN3] Sec 3.1-3.4 CS486/686 University of Waterloo Lecture 2: May 7, 2015 3 Outline Problem solving agents and search Examples Properties of search algorithms

More information

CS486/686 Lecture Slides (c) 2014 P.Poupart

CS486/686 Lecture Slides (c) 2014 P.Poupart 1 2 1 Solving Problems by Searching [RN2] Sec 3.1-3.5 [RN3] Sec 3.1-3.4 CS486/686 University of Waterloo Lecture 2: January 9, 2014 3 Outline Problem solving agents and search Examples Properties of search

More information

Solving Problems by Searching

Solving Problems by Searching Solving Problems by Searching CS486/686 University of Waterloo Sept 11, 2008 1 Outline Problem solving agents and search Examples Properties of search algorithms Uninformed search Breadth first Depth first

More information

Problem solving and search

Problem solving and search Problem solving and search Chapter 3 TB Artificial Intelligence Slides from AIMA http://aima.cs.berkeley.edu 1 /1 Outline Problem-solving agents Problem types Problem formulation Example problems Basic

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

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. 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

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

Problem solving and search

Problem solving and search Problem solving and search Chapter 3 Chapter 3 1 How to Solve a (Simple) Problem 7 2 4 1 2 5 6 3 4 5 8 3 1 6 7 8 Start State Goal State Chapter 3 2 Introduction Simple goal-based agents can solve problems

More information

Overview. Path Cost Function. Real Life Problems. COMP219: Artificial Intelligence. Lecture 10: Heuristic Search

Overview. Path Cost Function. Real Life Problems. COMP219: Artificial Intelligence. Lecture 10: Heuristic Search COMP219: Artificial Intelligence Lecture 10: Heuristic Search Overview Last time Depth-limited, iterative deepening and bi-directional search Avoiding repeated states Today Show how applying knowledge

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

Week 3: Path Search. COMP9414/ 9814/ 3411: Artificial Intelligence. Motivation. Example: Romania. Romania Street Map. Russell & Norvig, Chapter 3.

Week 3: Path Search. COMP9414/ 9814/ 3411: Artificial Intelligence. Motivation. Example: Romania. Romania Street Map. Russell & Norvig, Chapter 3. COMP9414/9814/3411 17s1 Search 1 COMP9414/ 9814/ 3411: Artificial Intelligence Week 3: Path Search Russell & Norvig, Chapter 3. Motivation Reactive and Model-Based Agents choose their actions based only

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

AGENTS AND ENVIRONMENTS. What is AI in reality?

AGENTS AND ENVIRONMENTS. What is AI in reality? AGENTS AND ENVIRONMENTS What is AI in reality? AI is our attempt to create a machine that thinks (or acts) humanly (or rationally) Think like a human Cognitive Modeling Think rationally Logic-based Systems

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 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

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

COMP219: Artificial Intelligence. Lecture 10: Heuristic Search

COMP219: Artificial Intelligence. Lecture 10: Heuristic Search COMP219: Artificial Intelligence Lecture 10: Heuristic Search 1 Class Tests Class Test 1 (Prolog): Tuesday 8 th November (Week 7) 13:00-14:00 LIFS-LT2 and LIFS-LT3 Class Test 2 (Everything but Prolog)

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

4. Solving Problems by Searching

4. Solving Problems by Searching COMP9414/9814/3411 15s1 Search 1 COMP9414/ 9814/ 3411: Artificial Intelligence 4. Solving Problems by Searching Russell & Norvig, Chapter 3. Motivation Reactive and Model-Based Agents choose their actions

More information

Robot Programming with Lisp

Robot Programming with Lisp 6. Search Algorithms Gayane Kazhoyan (Stuart Russell, Peter Norvig) Institute for University of Bremen Contents Problem Definition Uninformed search strategies BFS Uniform-Cost DFS Depth-Limited Iterative

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

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

AGENTS AND ENVIRONMENTS. What is AI in reality?

AGENTS AND ENVIRONMENTS. What is AI in reality? AGENTS AND ENVIRONMENTS What is AI in reality? AI is our attempt to create a machine that thinks (or acts) humanly (or rationally) Think like a human Cognitive Modeling Think rationally Logic-based Systems

More information

COMP219: Artificial Intelligence. Lecture 10: Heuristic Search

COMP219: Artificial Intelligence. Lecture 10: Heuristic Search COMP219: Artificial Intelligence Lecture 10: Heuristic Search 1 Class Tests Class Test 1 (Prolog): Friday 17th November (Week 8), 15:00-17:00. Class Test 2 (Everything but Prolog) Friday 15th December

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

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

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

Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 2: Search 1. rtificial Intelligence, S, Nanjing University Spring, 2018, Yang Yu Lecture 2: Search 1 http://lamda.nju.edu.cn/yuy/course_ai18.ashx Problem in the lecture 7 2 4 51 2 3 5 6 4 5 6 8 3 1 7 8 Start State

More information

Informed search algorithms

Informed search algorithms CS 580 1 Informed search algorithms Chapter 4, Sections 1 2, 4 CS 580 2 Outline Best-first search A search Heuristics Hill-climbing Simulated annealing CS 580 3 Review: General search function General-Search(

More information

Artificial Intelligence: Search Part 1: Uninformed graph search

Artificial Intelligence: Search Part 1: Uninformed graph search rtificial Intelligence: Search Part 1: Uninformed graph search Thomas Trappenberg January 8, 2009 ased on the slides provided by Russell and Norvig, hapter 3 Search outline Part 1: Uninformed search (tree

More information

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department (CHAPTER-3-PART3) PROBLEM SOLVING AND SEARCH Searching algorithm Uninformed

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

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

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

Artificial Intelligence CS 6364

Artificial Intelligence CS 6364 Artificial Intelligence CS 6364 Professor Dan Moldovan Section 4 Informed Search and Adversarial Search Outline Best-first search Greedy best-first search A* search Heuristics revisited Minimax search

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Academic year 2016/2017 Giorgio Fumera http://pralab.diee.unica.it fumera@diee.unica.it Pattern Recognition and Applications Lab Department of Electrical and Electronic Engineering

More information

COSC343: Artificial Intelligence

COSC343: Artificial Intelligence COSC343: Artificial Intelligence Lecture 18: Informed search algorithms Alistair Knott Dept. of Computer Science, University of Otago Alistair Knott (Otago) COSC343 Lecture 18 1 / 1 In today s lecture

More information

Solving Problems using Search

Solving Problems using Search Solving Problems using Search Artificial Intelligence @ Allegheny College Janyl Jumadinova September 11, 2018 Janyl Jumadinova Solving Problems using Search September 11, 2018 1 / 35 Example: Romania On

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence CSC348 Unit 3: Problem Solving and Search Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Artificial Intelligence: Lecture Notes The

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

Problem solving and search

Problem solving and search Problem solving and search hapter 3 hapter 3 1 Outline Problem-solving agents Problem types Problem formulation Example problems asic search algorithms hapter 3 3 Restricted form of general agent: Problem-solving

More information

Informed Search and Exploration

Informed Search and Exploration Ch. 04 p.1/39 Informed Search and Exploration Chapter 4 Ch. 04 p.2/39 Outline Best-first search A search Heuristics IDA search Hill-climbing Simulated annealing Ch. 04 p.3/39 Review: Tree search function

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

TDT4136 Logic and Reasoning Systems

TDT4136 Logic and Reasoning Systems TDT4136 Logic and Reasoning Systems Chapter 3 & 4.1 - Informed Search and Exploration Lester Solbakken solbakke@idi.ntnu.no Norwegian University of Science and Technology 18.10.2011 1 Lester Solbakken

More information

HW#1 due today. HW#2 due Monday, 9/09/13, in class Continue reading Chapter 3

HW#1 due today. HW#2 due Monday, 9/09/13, in class Continue reading Chapter 3 9-04-2013 Uninformed (blind) search algorithms Breadth-First Search (BFS) Uniform-Cost Search Depth-First Search (DFS) Depth-Limited Search Iterative Deepening Best-First Search HW#1 due today HW#2 due

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

Solving problems by searching

Solving problems by searching Solving problems by searching Chapter 3 CS 2710 1 Outline Problem-solving agents Problem formulation Example problems Basic search algorithms CS 2710 - Blind Search 2 1 Goal-based Agents Agents that take

More information

PEAS: Medical diagnosis system

PEAS: Medical diagnosis system PEAS: Medical diagnosis system Performance measure Patient health, cost, reputation Environment Patients, medical staff, insurers, courts Actuators Screen display, email Sensors Keyboard/mouse Environment

More information

Solving problems by searching

Solving problems by searching Solving problems by searching Chapter 3 Systems 1 Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Systems 2 Problem-solving agents Systems 3 Example:

More information

Solving Problem by Searching. Chapter 3

Solving Problem by Searching. Chapter 3 Solving Problem by Searching Chapter 3 Outline Problem-solving agents Problem formulation Example problems Basic search algorithms blind search Heuristic search strategies Heuristic functions Problem-solving

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

Solving Problems by Searching. Artificial Intelligence Santa Clara University 2016

Solving Problems by Searching. Artificial Intelligence Santa Clara University 2016 Solving Problems by Searching Artificial Intelligence Santa Clara University 2016 Problem Solving Agents Problem Solving Agents Use atomic representation of states Planning agents Use factored or structured

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

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence S:4420 rtificial Intelligence Spring 2018 Uninformed Search esare Tinelli The University of Iowa opyright 2004 18, esare Tinelli and Stuart Russell a a These notes were originally developed by Stuart Russell

More information

CS-E4800 Artificial Intelligence

CS-E4800 Artificial Intelligence CS-E4800 Artificial Intelligence Jussi Rintanen Department of Computer Science Aalto University January 12, 2017 Transition System Models The decision-making and planning at the top-level of many intelligent

More information

CS414-Artificial Intelligence

CS414-Artificial Intelligence CS414-Artificial Intelligence Lecture 6: Informed Search Algorithms Waheed Noor Computer Science and Information Technology, University of Balochistan, Quetta, Pakistan Waheed Noor (CS&IT, UoB, Quetta)

More information

CS 380: Artificial Intelligence Lecture #3

CS 380: Artificial Intelligence Lecture #3 CS 380: Artificial Intelligence Lecture #3 William Regli Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms 1 Problem-solving agents Example: Romania

More information

Chapter 2. Blind Search 8/19/2017

Chapter 2. Blind Search 8/19/2017 Chapter 2 1 8/19/2017 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms 8/19/2017 2 8/19/2017 3 On holiday in Romania; currently in Arad. Flight leaves tomorrow

More information

Lecture Plan. Best-first search Greedy search A* search Designing heuristics. Hill-climbing. 1 Informed search strategies. Informed strategies

Lecture Plan. Best-first search Greedy search A* search Designing heuristics. Hill-climbing. 1 Informed search strategies. Informed strategies Lecture Plan 1 Informed search strategies (KA AGH) 1 czerwca 2010 1 / 28 Blind vs. informed search strategies Blind search methods You already know them: BFS, DFS, UCS et al. They don t analyse the nodes

More information

Solving Problems by Searching

Solving Problems by Searching Solving Problems by Searching Agents, Goal-Based Agents, Problem-Solving Agents Search Problems Blind Search Strategies Agents sensors environment percepts actions? agent effectors Definition. An agent

More information

Solving Problems by Searching

Solving Problems by Searching Solving Problems by Searching Agents, Goal-Based Agents, Problem-Solving Agents Search Problems Blind Search Strategies Agents sensors environment percepts actions? agent effectors Definition. An agent

More information

Searching and NetLogo

Searching and NetLogo Searching and NetLogo Artificial Intelligence @ Allegheny College Janyl Jumadinova September 6, 2018 Janyl Jumadinova Searching and NetLogo September 6, 2018 1 / 21 NetLogo NetLogo the Agent Based Modeling

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 4. Informed Search Methods Heuristics, Local Search Methods, Genetic Algorithms Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität

More information

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search CS 771 Artificial Intelligence Problem Solving by Searching Uninformed search Complete architectures for intelligence? Search? Solve the problem of what to do. Learning? Learn what to do. Logic and inference?

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

Outline. Solving problems by searching. Problem-solving agents. Example: Romania

Outline. Solving problems by searching. Problem-solving agents. Example: Romania Outline Solving problems by searching Chapter 3 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Systems 1 Systems 2 Problem-solving agents Example: Romania

More information

CS 8520: Artificial Intelligence

CS 8520: Artificial Intelligence CS 8520: Artificial Intelligence Solving Problems by Searching Paula Matuszek Spring, 2013 Slides based on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are in turn based on Russell, aima.eecs.berkeley.edu/slides-pdf.

More information

Solving problems by searching

Solving problems by searching Solving problems by searching 1 C H A P T E R 3 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Outline 2 Problem-solving agents 3 Note: this is offline

More information

Planning and search. Lecture 1: Introduction and Revision of Search. Lecture 1: Introduction and Revision of Search 1

Planning and search. Lecture 1: Introduction and Revision of Search. Lecture 1: Introduction and Revision of Search 1 Planning and search Lecture 1: Introduction and Revision of Search Lecture 1: Introduction and Revision of Search 1 Lecturer: Natasha lechina email: nza@cs.nott.ac.uk ontact and web page web page: http://www.cs.nott.ac.uk/

More information

Problem solving and search: Chapter 3, Sections 1 5

Problem solving and search: Chapter 3, Sections 1 5 Problem solving and search: hapter 3, Sections 1 5 1 Outline Problem-solving agents Problem types Problem formulation Example problems asic search algorithms 2 Problem-solving agents estricted form of

More information

Informed Search. Topics. Review: Tree Search. What is Informed Search? Best-First Search

Informed Search. Topics. Review: Tree Search. What is Informed Search? Best-First Search Topics Informed Search Best-First Search Greedy Search A* Search Sattiraju Prabhakar CS771: Classes,, Wichita State University 3/6/2005 AI_InformedSearch 2 Review: Tree Search What is Informed Search?

More information

Problem solving and search: Chapter 3, Sections 1 5

Problem solving and search: Chapter 3, Sections 1 5 Problem solving and search: hapter 3, Sections 1 5 S 480 2 Outline Problem-solving agents Problem types Problem formulation Example problems asic search algorithms Problem-solving agents estricted form

More information

Informed Search and Exploration

Informed Search and Exploration Informed Search and Exploration Chapter 4 (4.1-4.3) CS 2710 1 Introduction Ch.3 searches good building blocks for learning about search But vastly inefficient eg: Can we do better? Breadth Depth Uniform

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

Automated Planning & Artificial Intelligence

Automated Planning & Artificial Intelligence Automated Planning & Artificial Intelligence Uninformed and Informed search in state space Humbert Fiorino Humbert.Fiorino@imag.fr http://membres-lig.imag.fr/fiorino Laboratory of Informatics of Grenoble

More information

DFS. Depth-limited Search

DFS. Depth-limited Search DFS Completeness? No, fails in infinite depth spaces or spaces with loops Yes, assuming state space finite. Time complexity? O(b m ), terrible if m is much bigger than d. can do well if lots of goals Space

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

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

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 methods

Informed search methods CS 2710 Foundations of AI Lecture 5 Informed search methods Milos Hauskrecht milos@pitt.edu 5329 Sennott Square Announcements Homework assignment 2 is out Due on Tuesday, September 19, 2017 before the

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 3, 4/6/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes 4/6/2005 EE562 1 Today: Basic

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

Problem solving and search

Problem solving and search Problem solving and search hapter 3 hapter 3 1 Outline Problem-solving agents Problem types Problem formulation Example problems asic search algorithms hapter 3 3 Example: omania On holiday in omania;

More information

Seminar: Search and Optimization

Seminar: Search and Optimization Seminar: Search and Optimization 4. asic Search lgorithms Martin Wehrle Universität asel October 4, 2012 asics lind Search lgorithms est-first Search Summary asics asics lind Search lgorithms est-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

CAP 4630 Artificial Intelligence

CAP 4630 Artificial Intelligence CAP 4630 Artificial Intelligence Instructor: Sam Ganzfried sganzfri@cis.fiu.edu 1 http://www.ultimateaiclass.com/ https://moodle.cis.fiu.edu/ 2 Solving problems by search 3 8-puzzle 4 8-queens 5 Search

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

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

COMP219: Artificial Intelligence. Lecture 7: Search Strategies

COMP219: Artificial Intelligence. Lecture 7: Search Strategies COMP219: Artificial Intelligence Lecture 7: Search Strategies 1 Overview Last time basic ideas about problem solving; state space; solutions as paths; the notion of solution cost; the importance of using

More information

Problem Solving and Search. Chapter 3

Problem Solving and Search. Chapter 3 Problem olving and earch hapter 3 Outline Problem-solving agents Problem formulation Example problems asic search algorithms In the simplest case, an agent will: formulate a goal and a problem; Problem-olving

More information

Search. Intelligent agents. Problem-solving. Problem-solving agents. Road map of Romania. The components of a problem. that will take me to the goal!

Search. Intelligent agents. Problem-solving. Problem-solving agents. Road map of Romania. The components of a problem. that will take me to the goal! Search Intelligent agents Reflex agent Problem-solving agent T65 rtificial intelligence and Lisp Peter alenius petda@ida.liu.se epartment of omputer and Information Science Linköping University Percept

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

Problem-solving agents. Solving Problems by Searching. Outline. Example: Romania. Chapter 3

Problem-solving agents. Solving Problems by Searching. Outline. Example: Romania. Chapter 3 Problem-solving agents olving Problems by earching hapter 3 function imple-problem-olving-gent( percept) returns an action static: seq, an action sequence, initially empty state, some description of the

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