Problem Solving as State Space Search. Assignments

Size: px
Start display at page:

Download "Problem Solving as State Space Search. Assignments"

Transcription

1 Problem olving as tate pace earch rian. Williams 6.0- ept th, 00 lides adapted from: 6.0 Tomas Lozano Perez, Russell and Norvig IM rian Williams, Fall 0 ssignments Remember: Problem et #: Java warm up Out last Wednesday, ue this Wednesday, eptember th Reading: Today: olving problems through search [IM] h..- Wednesday: symptotic nalysis Lecture Notes of 6.06J; Recurrences, Lecture Notes of 6.0J. rian Williams, Fall 0

2 Recap - ourse Objectives. Understand the major types of agents and architectures: goal-directed vs utility-based deliberative vs reactive model-based vs model-free. Learn the modeling and algorithmic building blocks for creating agents: Model problem in an appropriate formal representation. pecify, analyze, apply and implement reasoning algorithms to solve the problem formulations. rian Williams, Fall 0 Recap gent rchitectures Mission oals Locate in World Monitor & iagnosis Plan Execute Map Plan Routes Maneuver and Track Functions: Robust, coordinated operation + mobility It egins with tate pace earch! rian Williams, Fall 0

3 Problem olving as tate pace earch Problem Formulation (Modeling) Problem solving as state space search Formal Representation raphs and search trees Reasoning lgorithms epth and breadth-first search rian Williams, Fall 0 Most gent uilding lock Implementations Use earch Robust Operations: ctivity Planning iagnosis Repair cheduling Resource llocation Mobility: Path Planning Localization Map uilding ontrol Trajectory esign rian Williams, Fall 0 6

4 Example: Outpost Logistics Planning rian Williams, Fall 0 7 Image produced for N by John Frassanito and ssociates. an the astronaut get its supplies safely across a Lunar crevasse? Rover stronaut oose rain stronaut + item allowed in the rover. oose alone eats rain alone eats oose Early I: What are the universal problem solving methods? imple Trivial rian Williams, Fall 0 8

5 Problem olving as tate pace earch Formulate oal tate stronaut,, oose & rain below crevasse. Formulate Problem tates stronaut,, oose & rain above or below the crevasse. Operators Move: stronaut drives rover and or 0 items to other side of crevasse. Initial tate stronaut,, oose & rain above crevasse. enerate olution equence of Operators (or tates) Move(goose,astronaut), Move(astronaut),... rian Williams, Fall 0 9 oose rain stronaut stronaut oose rain rain stronaut oose stronaut oose rain oose rain oose stronaut stronaut rain rian Williams, Fall 0 0

6 6 rian Williams, Fall 0 stronaut oose rain rain stronaut oose stronaut oose rain oose stronaut rain stronaut rain oose stronaut oose rain oose rain stronaut stronaut oose rain rain stronaut oose stronaut oose rain oose stronaut rain oose rain stronaut stronaut rain oose stronaut oose rain stronaut oose rain stronaut oose rain rian Williams, Fall 0 stronaut oose rain rain stronaut oose stronaut rain oose oose stronaut rain stronaut oose rain stronaut oose rain rain stronaut oose stronaut oose rain oose stronaut rain oose rain stronaut stronaut oose rain stronaut rain oose stronaut oose rain oose rain stronaut stronaut oose rain stronaut oose rain

7 Formulation Example: 8-Puzzle tart oal tates: Operators: Initial and oal tates: integer location for each tile N?? move empty square up, down, left, right as shown above rian Williams, Fall 0 Languages for Expressing tates and Operators for omplex Tasks waggert & Lovell assemble emergency rig for pollo lithium hydroxide unit. Image source: N. rian Williams, Fall 0 7

8 Example: TRIP Planning Language Initial state: (and (hose a) (clamp b) (hydroxide-unit c) (on-table a) (on-table b) (on-table c) (clear a) (clear b) (clear c) (empty arm)) goal (partial state): (and (connected a b) (connected b c))) Operators precondition: (and (clear hose) (on-table hose) (empty arm)) pickup hose effect: (and (not (clear hose)) (not (on-table hose)) (not (empty arm)) (holding arm hose))) rian Williams, Fall 0 Problem: Find a Route from home to MIT tates? Operators?, Initial and oal tate? 6 Mapuest, Navigation Technologies. ll rights reserved. This content is excluded from our reative ommons license. For more information, see 8

9 Problem: ompensating for Error Online Policy, π(v) e, dictates how to act in all states. Policy π corresponds to a shortest path tree from all vertices to the destination. rian Williams, Fall 09 7 How do we Map Path Planning to tate pace earch? tart position Vehicle translates, but no rotation oal position 8 9

10 . reate onfiguration pace tart position Vehicle translates, but no rotation Idea: Transform to equivalent problem of navigating a point. oal position 9. Map From ontinuous Problem to raph earch: reate Visibility raph tart position oal position 0 0

11 . Map From ontinuous Problem to raph earch: reate Visibility raph tart position oal position tart position. Find hortest Path (e.g., *) oal position

12 Resulting olution tart position oal position Visibility raph is a Kind of Roadmap tart position What are the strengths / weaknesses of roadmaps? What are some other types of roadmaps? oal position

13 Voronoi iagrams Lines equidistant from pace obstacles Roadmaps: pproximate Fixed ell rian Williams, Fall 0 6

14 Roadmaps: pproximate Fixed ell rian Williams, Fall 0 7 Roadmaps: pproximate Variable ell rian Williams, Fall 0 8

15 Roadmaps: Exact ell ecomposition rian Williams, Fall 0 9 How do we handle large state spaces? tart position RRT, T a oal position RRT, T b Rapid exploring Random Trees rian Williams, Fall 0 0

16 Problem olving as tate pace earch Problem Formulation (Modeling) Problem solving as state space search Formal Representation raphs and search trees Reasoning lgorithms epth and breadth-first search rian Williams, Fall 0 Problem Formulation: raph Operator Edge tate Vertex h Head Vertex of Edge irected raph (one-way streets) t Tail Vertex of Edge neighbors (adjacent) Undirected raph (two-way streets) rian Williams, Fall 0 6

17 Problem Formulation: raph In egree () b Out egree () egree () b irected raph (one-way streets) Undirected raph (two-way streets) rian Williams, Fall 0 Problem Formulation: raph trongly connected graph irected path between all vertices. onnected graph Path between all vertices. omplete graph ll vertices are adjacent. b b a d c e e ub graph ubset of vertices edges between vertices in ubset a c d irected raph (one-way streets) lique complete subgraph (ll vertices are adjacent). Undirected raph (two-way streets) rian Williams, Fall 0 7

18 pecifying a raph: = <V, E> Notation: <a, b, n> an ordered list of elements a, b {a, b, n} an unordered set of distinguished elements. b Vertices V = {a, b, c, d, e} a d c e Edges E = {<a, b>, <a, c>, <b, e>, <c, b>, <c,d>, <e, d>} rian Williams, Fall 0 Examples of raphs oston an Fran Roadmap Wash L allas Planning ctions (graph of possible states of the world) Put on Put on Put on Put on Put on rian Williams, Fall 0 6 8

19 Formalizing tate pace earch Input: search problem = <g,, > where graph g = <V, E>, start vertex in V, and goal vertex in V. Output: simple path P = <, v, > in g from to. rian Williams, Fall 0 7 imple Paths of raph g = <V, E> <,,, > start end (directed) path P of graph g is a sequence of vertices <v, v n > in V such that each successive pair <v i,v i+ > is a (directed) edge in E simple path is a path that has no cycles. cycle is a subpath where start = end (i.e., repeated vertices). rian Williams, Fall 0 8 9

20 Problem olver earches through all imple Paths rian Williams, Fall 0 9 earch Tree enotes ll imple Paths Enumeration is: omplete ystematic ound rian Williams, Fall 0 0 0

21 think of a tree as a family tree earch Trees tree T is a directed graph, such that there exists exactly one undirected path between any pair of vertices. In degree of each vertex is rian Williams, Fall 0 earch Trees Node (Vertex) Root ranch (Edge) Leaf think of a tree as a family tree rian Williams, Fall 0

22 earch Trees Parent iblings hild think of a tree as a family tree rian Williams, Fall 0 earch Trees ncestors think of a tree as a family tree rian Williams, Fall 0

23 earch Trees escendants think of a tree as a family tree rian Williams, Fall 0 Problem olving as tate pace earch Problem Formulation (Modeling) Problem solving as state space search Formal Representation raphs and search trees Reasoning lgorithms epth and breadth-first search rian Williams, Fall 0 6

24 lasses of earch lind epth-first ystematic exploration of whole tree (uninformed) readth-first until the goal is found. Iterative-eepening Optimal * Use path length measure. Find (informed) ranch&ound shortest path. Heuristic Hill-limbing Use heuristic measure of goodness (informed) est-first of a node. eam rian Williams, Fall 0 7 epth First earch (F) Local Rule: fter visiting node Visit its children before its siblings Visit its children left to right rian Williams, Fall 0 8

25 readth First earch (F) Local Rule: fter visiting node Visit its siblings, before its children Visit its children left to right rian Williams, Fall 0 9 Elements of lgorithm esign lgorithm escription: (Today) stylized pseudo code, sufficient to analyze and implement the algorithm (implementation next Wednesday). lgorithm nalysis: (Wednesday & Monday) Time complexity: how long does it take to find a solution? pace complexity: how much memory does it need to perform search? oundness: when a solution is returned, is it guaranteed to be correct? ompleteness: is the algorithm guaranteed to find a solution when there is one? rian Williams, Fall 0 0

26 Problem olving as tate pace earch Problem Formulation (Modeling) Formal Representation Reasoning lgorithms generic search algorithm description epth-first search example Handling cycles readth-first search example rian Williams, Fall 0 earch tates: olve <g = <V, E>,, > using tate pace earch ll simple paths <, v> in g starting at Initial tate: <> Operator: Extend a path <, v> to <, v, u> for each <v, u> in E oal: call u a child of v simple path <,, > in g rian Williams, Fall 0 6

27 olve <g = <V, E>,, > using tate pace earch How do we maintain the search state? n ordering on partial paths yet to be expanded (called a queue ). How do we perform search? Repeatedly:. elect next partial path from.. Expand it.. dd expansions to. Terminate when goal is found. rian Williams, Fall 0 imple earch lgorithm: Preliminaries partial path from to is listed in reverse order, e.g., <,, > The head of a partial path is its most recent visited node, e.g.,. The is a list of partial paths, e.g. (<,, >, <,, > >. rian Williams, Fall 0 7

28 imple earch lgorithm Let be a list of partial paths, be the tart node and be the oal node.. Initialize with partial path <>. If is empty, fail. Else, pick a partial path N from. If head(n) =, return N (goal reached!). Else: a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd all extended paths to d) o to step rian Williams, Fall 0 Problem olving as tate pace earch Problem Formulation (Modeling) Formal Representation Reasoning lgorithms generic search algorithm description epth-first search example Handling cycles readth-first search example rian Williams, Fall 0 6 8

29 epth First earch (F) Idea: fter visiting node Visit its children left to right (or top to bottom) Visit its children before its siblings ssume we remove the first element of, Where to do we add the path extensions? rian Williams, Fall 0 7 imple earch lgorithm Let be a list of partial paths, be the start node and be the oal node.. Initialize with partial path <>. If is empty, fail. Else, pick a partial path N from. If head(n) =, return N (goal reached!). Else: a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd all extended paths to d) o to step rian Williams, Fall 0 8 9

30 epth-first Pick first element of ; dd path extensions to front of () rian Williams, Fall 0 9 imple earch lgorithm Let be a list of partial paths, be the tart node and be the oal node.. Initialize with partial path <>. If is empty, fail. Else, pick a partial path N from. If head(n) =, return N (goal reached!). Else: a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd all extended paths to d) o to step rian Williams, Fall

31 epth-first Pick first element of ; dd path extensions to front of () rian Williams, Fall 0 6 epth-first Pick first element of ; dd path extensions to front of () ( ) dded paths in blue rian Williams, Fall 0 6

32 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) dded paths in blue rian Williams, Fall 0 6 imple earch lgorithm Let be a list of partial paths, Let be the start node and Let be the oal node.. Initialize with partial path <>. If is empty, fail. Else, pick a partial path N from. If head(n) =, return N (goal reached!). Else: a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd all extended paths to d) o to step rian Williams, Fall 0 6

33 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) dded paths in blue rian Williams, Fall 0 6 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) dded paths in blue rian Williams, Fall 0 66

34 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) dded paths in blue rian Williams, Fall 0 67 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) dded paths in blue rian Williams, Fall 0 68

35 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) dded paths in blue rian Williams, Fall 0 69 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) rian Williams, Fall 0 70

36 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) rian Williams, Fall 0 7 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) 6 ( )( ) rian Williams, Fall 0 7 6

37 epth-first Pick first element of ; dd path extensions to front of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) 6 ( )( ) rian Williams, Fall 0 7 imple earch lgorithm Let be a list of partial paths, Let be the start node and Let be the oal node.. Initialize with partial path <>. If is empty, fail. Else, pick a partial path N from. If head(n) =, return N (goal reached!). Else: a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd all extended paths to d) o to step rian Williams, Fall 0 7 7

38 Problem olving as tate pace earch Problem Formulation (Modeling) Formal Representation Reasoning lgorithms generic search algorithm description epth-first search example Handling cycles readth-first search example rian Williams, Fall 0 7 Issue: tarting at and moving top to bottom, will depth-first search ever reach? rian Williams, Fall

39 epth-first Effort can be wasted in more mild cases () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) 6 ( )( ) visited multiple times Multiple paths to, & How much wasted effort can be incurred in the worst case? rian Williams, Fall 0 77 How o We void Repeat Visits? Idea: Keep track of nodes already visited. o not place expanded path on if head is a visited node. oes this maintain correctness? ny goal reachable from a node that was visited a second time would be reachable from that node the first time. oes this always improve efficiency? Visits only a subset of the original paths, such that each node appears at most once at the head of a visited path. rian Williams, Fall

40 How o We Modify The imple earch lgorithm? Let be a list of partial paths, Let be the tart node and Let be the oal node.. Initialize with partial path <> as only entry;. If is empty, fail. Else, pick some partial path N from. If head(n) =, return N (goal reached!). Else a) Remove N from b) Find all children of head(n) and create a one-step extension of N to each child c) dd to all the extended paths d) o to step rian Williams, Fall 0 79 imple earch lgorithm Let be a list of partial paths, Let be the start node and Let be the oal node.. Initialize with partial path <> as only entry; set Visited = {}. If is empty, fail. Else, pick some partial path N from. If head(n) =, return N (goal reached!). Else a) Remove N from b) Find all children of head(n) not in Visited and create a one-step extension of N to each child c) dd to all the extended paths d) dd children of head(n) to Visited e) o to step rian Williams, Fall

41 Testing for the oal This algorithm stops (in step ) when head(n) =. We could have performed this test in step 6 as each extended path is added to. This would catch termination earlier and be perfectly correct for all the searches we have covered so far. However, performing the test in step 6 will be incorrect for the optimal search algorithms that we look at later. We have chosen to leave the test in step to maintain uniformity with these future searches. rian Williams, Fall 0 8 Problem olving as tate pace earch Problem Formulation (modeling) Formal Representation Reasoning lgorithms generic search algorithm description epth-first search example Handling cycles readth-first search example rian Williams, Fall 0 8

42 readth First earch (F) Idea: fter visiting node Visit its children left to right Visit its siblings, before its children ssume we remove the first element of, Where to do we add the path extensions? rian Williams, Fall 0 8 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () 6 rian Williams, Fall 0 8

43 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () 6 rian Williams, Fall 0 8 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, 6 rian Williams, Fall 0 86

44 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, 6 rian Williams, Fall 0 87 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, 6 rian Williams, Fall 0 88

45 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, 6 rian Williams, Fall 0 89 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ) ( )*,,,,, 6 * We could stop here, when the first path to the goal is generated. rian Williams, Fall 0 90

46 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ) ( )*,,,,, 6 * We could stop here, when the first path to the goal is generated. rian Williams, Fall 0 9 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ) ( )*,,,,, ( ) ( ),,,,, 6 rian Williams, Fall 0 9 6

47 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ) ( )*,,,,, 6 ( ) ( ),,,,, 6 ( ),,,,, rian Williams, Fall 0 9 readth-first with Visited List Pick first element of ; dd path extensions to end of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ) ( )*,,,,, 6 ( ) ( ),,,,, 6 ( ),,,,, rian Williams, Fall 0 9 7

48 epth-first with Visited List Pick first element of ; dd path extensions to front of Visited () ( ) ( ),, ( ) ( ) ( ),,,, ( ) ( ),,,, ( ) ( ),,,,, rian Williams, Fall 0 9 For each search type, where do we place the children on the queue? epth First earch (F) epth-first: readth First earch (F) dd path extensions to front of Pick first element of readth-first: dd path extensions to back of Pick first element of rian Williams, Fall

49 What You hould Know Most problem solving tasks may be formulated as state space search. tate space search is formalized using graphs, simple paths, search trees, and pseudo code. epth-first and breadth-first search are framed, among others, as instances of a generic search strategy. ycle detection is required to achieve efficiency and completeness. rian Williams, Fall 0 97 ppendix rian Williams, Fall

50 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () 6 7 rian Williams, Fall 0 99 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) 6 7 dded paths in blue rian Williams, Fall

51 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) ( ) ( ) ( ) 6 7 dded paths in blue rian Williams, Fall 0 0 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )* 6 7 dded paths in blue rian Williams, Fall 0 0 Revisited nodes in pink * We could have stopped here, when the first path to the goal was generated.

52 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )* ( ) ( ) ( ) 6 7 rian Williams, Fall 0 0 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )* 6 ( ) ( ) ( ) 6 ( ) ( ) ( ) ( ) 7 rian Williams, Fall 0 0

53 readth-first (without Visited list) Pick first element of ; dd path extensions to end of () ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )* 6 7 ( ) ( ) ( ) 6 ( ) ( ) ( ) ( ) 7 ( ) ( ) ( )( )( ) rian Williams, Fall 0 0

54 MIT OpenourseWare / 6. Principles of utonomy and ecision Making Fall 00 For information about citing these materials or our Terms of Use, visit:

Today More about Trees. Introduction to Computers and Programming. Spanning trees. Generic search algorithm. Prim s algorithm Kruskal s algorithm

Today More about Trees. Introduction to Computers and Programming. Spanning trees. Generic search algorithm. Prim s algorithm Kruskal s algorithm Introduction to omputers and Programming Prof. I. K. Lundqvist Lecture 8 pril Today More about Trees panning trees Prim s algorithm Kruskal s algorithm eneric search algorithm epth-first search example

More information

Lecture 14: March 9, 2015

Lecture 14: March 9, 2015 324: tate-space, F, F, Uninformed earch. pring 2015 Lecture 14: March 9, 2015 Lecturer: K.R. howdhary : Professor of (VF) isclaimer: These notes have not been subjected to the usual scrutiny reserved for

More information

1/19/2010. Usually for static, deterministic environment

1/19/2010. Usually for static, deterministic environment To download the discussion slides, go to http://april.eecs.umich.edu/courses/eecs492_w10/wiki/index.php/iscussion_lides eterministic, tochastic and trategic nvironment eterministic ompletely predictable

More information

Uninformed Search. Models To Be Studied in CS 540. Chapter Search Example: Route Finding

Uninformed Search. Models To Be Studied in CS 540. Chapter Search Example: Route Finding Models To e tudied in 50 Uninformed earch hapter 3. 3. tate-based Models Model task as a graph of all possible states l alled a state-space graph state captures all the relevant information about the past

More information

Lecture overview. Knowledge-based systems in Bioinformatics, 1MB602, Goal based agents. Search terminology. Specifying a search problem

Lecture overview. Knowledge-based systems in Bioinformatics, 1MB602, Goal based agents. Search terminology. Specifying a search problem Lecture overview Knowledge-based systems in ioinformatics, 1M602, 2006 Lecture 6: earch oal based agents earch terminology pecifying a search problem earch considerations Uninformed search euristic methods

More information

Summary. Agenda. Search. Search is a common technique in problem solving. Search Formulation Tree Search Uniform cost search A* Search.

Summary. Agenda. Search. Search is a common technique in problem solving. Search Formulation Tree Search Uniform cost search A* Search. ummary rtificial Intelligence and its applications ecture earch earch onstraint atisfaction Problems rom start state to goal state onsider constraints Professor aniel Yeung danyeung@ieee.org r. Patrick

More information

Algorithms for Data Structures: Uninformed Search. Phillip Smith 19/11/2013

Algorithms for Data Structures: Uninformed Search. Phillip Smith 19/11/2013 lgorithms for Data Structures: Uninformed Search Phillip Smith 19/11/2013 Representations for Reasoning We know (at least) two models of a world: model of the static states of the world model of the effects

More information

mywbut.com Uninformed Search

mywbut.com Uninformed Search Uninformed Search 1 2.4 Search Searching through a state space involves the following: set of states Operators and their costs Start state test to check for goal state We will now outline the basic search

More information

6.01: Introduction to EECS I Lecture 13 May 3, 2011

6.01: Introduction to EECS I Lecture 13 May 3, 2011 6.0: Introduction to S I Lecture 3 May 3, 20 6.0: Introduction to S I Optimizing a Search Nano-Quiz Makeups Wednesday, May 4, 6-pm, 34-0. everyone can makeup/retake NQ everyone can makeup/retake two additional

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

Reminders. Problem solving and search. Problem-solving agents. Outline. Assignment 0 due 5pm today

Reminders. Problem solving and search. Problem-solving agents. Outline. Assignment 0 due 5pm today ssignment 0 due 5pm today eminders Problem solving and search ssignment 1 posted, due 2/9 ection 105 will move to 9-10am starting next week hapter 3 hapter 3 1 hapter 3 2 Outline Problem-solving agents

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science Artificial Intelligence Fall, 2010

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science Artificial Intelligence Fall, 2010 MSSHUSETTS INSTITUTE OF TEHNOLOY epartment of Electrical Engineering and omputer Science 6.0 rtificial Intelligence Fall, 00 Search Me! Recitation, Thursday September Prof. ob erwick. ifference between

More information

Problem-solving agents. Problem solving and search. Example: Romania. Reminders. Example: Romania. Outline. Chapter 3

Problem-solving agents. Problem solving and search. Example: Romania. Reminders. Example: Romania. Outline. Chapter 3 Problem-solving agents Problem solving and search 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

Problem solving and search

Problem solving and search Problem solving and search hapter 3 hapter 3 1 eminders ssignment 0 due midnight Thursday 9/8 ssignment 1 posted, due 9/20 (online or in box in 283) hapter 3 2 Outline Problem-solving agents Problem types

More information

What is Search? Intro to Search. Search problems. Finding goals in trees. Why is goal search not trivial? Blind Search Methods

What is Search? Intro to Search. Search problems. Finding goals in trees. Why is goal search not trivial? Blind Search Methods What is Search? lind Search Methods Search as an Tool S, DS, DS, US, ids Search is one of the most powerful approaches to problem solving in Search is a universal problem solving mechanism that Systematically

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

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement Outline Informed Search EE457 pplied rtificial Intelligence Spring 8 Lecture # Heuristics Informed search techniques More on heuristics Iterative improvement Russell & Norvig, chapter 4 Skip Genetic algorithms

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 2 estricted form of general agent: Problem-solving

More information

State Transition Graph of 8-Puzzle E W W E W W 3 2 E

State Transition Graph of 8-Puzzle E W W E W W 3 2 E rrays. Lists. inary search trees. ash tables. tacks. Queues. tate Transition raph of 8-Puzzle oal: Understand data structures by solving the puzzle problem lementary tructures 4 7 5 6 8 4 6 5 7 8. Trees

More information

Problem solving by search

Problem solving by search Problem solving by search based on tuart ussel s slides (http://aima.cs.berkeley.edu) February 27, 2017, E533KUI - Problem solving by search 1 Outline Problem-solving agents Problem types Problem formulation

More information

Outline. Problem solving and search. Problem-solving agents. Example: Romania. Example: Romania. Problem types. Problem-solving agents.

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

More information

The wolf sheep cabbage problem. Search. Terminology. Solution. Finite state acceptor / state space

The wolf sheep cabbage problem. Search. Terminology. Solution. Finite state acceptor / state space Search The wolf sheep cabbage problem What is search? Terminology: search space, strategy Modelling Uninformed search (not intelligent ) Breadth first Depth first, some variations omplexity space and time

More information

Optimal Satisfiability and Conflict-directed A* Image credit: NASA. Assignment

Optimal Satisfiability and Conflict-directed A* Image credit: NASA. Assignment /27/ Optimal Satisfiability and onflict-directed * Brian. Williams 6.4 / 6.43 October 27 th, 2 Image credit: NS. Brian. Williams, copyright 2 ssignment Remember: Problem Set #6 Propositional Logic, due

More information

ECE 242 Data Structures and Algorithms. Graphs II. Lecture 27. Prof.

ECE 242 Data Structures and Algorithms.  Graphs II. Lecture 27. Prof. 242 ata Structures and lgorithms http://www.ecs.umass.edu/~polizzi/teaching/242/ Graphs II Lecture 27 Prof. ric Polizzi Summary Previous Lecture omposed of vertices (nodes) and edges vertex or node edges

More information

CSE 332: Data Structures & Parallelism Lecture 19: Introduction to Graphs. Ruth Anderson Autumn 2018

CSE 332: Data Structures & Parallelism Lecture 19: Introduction to Graphs. Ruth Anderson Autumn 2018 SE 332: ata Structures & Parallelism Lecture 19: Introduction to Graphs Ruth nderson utumn 2018 Today Graphs Intro & efinitions 11/19/2018 2 Graphs graph is a formalism for representing relationships among

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

Chapter 9: Elementary Graph Algorithms Basic Graph Concepts

Chapter 9: Elementary Graph Algorithms Basic Graph Concepts hapter 9: Elementary Graph lgorithms asic Graph oncepts msc 250 Intro to lgorithms graph is a mathematical object that is used to model different situations objects and processes: Linked list Tree (partial

More information

Incremental Path Planning

Incremental Path Planning utline ncremental Path Planning ontinuous Planning and ynamic * ptimal Path Planning in Partially nown nvironments. ontinuous ptimal Path Planning ynamic * ncremental * (RT*) [ppendix] Prof. rian Williams

More information

6.01: Introduction to EECS 1 Week 13 December 1, 2009

6.01: Introduction to EECS 1 Week 13 December 1, 2009 6.0: Introduction to Week ecember, 009 6.0: Introduction to I Optimal earch lgorithms The story so far earch domain characterized by successors function, legal actions, start state, goal function. earch

More information

CSE 373: Data Structures and Algorithms. Graph Traversals. Autumn Shrirang (Shri) Mare

CSE 373: Data Structures and Algorithms. Graph Traversals. Autumn Shrirang (Shri) Mare SE 373: ata Structures and lgorithms Graph Traversals utumn 2018 Shrirang (Shri) Mare shri@cs.washington.edu Thanks to Kasey hampion, en Jones, dam lank, Michael Lee, Evan Mcarty, Robbie Weber, Whitaker

More information

3.1 Basic Definitions and Applications

3.1 Basic Definitions and Applications Graphs hapter hapter Graphs. Basic efinitions and Applications Graph. G = (V, ) n V = nodes. n = edges between pairs of nodes. n aptures pairwise relationship between objects: Undirected graph represents

More information

Advanced Data Structures and Algorithms

Advanced Data Structures and Algorithms dvanced ata Structures and lgorithms ssociate Professor r. Raed Ibraheem amed University of uman evelopment, College of Science and Technology Computer Science epartment 2015 2016 epartment of Computer

More information

Outline. Solving problems by searching. Prologue. Example: Romania. Uninformed search

Outline. Solving problems by searching. Prologue. Example: Romania. Uninformed search Outline olving problems by searching Uninformed search lides from ussell & Norvig book, revised by ndrea oli Problem-solving agents Problem types Problem formulation Example problems asic search algorithms

More information

Solving problems by searching

Solving problems by searching olving problems by searching Uninformed search lides from ussell & Norvig book, revised by ndrea oli Problem-solving agents Problem types Problem formulation Example problems asic search algorithms Outline

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 5 Exploring graphs Adam Smith 9/5/2008 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Puzzles Suppose an undirected graph G is connected.

More information

Luke. Leia 2. Han Leia

Luke. Leia 2. Han Leia Reading SE : ata Structures raph lgorithms raph Search hapter.,.,. Lecture raph T raphs are a formalism for representing relationships between objects a graph is represented as = (V, E) Han V is a set

More information

Uninformed Search Complexity. Informed Search. Search Revisited. Day 2/3 of Search

Uninformed Search Complexity. Informed Search. Search Revisited. Day 2/3 of Search Informed Search ay 2/3 of Search hap. 4, Ruel & Norvig FS IFS US PFS MEM FS IS Uninformed Search omplexity N = Total number of tate = verage number of ucceor (branching factor) L = Length for tart to goal

More information

Search Methods 9/21/11 MOTIVATION. Artificial Intelligence. Where are we? Outline. Problem Solving as Search

Search Methods 9/21/11 MOTIVATION. Artificial Intelligence. Where are we? Outline. Problem Solving as Search 9// Where are we? rtificial Intelligence earch Methods # Title Introduction Propositional Logic Predicate Logic 4 Reasoning 5 earch Methods 6 CommonK 7 Problem-olving Methods 8 Planning 9 oftware gents

More information

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents Class Overview COMP 3501 / COMP 4704-4 Lecture 2: Search Prof. 1 2 Problem Solving Agents Problem Solving Agents: Assumptions Requires a goal Assume world is: Requires actions Observable What actions?

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms S 101, Winter 2018 esign and nalysis of lgorithms Lecture 3: onnected omponents lass URL: http://vlsicad.ucsd.edu/courses/cse101-w18/ nd of Lecture 2: s, Topological Order irected cyclic raph.g., Vertices

More information

Practice Final Exam 1

Practice Final Exam 1 Algorithm esign Techniques Practice Final xam Instructions. The exam is hours long and contains 6 questions. Write your answers clearly. You may quote any result/theorem seen in the lectures or in the

More information

6.141: Robotics systems and science Lecture 10: Motion Planning III

6.141: Robotics systems and science Lecture 10: Motion Planning III 6.141: Robotics systems and science Lecture 10: Motion Planning III Lecture Notes Prepared by N. Roy and D. Rus EECS/MIT Spring 2012 Reading: Chapter 3, and Craig: Robotics http://courses.csail.mit.edu/6.141/!

More information

Informed Search. CMU Snake Robot. Administrative. Uninformed search strategies. Assignment 1 was due before class how d it go?

Informed Search. CMU Snake Robot. Administrative. Uninformed search strategies. Assignment 1 was due before class how d it go? Informed Search S151 David Kauchak Fall 2010 MU Snake Robot http://www-cgi.cs.cmu.edu/afs/cs.cmu.edu/web/people/biorobotics/projects/ modsnake/index.html Some material borrowed from : Sara Owsley Sood

More information

A2 Uninformed Search

A2 Uninformed Search 2 Uninformed Search Hantao Zhang http://www.cs.uiowa.edu/ hzhang/c145 The University of Iowa Department of omputer Science rtificial Intelligence p.1/82 Example: The 8-puzzle 2 8 3 1 7 6 4 5 It can be

More information

Example: The 8-puzzle. A2 Uninformed Search. It can be generalized to 15-puzzle, 24-puzzle, or. (n 2 1)-puzzle for n 6. Department of Computer Science

Example: The 8-puzzle. A2 Uninformed Search. It can be generalized to 15-puzzle, 24-puzzle, or. (n 2 1)-puzzle for n 6. Department of Computer Science 2 Uninformed Search Hantao Zhang http://www.cs.uiowa.edu/ hzhang/c145 The University of Iowa Department of omputer Science rtificial Intelligence p.1/82 Example: The 8-puzzle 2 1 7 8 3 6 4 5 It can be

More information

A4B36ZUI - Introduction ARTIFICIAL INTELLIGENCE

A4B36ZUI - Introduction ARTIFICIAL INTELLIGENCE A4B36ZUI - Introduction to ARTIFICIAL INTELLIGENCE https://cw.fel.cvut.cz/wiki/courses/a4b33zui/start Michal Pechoucek, Branislav Bosansky, Jiri Klema & Olga Stepankova Department of Computer Science Czech

More information

Note. Out of town Thursday afternoon. Willing to meet before 1pm, me if you want to meet then so I know to be in my office

Note. Out of town Thursday afternoon. Willing to meet before 1pm,  me if you want to meet then so I know to be in my office raphs and Trees Note Out of town Thursday afternoon Willing to meet before pm, email me if you want to meet then so I know to be in my office few extra remarks about recursion If you can write it recursively

More information

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 10 Notes. Class URL:

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 10 Notes. Class URL: Notes slides from before lecture CSE 21, Winter 2017, Section A00 Lecture 10 Notes Class URL: http://vlsicad.ucsd.edu/courses/cse21-w17/ Notes slides from before lecture Notes February 13 (1) HW5 is due

More information

Graphs & Digraphs Tuesday, November 06, 2007

Graphs & Digraphs Tuesday, November 06, 2007 Graphs & Digraphs Tuesday, November 06, 2007 10:34 PM 16.1 Directed Graphs (digraphs) like a tree but w/ no root node & no guarantee of paths between nodes consists of: nodes/vertices - a set of elements

More information

Graphs: Topological Sort / Graph Traversals (Chapter 9)

Graphs: Topological Sort / Graph Traversals (Chapter 9) Today s Outline raphs: Topological Sort / raph Traversals (hapter 9) S 373 ata Structures and lgorithms dmin: omework #4 - due Thurs, Nov 8 th at pm Midterm 2, ri Nov 6 raphs Representations Topological

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

Graphs: Definitions and Representations (Chapter 9)

Graphs: Definitions and Representations (Chapter 9) oday s Outline Graphs: efinitions and Representations (hapter 9) dmin: HW #4 due hursday, Nov 10 at 11pm Memory hierarchy Graphs Representations SE 373 ata Structures and lgorithms 11/04/2011 1 11/04/2011

More information

COMP 8620 Advanced Topics in AI

COMP 8620 Advanced Topics in AI OMP 8620 dvanced Topics in Lecturers: Philip Kilby & Jinbo uang 25/07/2008 1 Part 1: Search Lecturer: r Philip Kilby Philip.Kilby@nicta.com.au Weeks 1-71 (Week 7 is assignment seminars) Part 2: Probabilistic

More information

Chapter 3 Solving problems by searching

Chapter 3 Solving problems by searching 1 Chapter 3 Solving problems by searching CS 461 Artificial Intelligence Pinar Duygulu Bilkent University, Slides are mostly adapted from AIMA and MIT Open Courseware 2 Introduction Simple-reflex agents

More information

GRAPH THEORY. What are graphs? Why graphs? Graphs are usually used to represent different elements that are somehow related to each other.

GRAPH THEORY. What are graphs? Why graphs? Graphs are usually used to represent different elements that are somehow related to each other. GRPH THEORY Hadrian ng, Kyle See, March 2017 What are graphs? graph G is a pair G = (V, E) where V is a nonempty set of vertices and E is a set of edges e such that e = {a, b where a and b are vertices.

More information

Graphs: Definitions and Representations (Chapter 9)

Graphs: Definitions and Representations (Chapter 9) oday s Outline Graphs: efinitions and Representations (hapter 9) SE 373 ata Structures and lgorithms dmin: Homework #4 - due hurs, Nov 8 th at 11pm Midterm 2, ri Nov 16 Memory hierarchy Graphs Representations

More information

Problem Solving as Search. CMPSCI 383 September 15, 2011

Problem Solving as Search. CMPSCI 383 September 15, 2011 Problem Solving as Search CMPSCI 383 September 15, 2011 1 Today s lecture Problem-solving as search Uninformed search methods Problem abstraction Bold Claim: Many problems faced by intelligent agents,

More information

This course is intended for 3rd and/or 4th year undergraduate majors in Computer Science.

This course is intended for 3rd and/or 4th year undergraduate majors in Computer Science. Lecture 9 Graphs This course is intended for 3rd and/or 4th year undergraduate majors in Computer Science. You need to be familiar with the design and use of basic data structures such as Lists, Stacks,

More information

Search Algorithms. Uninformed Blind search. Informed Heuristic search. Important concepts:

Search Algorithms. Uninformed Blind search. Informed Heuristic search. Important concepts: Uninformed Search Search Algorithms Uninformed Blind search Breadth-first uniform first depth-first Iterative deepening depth-first Bidirectional Branch and Bound Informed Heuristic search Greedy search,

More information

6.141: Robotics systems and science Lecture 10: Implementing Motion Planning

6.141: Robotics systems and science Lecture 10: Implementing Motion Planning 6.141: Robotics systems and science Lecture 10: Implementing Motion Planning Lecture Notes Prepared by N. Roy and D. Rus EECS/MIT Spring 2011 Reading: Chapter 3, and Craig: Robotics http://courses.csail.mit.edu/6.141/!

More information

Trees : Part 1. Section 4.1. Theory and Terminology. A Tree? A Tree? Theory and Terminology. Theory and Terminology

Trees : Part 1. Section 4.1. Theory and Terminology. A Tree? A Tree? Theory and Terminology. Theory and Terminology Trees : Part Section. () (2) Preorder, Postorder and Levelorder Traversals Definition: A tree is a connected graph with no cycles Consequences: Between any two vertices, there is exactly one unique path

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

Search. Search Trees

Search. Search Trees Search Search Trees node = state arcs = operators search = control epth E F G Fringe or search frontier branching factor = # choices of each node Search riteria ompleteness: guarantees to find a solution

More information

Uninformed Search B. Navigating through a search tree. Navigating through a search tree. Navigating through a search tree

Uninformed Search B. Navigating through a search tree. Navigating through a search tree. Navigating through a search tree Uninformed Search Russell and Norvig chap. 3 Following this, the pong paddle went on a mission to destroy tari headquarters and, due to a mixup, found himself inside the game The Matrix Reloaded. oy, was

More information

Agenda. Graph Representation DFS BFS Dijkstra A* Search Bellman-Ford Floyd-Warshall Iterative? Non-iterative? MST Flow Edmond-Karp

Agenda. Graph Representation DFS BFS Dijkstra A* Search Bellman-Ford Floyd-Warshall Iterative? Non-iterative? MST Flow Edmond-Karp Graph Charles Lin genda Graph Representation FS BFS ijkstra * Search Bellman-Ford Floyd-Warshall Iterative? Non-iterative? MST Flow Edmond-Karp Graph Representation djacency Matrix bool way[100][100];

More information

A graph is a set of objects (called vertices or nodes) and edges between pairs of nodes.

A graph is a set of objects (called vertices or nodes) and edges between pairs of nodes. Section 1.4: raphs and Trees graph is a set of objects (called vertices or nodes) and edges between pairs of nodes. Eq Co Ve Br S Pe Bo Pa U Ch Vertices = {Ve,, S,, Br, Co, Eq, Pe, Bo,Pa, Ch,, U} Edges

More information

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions Class Overview COMP 3501 / COMP 4704-4 Lecture 2 Prof. JGH 318 Problem Solving Agents Problem Solving Agents: Assumptions Requires a goal Assume world is: Requires actions Observable What actions? Discrete

More information

Uninformed Search. Reading: Chapter 4 (Tuesday, 2/5) HW#1 due next Tuesday

Uninformed Search. Reading: Chapter 4 (Tuesday, 2/5) HW#1 due next Tuesday Uninformed Search Reading: Chapter 4 (Tuesday, 2/5) HW#1 due next Tuesday 1 Uninformed Search through the space of possible solutions Use no knowledge about which path is likely to be best Exception: uniform

More information

Outlines: Graphs Part-2

Outlines: Graphs Part-2 Elementary Graph Algorithms PART-2 1 Outlines: Graphs Part-2 Graph Search Methods Breadth-First Search (BFS): BFS Algorithm BFS Example BFS Time Complexity Output of BFS: Shortest Path Breath-First Tree

More information

Analysis of Algorithms Prof. Karen Daniels

Analysis of Algorithms Prof. Karen Daniels UMass Lowell omputer Science 91.404 nalysis of lgorithms Prof. Karen aniels Spring, 2013 hapter 22: raph lgorithms & rief Introduction to Shortest Paths [Source: ormen et al. textbook except where noted]

More information

Chapter 3: Solving Problems by Searching

Chapter 3: Solving Problems by Searching Chapter 3: Solving Problems by Searching Prepared by: Dr. Ziad Kobti 1 Problem-Solving Agent Reflex agent -> base its actions on a direct mapping from states to actions. Cannot operate well in large environments

More information

Artificial Intelligence

Artificial Intelligence COMP224 Artificial Intelligence The Meaning of earch in AI The terms search, search space, search problem, search algorithm are widely used in computer science and especially in AI. In this context the

More information

Lesson 22: Basic Graph Concepts

Lesson 22: Basic Graph Concepts Lesson 22: asic Graph oncepts msc 175 iscrete Mathematics 1. Introduction graph is a mathematical object that is used to model different relations between objects and processes: Linked list Flowchart of

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

Programming Abstractions

Programming Abstractions Programming bstractions S 1 0 6 X ynthia ee Upcoming Topics raphs! 1. asics What are they? ow do we represent them? 2. Theorems What are some things we can prove about graphs? 3. readth-first search on

More information

CMU-Q Lecture 2: Search problems Uninformed search. Teacher: Gianni A. Di Caro

CMU-Q Lecture 2: Search problems Uninformed search. Teacher: Gianni A. Di Caro CMU-Q 15-381 Lecture 2: Search problems Uninformed search Teacher: Gianni A. Di Caro RECAP: ACT RATIONALLY Think like people Think rationally Agent Sensors? Actuators Percepts Actions Environment Act like

More information

Trees Algorhyme by Radia Perlman

Trees Algorhyme by Radia Perlman Algorhyme by Radia Perlman I think that I shall never see A graph more lovely than a tree. A tree whose crucial property Is loop-free connectivity. A tree which must be sure to span. So packets can reach

More information

Logic Programming: Search Strategies

Logic Programming: Search Strategies O Logic Programming: earch trategies Alan maill ov 5, 2012 Alan maill Logic Programming: earch trategies ov 5, 2012 1/1 oday Problem representation earch epth irst terative eepening readth irst A/O (alternating/game

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 4 Graphs Definitions Traversals Adam Smith 9/8/10 Exercise How can you simulate an array with two unbounded stacks and a small amount of memory? (Hint: think of a

More information

Single Source, Shortest Path Problem

Single Source, Shortest Path Problem Lecture : From ijkstra to Prim Today s Topics: ijkstra s Shortest Path lgorithm epth First Search Spanning Trees Minimum Spanning Trees Prim s lgorithm overed in hapter 9 in the textbook Some slides based

More information

NP-Complete Problems

NP-Complete Problems NP-omplete Problems P and NP Polynomial time reductions Satisfiability Problem, lique Problem, Vertex over, and ominating Set 10/19/2009 SE 5311 FLL 2009 KUMR 1 Polynomial lgorithms Problems encountered

More information

CS 4700: Foundations of Artificial Intelligence. Bart Selman. Search Techniques R&N: Chapter 3

CS 4700: Foundations of Artificial Intelligence. Bart Selman. Search Techniques R&N: Chapter 3 CS 4700: Foundations of Artificial Intelligence Bart Selman Search Techniques R&N: Chapter 3 Outline Search: tree search and graph search Uninformed search: very briefly (covered before in other prerequisite

More information

Week 9 Student Responsibilities. Mat Example: Minimal Spanning Tree. 3.3 Spanning Trees. Prim s Minimal Spanning Tree.

Week 9 Student Responsibilities. Mat Example: Minimal Spanning Tree. 3.3 Spanning Trees. Prim s Minimal Spanning Tree. Week 9 Student Responsibilities Reading: hapter 3.3 3. (Tucker),..5 (Rosen) Mat 3770 Spring 01 Homework Due date Tucker Rosen 3/1 3..3 3/1 DS & S Worksheets 3/6 3.3.,.5 3/8 Heapify worksheet ttendance

More information

CS 4100 // artificial intelligence

CS 4100 // artificial intelligence CS 4100 // artificial intelligence instructor: byron wallace Search I Attribution: many of these slides are modified versions of those distributed with the UC Berkeley CS188 materials Thanks to John DeNero

More information

Informed search strategies (Section ) Source: Fotolia

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

More information

Intelligent Agents. Introduction to Heuristic Search. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

Intelligent Agents. Introduction to Heuristic Search. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University Intelligent Agents Introduction to Heuristic earch Ute chmid Cognitive ystems, Applied Computer cience, amberg University last change: June 22, 2010 U. chmid (Cogys) Intelligent Agents last change: June

More information

CS 331: Artificial Intelligence Uninformed Search. Leftovers from last time

CS 331: Artificial Intelligence Uninformed Search. Leftovers from last time S 331: rtificial Intelligence Uninformed Search 1 Leftovers from last time Discrete/ontinuous Discrete: finite number of values eg. Rating can be thumbs up or down ontinuous: infinite continuum of values

More information

SOLVING PROBLEMS BY SEARCHING

SOLVING PROBLEMS BY SEARCHING ontents Foundations of rtificial Intelligence 3. olving Problems by earching Problem-olving gents, Formulating Problems, earch trategies Wolfram urgard, ernhard Nebel, and Martin iedmiller lbert-udwigs-universität

More information

CS/COE 1501 cs.pitt.edu/~bill/1501/ Graphs

CS/COE 1501 cs.pitt.edu/~bill/1501/ Graphs CS/COE 1501 cs.pitt.edu/~bill/1501/ Graphs 5 3 2 4 1 0 2 Graphs A graph G = (V, E) Where V is a set of vertices E is a set of edges connecting vertex pairs Example: V = {0, 1, 2, 3, 4, 5} E = {(0, 1),

More information

Minimum Spanning Trees and Shortest Paths

Minimum Spanning Trees and Shortest Paths Minimum Spanning Trees and Shortest Paths Prim's algorithm ijkstra's algorithm November, 017 inda eeren / eoffrey Tien 1 Recall: S spanning tree Starting from vertex 16 9 1 6 10 13 4 3 17 5 11 7 16 13

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

Motion Planning, Part III Graph Search, Part I. Howie Choset

Motion Planning, Part III Graph Search, Part I. Howie Choset Motion Planning, Part III Graph Search, Part I Howie Choset Happy President s Day The Configuration Space What it is A set of reachable areas constructed from knowledge of both the robot and the world

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

CS 188: Artificial Intelligence. Recap Search I

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

More information

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems S 331: rtificial Intelligence Uninformed Search 1 Real World Search Problems 2 1 Simpler Search Problems 3 Static Observable Discrete Deterministic Single-agent ssumptions bout Our Environment 4 2 Search

More information

Introduction to Graphs. common/notes/ppt/

Introduction to Graphs.   common/notes/ppt/ Introduction to Graphs http://people.cs.clemson.edu/~pargas/courses/cs212/ common/notes/ppt/ Introduction Graphs are a generalization of trees Nodes or verticies Edges or arcs Two kinds of graphs irected

More information

CSE 431/531: Algorithm Analysis and Design (Spring 2018) Greedy Algorithms. Lecturer: Shi Li

CSE 431/531: Algorithm Analysis and Design (Spring 2018) Greedy Algorithms. Lecturer: Shi Li CSE 431/531: Algorithm Analysis and Design (Spring 2018) Greedy Algorithms Lecturer: Shi Li Department of Computer Science and Engineering University at Buffalo Main Goal of Algorithm Design Design fast

More information

Set 2: State-spaces and Uninformed Search. ICS 271 Fall 2015 Kalev Kask

Set 2: State-spaces and Uninformed Search. ICS 271 Fall 2015 Kalev Kask Set 2: State-spaces and Uninformed Search ICS 271 Fall 2015 Kalev Kask You need to know State-space based problem formulation State space (graph) Search space Nodes vs. states Tree search vs graph search

More information

TCOM 501: Networking Theory & Fundamentals. Lecture 11 April 16, 2003 Prof. Yannis A. Korilis

TCOM 501: Networking Theory & Fundamentals. Lecture 11 April 16, 2003 Prof. Yannis A. Korilis TOM 50: Networking Theory & undamentals Lecture pril 6, 2003 Prof. Yannis. Korilis 2 Topics Routing in ata Network Graph Representation of a Network Undirected Graphs Spanning Trees and Minimum Weight

More information

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems S 331: rtificial Intelligence Uninformed Search 1 Real World Search Problems 2 1 Simpler Search Problems 3 ssumptions bout Our Environment Fully Observable Deterministic Sequential Static Discrete Single-agent

More information