Optimal Control and Dynamic Programming

Size: px
Start display at page:

Download "Optimal Control and Dynamic Programming"

Transcription

1 Optimal Control and Dynamic Programming SC Q 7- Duarte Antunes

2 Outline Shortest paths in graphs Dynamic programming Dijkstra s and A* algorithms Certainty equivalent control

3 Graph Weighted Graph Nodes Edges V := {,...,n} E := {(i,j ),...,(i r,j r ) i,...i r,j,...,j r V} Weights Undirected if w ij w ij = w ji (i, j) E E = {(, 6), (, ),...} w 6 =7,w =, Undirected w ij = w ji Directed

4 Applications Graphs model networks (road, social, transportation, etc.) and can be found in numerous applications

5 Shortest path problem Find a path from an initial node to a destination node in a weighted graph, with minimum length (sum of the weights of its edges) Final 6 7 Minimum length 6 Initial Can we use the DP algorithm to find the shortest path?

6 Discussion Computing an optimal path in a transition diagram can be seen as computing the shortest path from the nodes at stage to the node at stage h +of the following weighted graph: c n c n c n c h n h c c c c c h c h n h c c c c c h c h c h artificial node Stage Stage Stage h Stage h artificial stage h + For graphs with this structure we already know how to use DP to compute shortest paths. Adjustments are needed for general graphs (e.g. cycles may occur) but DP can still be used to provide the shortest path, as we show next.

7 Dynamic programming formulation Given a weighted graph construct a transition diagram: stages, states at decision stages and only the destination at the terminal stage. Make, if there is no link from to, and. h = n n w ij = i j Destination Initial w ii = c k ij = w ij

8 Dynamic programming solution Apply the DP algorithm to this transition diagram Costs-to-go at a stage k are the costs of the shortest path with n k hops. In particular costs-to-go at the initial stage are the optimal costs for each initial condition. To find an optimal path follow the policy for a given initial state. Cost-to-go at stage of a given state is infinite if there is no path from that initial state to the destination. State x k 6 6 Destination Initial 7 Stage k The implementation can be made more efficient and one does not need to first construct the transition diagram. Moreover, one can stop when the costs-to-go remain unchanged. 6

9 Example Another example for an undirected graph 6 7 State x k Stage k 7

10 Shortest paths in road networks What is the shortest distance from Bucharest to Lugoj? 7 7 Zerind Oradea Neamt 7 Arad Timisoara Sibiu 99 Fagaras Rimnicu Vilcea Iasi 9 Vaslui Lugoj 97 Pitesti 7 7 Dobreta Mehadia 6 Craiova 9 Urziceni Bucharest 9 Hirsova 6 Eforie Rode map of Romania Giurgiu

11 Shortest paths in road networks km (Route: Bucharest, Pitesti, Craiova, Dobreta, Mehadia, and Lugoj) 9

12 Robot path planning What is the shortest path for a robot to go from point A to B? B A -

13 Assumptions It takes nodes and distance unit to move horizontally or vertically between adjacent units to move diagonally. p Distances to obstacle nodes are infinite. Distance between two diagonally adjacent nodes, adjacent to the same obstacle node is infinite. p p p p

14 Robot path planning What is the shortest path for a robot to go from point A to B? B A

15 Robot path planning Simpler example to show the costs-to-go Side remark: the cost-to-go can be view as a Lyapunov function and the policy can be obtained by following the direction of maximum decrease of this function.

16 Time-varying graphs Initial position How to design a shortest path from A to B when the obstacles are moving? Final t = t = t = t = T

17 Time-varying graphs. Consider the set of static graphs for each time step t = t = t = t = T

18 Time-varying graphs. Build a time-invariant graph in D p p Example p p p t = t = t =. Compute shortest path for D graph Initial node: initial node at time t = Final node: final node at time t = T t = T 6

19 Outline Shortest paths in graphs Dynamic programming Dijkstra s and A* algorithms Certainty equivalent control

20 Discussion DP can be quite inefficient when computing an optimal path in enough. n n > > > > > > > > initial destination Figure example: DP searches the full space - not necessary to compute the optimal path. For shortest path problems in graphs, there are many alternative algorithms. We describe next the Dijkstra s and the A* algorithms. 7

21 Dijkstra s algorithm Main ideas Iteratively generate shorter paths from the origin to every node. Updates list of nodes (wavefront) which can be explored next. New nodes are added to the wavefront based on the cost: neighbors of node with the smallest distance to the origin. source: wikipedia

22 Dijkstra s algorithm Initialization d i = for i V {p}, d p =, and OPEN = {p} p initial node t - final node Steps. Remove a node i from OPEN with the minimum estimate d i. If i = t stop, otherwise execute step for every node j for which there is a path (arrow) from i to j.. If d i + w ij <d j : set d j = d i + w ij, set (j) =i, place j in OPEN if it is not there already. Otherwise do not update, (j). d j. After executing Step for all the nodes j corresponding to out-neighbors of i, go to step I. Optimal path To keep track of the shortest paths if suffices to save for every node i the next node (i) along the optimal path (discovered so far) leading to the initial node. The optimal path is then given by (i,i,...,i L ) for i L = t, i L = (t)...,i = (i ) or equivalently i` = (i`), ` {,,...,L}, where L is such that i = p. If OPEN is empty at a given step of the algorithm then there is no path to the destination. 9

23 Example I Dijkstra s algorithm requires only three iterations for this example Iteration Pairs (i, d i ),i OPEN (, ) n n > > > > > > > > (, ) + other pairs pertaining to other neigh. of node () = initial destination (, ) + other pairs pertaining to other neigh. of nodes & () = Destination/final node removed from OPEN - terminate

24 Example II 6 7 Iteration Pairs (i, d i ),i OPEN 6 (, ) (, ), (, ), (, 6) () = () = () = (, 6), (, ) () = () = (, 6), (, 7) () = (, 7), (6, ) (6) = (6, ) (6) = Optimal path (from end to start) (6, (6), ( (6)),...,) = (6,,,, )

25 Shortest paths in road networks What is the shortest distance from Bucharest to Lugoj? 7 7 Zerind Oradea Neamt 7 Arad Timisoara Sibiu 99 Fagaras Rimnicu Vilcea Iasi 9 Vaslui Lugoj 97 Pitesti 7 7 Dobreta Mehadia 6 Craiova 9 Urziceni Bucharest 9 Hirsova 6 Eforie Rode map of Romania Giurgiu

26 Example III Shortest path from Bucharest to Lugoj Iteration Pairs {i, d i }, i OPEN {Lugoj, } {Mehadia, 7}, {Timisoara, } {Timisoara, }, {Dobreta, } {Dobreta, }, {Arad, 9} {Arad, 9}, {Craiova, 6} {Craiova, 6}, {Sibiu, 69}, {Zerind, } 6 {Sibiu, 69}, {Zerind, }, {Pitesti, }, {Rimnicu Vilcea, } 7 {Sibiu, 69}, {Pitesti, }, {Rimnicu Vilcea, }, {Oradea, 7} {Pitesti, }, {Rimnicu Vilcea, }, {Oradea, 7}, {Fagaras, 6} 9 {Pitesti, }, {Rimnicu Vilcea, }, {Fagaras, 6} {Rimnicu Vilcea, }, {Fagaras, 6}, {Bucharest, } {Fagaras, 6}, {Bucharest, } {Bucharest, } From this data we can obtain and compute the optimal path.

27 A* Similar to Dijkstra s algorithm but an estimate (heuristic) h(i) of the distance to the destination for each node i V is also taken into account when picking the node to be explored next. New nodes are added to the wavefront based on d i + h(i). If the heuristic is: (i) smaller than the optimal cost from that node to the destination; (ii) is such that h(i) apple w ij + h(j) for every i, j then optimal path is found. Otherwise no optimality guarantees. To run the A* algorithm under the two heuristic assumptions:. Change the weights to w ij = w ij + h(j) h(i).. Run Dijkstra s algorithm and get optimal path.. Obtain optimal cost in the original graph with weights w ij. The general algorithm is given next, which works under or without these assumptions.

28 A* Initialization d i = for i V {p}, d p =, and OPEN = {p} p initial node t - final node Steps. Remove a node i from OPEN with the minimum d i + h(i). If i = t stop, otherwise execute step for every node j for which there is a path (arrow) from i to j.. If d i + w ij <d j : set d j = d i + w ij, set (j) =i, place j in OPEN if it is not there already. Otherwise do not update, (j). d j. After executing Step for all the nodes j corresponding to out-neighbors of i, go to step I. (same algorithm as the Dijkstra s algorithm except for remarks to find optimal path as in slide 9) d i + h(i), same

29 A* and Dijkstra s algorithm Dijkstra s A* source: wikipedia A* typically much faster if we have good a heuristic (might not be easy to find! especially if we require it to satisfy two conditions discussed before) 6

30 Example Straight line distance to Bucharest h(i) 7 Oradea 7 Zerin Arad Sibi Timisoara Lugoj 7 7 Mehadia Dobreta Rimnicu 9 9 Craiova Fagaras Pitesti Neamt Giurgiu 9 Urzice Bucharest 9 Iasi 9 Vaslui Hirsova Eforie Neamt Lasi 6 Vaslui 99 Urziceni Hirsova Eforie 6 Bucharest Giurgi 77 Pitesti 9 Craiova 6 Fagaras 7 Sibiu Rimnicu Vilcea 9 Lugoj Mehadia Dobreta Timisoara 9 Arad 66 Zerind 7 Oradea 7

31 Example. Change the weights to w ij = w ij + h(j) h(i).. Run Dijkstra s algorithm and get optimal path.. Obtain optimal cost in the original graph with weights. w ij Iteration Pairs {i, d i } in OPEN {Lugoj,} {Mehadia,67}, {Timisoara,96} {Timisoara,96}, {Dobreta,} {Timisoara,96}, {Craiova,} {Timisoara,96}, {Pitesti,7}, {Rim. Vilcea,6} {Pitesti,7}, {Rim. Vilcea,6}, {Arad,} 6 {Rim. Vilcea,6}, {Arad,}, {Bucharest,6} From this data we can obtain and compute the optimal path.

32 Discussion For large graphs one cannot even store the number of nodes and initialise d i but we can still run the algorithm if we keep track of a list of closed nodes (removed in step, see slide 9) so that they are not visited again (on slide 9 this is assured by d i + w ij <d j ) If optimality is not needed, there are many more graph search algorithms, e.g., breath-first search, depth-first search (see label correcting methods in Bertseka s book, Ch.) For robot motion planning Dijktra and A* are in general naive: construct nodes as we move along (so the graph is only implicit). random placement of nodes are in general better. A popular method that improve upon previous methods based on these two remarks is Rapidly-exploring random tree (RRT) (see LaValle s book). 9

33 Discussion The Dijkstra s algorithm and other search algorithms (e.g. A*) are typically computationally more efficient than DP to compute optimal paths. DP explores every node providing the optimal paths from every node to the destination. This is inefficient when interested in one optimal path. Why then dynamic programming? Provides a policy which allows to cope with disturbances - see lecture. We discuss next how to use the Dijkstra s algorithm to provide the optimal policy in real time (online). In Appendix A, the Dijkstra s algorithm is used to obtain the same optimal policy obtained in the first lecture with DP. Thus, again, why DP then? Stochastic DP! + other advantages.

34 Edsger W. Dijkstra Historical note Edsger W. Dijkstra was a professor at TU/Eindhoven from 96 to 9 What's the shortest way to travel from Rotterdam to Groningen? It is the algorithm for the shortest path, which I designed in about minutes. One morning I was shopping in Amsterdam with my young fiancée, and tired, we sat down on the café terrace to drink a cup of coffee and I was just thinking about whether I could do this, and I then designed the algorithm for the shortest path. As I said, it was a -minute invention. In fact, it was published in 99, three years later. The publication is still quite nice. One of the reasons that it is so nice was that I designed it without pencil and paper. Without pencil and paper you are almost forced to avoid all avoidable complexities. Eventually that algorithm became, to my great amazement, one of the cornerstones of my fame. Edsger W. Dijkstra (9-)

35 Outline Shortest paths in graphs Dynamic programming Dijkstra s and A* algorithms Certainty equivalent control

36 Shortest paths in graphs and policies A transition diagram is just a weighted graph and therefore we can compute optimal paths with methods to compute shortest paths in graphs (e.g. Dijkstra s, A*) initial stage final stage h Doing this for every stage and every state and taking the first decision of the optimal paths we obtain the optimal policy! (function that for each state give the first decision of the optimal path from each state to last stage) example (see also appendix A) optimal policy However, this is typically computationally less efficient than DP

37 Certainty equivalent control Yet, we can implement the method just described (using e.g., the Dijkstra s algorithm) online. Compute the optimal path for the initial sate and take the first decision initial stage final stage h. If no disturbance occurred use the next decision along the optimal path, otherwise recompute (online!) and apply first decision disturbance (recompute) another disturbances (recompute)

38 Discussion Doing this we end up with the same policy as DP neglecting disturbances considered in the previous lecture. The policy obtained with DP is explicit whereas this new (equivalent) one is implicit and requires online computations! In the literature this (equivalent) policy is called certainty equivalent control and is very related to model predictive control (to be addressed later) To summarize: Optimal paths Certainty equivalent control Stochastic DP DP Dijkstra s (more efficient) DP (might be computationally hard) Dijkstra s offline (less efficient) Dijkstra s online (requires online computations) Stochastic DP Dijkstra

39 Concluding remarks Summary DP can be used to solve shortest paths in graphs. Discussed alternative methods, Dijkstra s and A*. Introduced certainty equivalent control. Main message there are other methods to compute optimal paths and optimal policies (except stochastic DP!) - (dis)advantages depend on the application (e.g. can we use online computations?). After this lecture, you should be able to: Compute the shortest path in a graph with DP, Dijkstra and A*.

40 Appendix A Solving a DP problem with Dijkstra s algorithm

41 Example Consider the same initial transition diagram considered in the first lecture and follow steps I Initial transition diagram. Add artificial terminal node with a cost to arrive to it at the final stage coinciding with the terminal cost. Compute the optimal paths (using Dijkstra s algorithm) for each state to the artificial terminal node and keep track for each initial state of the first decision of the optimal path (this is the optimal policy)

42 Example Initial state Iteration Pairs (i, d i ),i OPEN (, ) (, ), (, ) (, ), (7, ), (, ) (, ), (, ), (, ), (, ) (6, ), (, ), (, ), (, ) (6, ), (, ), (, ), (, 7) (6, ), (, ), (, 7), (, ), (, 7) (, ), (, 7), (, ), (, 7) (, ), (, 7), (, ), (, 7) (, ), (, 7), (, ), (, 7) (, ), (, 6), (, 7) (, 6), (, 7) Belongs to the optimal policy It is clear that if we consider the states, 7, as initial states the transitions(arrows) along this path are also optimal first decisions for these initial states (belong to the optimal policy)

43 Example Initial state Iteration Pairs (i, d i ),iopen (, ) (, ), (, ) (, ), (9, ), (, ) (7, ), (9, ), (, ) (, ), (, 7) (9, ), (, ) (, ), (, 7) (, ), (, ) (, ), (, 7) (, ), (, ), (, ) (, ), (, 7), (, 9), (, ), (, ) 9 Belongs to the optimal policy (, ), (, 7), (, 9), (, ) 9 (, 7), (, 9), (, ) (, 9), (, ) It is clear that if we consider the states, 9,, as initial states the transitions(arrows) along this path are also optimal first decisions for these initial states (belong to the optimal policy)

44 Example Initial state Iteration Pairs (i, d i ),iopen (, ) (6, ), (7, ), (, ) (, ), (, ) (7, ), (, ) (, ), (, ) (7, ), (, 6) (, ), (, ) (, 6) (, ), (, 7), (, 6) (, 6) (, 7), (, 6) (, 6) 9 Belongs to the optimal policy 7 (, 7), (, ), (, 6) (, 7), (, 6) 9 (, 7), (, 6) (, 7) It is clear that if we consider the states,, as initial states the transitions(arrows) along this path are also optimal first decisions for these initial states (belong to the optimal policy)

45 Example Initial state 6 Iteration Pairs (i, d i ),i OPEN 6 (6, ) (, ), (, ) (, ), (, 7), (, ) 7 9 (, 7), (, ) Belongs to the optimal policy (, 7), (, 9) (, 7) It is clear that if we consider the states,, as initial states the transitions(arrows) along this path are also optimal first decisions for these initial states (belong to the optimal policy)

46 Example Combining the first decisions leading to the end stage for each node we obtain the optimal policy (the same obtained with the DP algorithm in the first lecture) Optimal policy

47 Appendix B DP with terminal constraints

48 DP with terminal constraints Suppose that we want to reach a given state at the final stage of a transition diagram starting at a given initial state with minimum cost (as opposed to simply reaching the final stage) Initial state terminal state Since a transition diagram is simply a weighted graph, we can apply graph search methods, and in particular repeat the trick just used to apply DP. B

49 B DP with terminal constraints.relabel nodes transform graph to trans. diagram weighted graph with final and terminal nodes Apply DP

50 DP with terminal constraints By inspection we can see that this is the only only part that matters 6 Conclusion: if there is a terminal constraint: Remove the arrows from nodes at the final decision states that do not lead to the desired terminal state. For each state choose the arrow with minimum cost and set the cost-to-go of that node to be the terminal cost of the desired terminal node plus the cost of such arrow. If the state has no arrows, set the cost-to-go to infinity. Apply DP. B

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

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

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

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

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

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

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

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

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

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

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

Algorithm. December 7, Shortest path using A Algorithm. Phaneendhar Reddy Vanam. Introduction. History. Components of A.

Algorithm. December 7, Shortest path using A Algorithm. Phaneendhar Reddy Vanam. Introduction. History. Components of A. December 7, 2011 1 2 3 4 5 6 7 The A is a best-first search algorithm that finds the least cost path from an initial configuration to a final configuration. The most essential part of the A is a good heuristic

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 16. State-Space Search: Greedy BFS, A, Weighted A Malte Helmert University of Basel March 28, 2018 State-Space Search: Overview Chapter overview: state-space search

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

16.1 Introduction. Foundations of Artificial Intelligence Introduction Greedy Best-first Search 16.3 A Weighted A. 16.

16.1 Introduction. Foundations of Artificial Intelligence Introduction Greedy Best-first Search 16.3 A Weighted A. 16. Foundations of Artificial Intelligence March 28, 2018 16. State-Space Search: Greedy BFS, A, Weighted A Foundations of Artificial Intelligence 16. State-Space Search: Greedy BFS, A, Weighted A Malte Helmert

More information

Informatics 2D: Tutorial 2 (Solutions)

Informatics 2D: Tutorial 2 (Solutions) Informatics 2D: Tutorial 2 (Solutions) Adversarial Search and Informed Search Week 3 1 Adversarial Search This exercise was taken from R&N Chapter 5. Consider the two-player game shown in Figure 1. Figure

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

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

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

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

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

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

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

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

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

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

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on Artificial Intelligence,

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on Artificial Intelligence, Course on Artificial Intelligence, winter term 2012/2013 0/25 Artificial Intelligence Artificial Intelligence 2. Informed Search Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL)

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

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

Shortest path using A Algorithm

Shortest path using A Algorithm Shortest path using A Algorithm Phaneendhar Reddy Vanam Computer Science Indiana State University Terre Haute, IN, USA December 13, 2011 Contents Abstract The main aim of this project is to find the shortest

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

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

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

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

Summary. Search CSL302 - ARTIFICIAL INTELLIGENCE 1

Summary. Search CSL302 - ARTIFICIAL INTELLIGENCE 1 Summary Search CSL302 - ARTIFICIAL INTELLIGENCE 1 Informed Search CHAPTER 3 Informed (Heuristic) Search qheuristic problem-specific knowledge ofinds solutions more efficiently qnew terms o!(#): cost from

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

Artificial Intelligence. 2. Informed Search

Artificial Intelligence. 2. Informed Search Artificial Intelligence Artificial Intelligence 2. Informed Search Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute of Economics and Information Systems & Institute of

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

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

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

Clustering (Un-supervised Learning)

Clustering (Un-supervised Learning) Clustering (Un-supervised Learning) Partition-based clustering: k-mean Goal: minimize sum of square of distance o Between each point and centers of the cluster. o Between each pair of points in the cluster

More information

Informed Search (Ch )

Informed Search (Ch ) Informed Search (Ch. 3.5-3.6) Informed search In uninformed search, we only had the node information (parent, children, cost of actions) Now we will assume there is some additional information, we will

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

Outline. Robotics Planning. Example: Getting to DC from Atlanta. Introduction

Outline. Robotics Planning. Example: Getting to DC from Atlanta. Introduction Outline Robotics Planning Henrik I Christensen Introduction Representations Planning Basics Search methods Evaluation (or the lack thereof) Summary Introduction Example: Getting to DC from Atlanta Generation

More information

Complete the quizzes in the "Problem Set 1" unit in the Introduction to Artificial Intelligence course from Udacity:

Complete the quizzes in the Problem Set 1 unit in the Introduction to Artificial Intelligence course from Udacity: Name: Course: CAP 4601 Semester: Summer 2013 Assignment: Assignment 05 Date: 26 JUN 2013 Complete the following written problems: 1. Problem Set 1 (100 Points). Complete the quizzes in the "Problem Set

More information

Game Programming. Bing-Yu Chen National Taiwan University

Game Programming. Bing-Yu Chen National Taiwan University Game Programming Bing-Yu Chen National Taiwan University Game AI Search Path Finding Finite State Machines Steering Behavior 1 Search Blind search Breadth-first search Depth-first search Heuristic search

More information

MIDTERM Preparation. CSS 343: Data Structures Algorithms, and Discrete Math II

MIDTERM Preparation. CSS 343: Data Structures Algorithms, and Discrete Math II MIDTERM Preparation CSS 343: Data Structures Algorithms, and Discrete Math II The midterm is closed-book, closed-notes exam, except for a single sheet of letter-sized, double-sided hand-written or typed

More information

Artificial Intelligence, CS, Nanjing University Spring, 2016, Yang Yu. Lecture 5: Search 4.

Artificial Intelligence, CS, Nanjing University Spring, 2016, Yang Yu. Lecture 5: Search 4. Artificial Intelligence, CS, Nanjing University Spring, 2016, Yang Yu Lecture 5: Search 4 http://cs.nju.edu.cn/yuy/course_ai16.ashx Previously... Path-based search Uninformed search Depth-first, breadth

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 Bernhard Nebel Albert-Ludwigs-Universität

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

Warm- up. IteraAve version, not recursive. class TreeNode TreeNode[] children() boolean isgoal() DFS(TreeNode start)

Warm- up. IteraAve version, not recursive. class TreeNode TreeNode[] children() boolean isgoal() DFS(TreeNode start) Warm- up We ll o-en have a warm- up exercise for the 10 minutes before class starts. Here s the first one Write the pseudo code for breadth first search and depth first search IteraAve version, not recursive

More information

Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu. Blind Searches

Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu. Blind Searches Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches Blind Searches Function GENERAL-SEARCH (problem, QUEUING-FN) returns a solution or failure nodes = MAKE-QUEUE(MAKE-NODE(INITIAL-STATE[problem]))

More information

Informed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1

Informed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1 Informed Search Dr. Richard J. Povinelli Copyright Richard J. Povinelli Page 1 rev 1.1, 9/25/2001 Objectives You should be able to explain and contrast uniformed and informed searches. be able to compare,

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

Informed (heuristic) search (cont). Constraint-satisfaction search.

Informed (heuristic) search (cont). Constraint-satisfaction search. CS 1571 Introduction to AI Lecture 5 Informed (heuristic) search (cont). Constraint-satisfaction search. Milos Hauskrecht milos@cs.pitt.edu 539 Sennott Square Administration PS 1 due today Report before

More information

Outline. Solving Problems by Searching. Introduction. Problem-solving agents

Outline. Solving Problems by Searching. Introduction. Problem-solving agents Outline Solving Problems by Searching S/ University of Waterloo Sept 7, 009 Problem solving agents and search Examples Properties of search algorithms Uninformed search readth first Depth first Iterative

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

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

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

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Lecture 02 - Pathfinding Edirlei Soares de Lima Game AI Model Pathfinding Steering behaviours Finite state machines Automated planning Behaviour trees

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

CSE 40171: Artificial Intelligence. Uninformed Search: Search Spaces

CSE 40171: Artificial Intelligence. Uninformed Search: Search Spaces CSE 40171: Artificial Intelligence Uninformed Search: Search Spaces 1 Homework #1 has been released. It is due at 11:59PM on 9/10. 2 Course Roadmap Introduction Problem Solving Machine Learning (week 1)

More information

Problem Solving and Search. Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel

Problem Solving and Search. Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel Problem Solving and Search Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel What is problem solving? An agent can act by establishing goals

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

Why Search. Things to consider. Example, a holiday in Jamaica. CSE 3401: Intro to Artificial Intelligence Uninformed Search

Why Search. Things to consider. Example, a holiday in Jamaica. CSE 3401: Intro to Artificial Intelligence Uninformed Search CSE 3401: Intro to Artificial Intelligence Uninformed Search Why Search Required Readings: R & N Chapter 3, Sec. 1-4. Lecture slides adapted from those of Fahiem Bacchus. Successful Success in game playing

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

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

Contents. Foundations of Artificial Intelligence. General Algorithm. Best-First Search

Contents. Foundations of Artificial Intelligence. General Algorithm. Best-First Search Contents Foundations of Artificial Intelligence 4. Informed Search Methods Heuristics, Local Search Methods, Genetic Algorithms Wolfram Burgard, Bernhard Nebel, and Martin Riedmiller Albert-Ludwigs-Universität

More information

CSCE476/876 Spring Homework 5

CSCE476/876 Spring Homework 5 CSCE476/876 Spring 2016 Assigned on: Friday, Marc 11, 2016 Due: Monday, Marc 28, 2016 Homework 5 Programming assignment sould be submitted wit andin Te report can eiter be submitted wit andin as a PDF,

More information

CS 5100: Founda.ons of Ar.ficial Intelligence

CS 5100: Founda.ons of Ar.ficial Intelligence CS 5100: Founda.ons of Ar.ficial Intelligence Search Problems and Solutions Prof. Amy Sliva October 6, 2011 Outline Review inference in FOL Most general unidiers Conversion to CNF UniDication algorithm

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

Chapter 3 Solving Problems by Searching Informed (heuristic) search strategies More on heuristics

Chapter 3 Solving Problems by Searching Informed (heuristic) search strategies More on heuristics Chapter 3 Solving Problems by Searching 3.5 3.6 Informed (heuristic) search strategies More on heuristics CS5811 - Advanced Artificial Intelligence Nilufer Onder Department of Computer Science Michigan

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

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

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

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Jeff Clune Assistant Professor Evolving Artificial Intelligence Laboratory AI Challenge One Transform to graph Explore the graph, looking for? dust unexplored squares Some good

More information