Uninformed Search. Models To Be Studied in CS 540. Chapter Search Example: Route Finding
|
|
- Bertha Wilkins
- 6 years ago
- Views:
Transcription
1 Models To e tudied in 50 Uninformed earch hapter 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 in order to act (optimally) in the future ctions correspond to transitions from one state to another olutions are defined as a sequence of steps/actions (i.e., a path in the graph) Many I (and non-i) Tasks can be ormulated as earch Problems earch xample: Route inding oal is to find a sequence of actions l Puzzles l ames l Navigation l ssignment l Motion planning l cheduling l Routing ctions: go straight, turn left, turn right oal: shortest? fastest? most scenic?
2 earch xample: River rossing Problem earch xample: 8-Puzzle Rules: ) armer must row the boat 2) Only room for one other 3) Without the farmer present: og bites sheep heep eats cabbage oal: ll on right side of river ctions: >, <, >, <, >, <, >, < ctions: move tiles (e.g., Move2own) oal: reach a certain configuration earch xample: Water Jugs Problem earch xample: Robot Motion Planning iven -liter and 3-liter pitchers, how do you get exactly 2 liters into the -liter pitcher? ctions: translate and rotate joints oal: fastest? most energy efficient? safest? 3 2
3 earch xample: Natural Language Translation earch xample: 8-Queens Italian à nglish: la casa blu à the blue house ctions: translate single words (e.g., la à the) oal: fluent nglish? preserves meaning? earch xample: Remove 5 ticks Problem asic earch Task ssumptions (usually, though not games) Remove exactly 5 of the sticks so the resulting figure forms exactly 3 squares l ully observable l eterministic l tatic l iscrete l ingle agent l olution is a sequence of actions 3
4 What Knowledge does the gent Need? ow should the nvironment be Represented? l The information needs to be sufficient to describe all relevant aspects for reaching the adequate to describe the world state / situation l ully observable assumption, also known as the closed world assumption, means ll necessary information about a problem domain is accessible so that each state is a complete description of the world; there is no missing information at any point in time 5 l Knowledge representation problem: What information from the sensors is relevant? ow to represent domain knowledge? l etermining what to represent is difficult and is usually left to the system designer to specify l Problem tate = representation of all necessary information about the environment l tate pace (aka Problem pace) = all possible valid configurations of the environment What oal does the gent want to chieve? What ctions does the gent Need? l ow do you describe the? as a task to be accomplished as a state to be reached as a set of properties to be satisfied l ow do you know when the is reached? with a test that defines what it means to have achieved/satisfied the or, with a set of states l etermining the is usually left to the system designer or user to specify l iscrete and eterministic task assumptions imply l iven: an action (aka operator or move) a description of the current state of the world l ction completely specifies: if that action can be applied (i.e., legal) what the exact state of the world will be after the action is performed in the current state (no "history" information needed to compute the successor state)
5 What ctions does the gent Need? earch xample: 8-Puzzle l finite set of actions/operators needs to be decomposed into atomic steps that are discrete and indivisible, and therefore can be treated as instantaneous sufficient to describe all necessary changes l The number of actions needed depends on how the world states are represented l tates = configurations l ctions = up to kinds of moves: up, down, left, right 8 Water Jugs Problem iven -liter and 3-liter pitchers, how do you get exactly 2 liters into the -liter pitcher? 3 tate: (x, y) for # liters in -liter and 3-liter pitchers, respectively ctions: empty, fill, pour water between pitchers Initial state: (0, 0) oal state: (2, *) ction / uccessor unctions. (x, y x < ) (, y) ill 2. (x, y y < 3) (x, 3) ill 3 3. (x, y x > 0) (0, y) mpty. (x, y y > 0) (x, 0) mpty 3 5. (x, y x+y and y > 0) (, y - ( - x)) Pour from 3 to until is full. (x, y x+y 3 and x > 0) (x - (3 - y), 3). (x, y x+y and y > 0) (x+y, 0) Pour from to 3 until 3 is full Pour all water from 3 to 5
6 ormalizing earch in a tate pace l state space is a directed graph: (V, ) V is a set of nodes (vertices) is a set of arcs (edges) each arc is directed from one node to another node l ach node is a data structure that contains: a state description other information such as: l link to parent node l name of action that generated this node (from its parent) l other bookkeeping data ormalizing earch in a tate pace l ach arc corresponds to one of the finite number of actions: when the action is applied to the state associated with the arc's source node then the resulting state is the state associated with the arc's destination node l ach arc has a fixed, positive cost: corresponds to the cost of the action ormalizing earch in a tate pace ormalizing earch in a tate pace l ach node has a finite set of successor nodes: corresponds to all of the legal actions that can be applied at the source node's state l xpanding a node means: generate all of the successor nodes add them and their associated arcs to the statespace search tree l One or more nodes are designated as nodes l test is applied to a node's state to determine if it is a node l solution is a sequence of actions associated with a path in the state space from a to a node: just the state (e.g., cryptarithmetic) a path from to state (e.g., 8-puzzle) l The cost of a solution is the sum of the arc costs on the solution path 2 25
7 earch ummary olution is an ordered sequence of primitive actions (steps) f(x) = a, a 2,, a n where x is the input Model task as a graph of all possible states and actions, and a solution as a path state captures all the relevant information about the past izes of tate paces* Problem # Nodes l Tic-Tac-Toe 0 3 l heckers 0 20 l hess 0 50 l o 0 0 * pproximate number of legal states What are the omponents of ormalizing earch in a tate pace? ormalizing earch search problem has five components:, I,, actions, cost. tate space : all valid configurations? 2. Initial states I : a set of states 3. oal states : a set of states. n action function successors(s) : states reachable in one step (one arc) from s I = {(,)} = {(,)} successors((,)) = {(,)} successors((,)) = {(,), (,), (,)} 5. cost function cost(s, s ): The cost of moving from s to s l The of search is to find a solution path from a state in I to a state in
8 tate pace = irected raph,, ifferent earch trategies l The generated, but not yet expanded, states define the rontier (aka Open or ringe) set l The essential difference is, which state in the rontier to expand next?,,,,,,,, tart,, oal,,,,,, l In general, there will be many generated, but unexpanded, states at any given time during a search l One has to choose which one to expand next tart,, oal 33 ormalizing earch in a tate pace tate-space search is the process of searching through a state space for a solution by making explicit a sufficient portion of an implicit state-space graph, in the form of a search tree, to include a node: TR R lgorithm: rontier = {}, where is the node Loop do called expanding node n if rontier is empty then return failure pick a node, n, from rontier if n is a node then return solution enerate all n s successor nodes and add them all to rontier Remove n from rontier 3 ormalizing earch in a tate pace l This algorithm does NOT detect when node is generated l This algorithm does NOT detect loops (i.e., repeated states) in state space l ach node implicitly represents a partial solution path from the node to the given node cost of the partial solution path l rom this node there may be many possible paths that have this partial path as a prefix many possible solutions 8
9 tate pace raph Uninformed earch on Trees b a c t OL l Uninformed means we only know: The test The successors() function TRT p d q e h u r f l l ut not which non- states are better or now, also assume state space is a tree That is, we won t worry about repeated states We will relax this later What is the corresponding search tree? v Key Issues of tate-pace earch lgorithm l earch process constructs a "search tree" root is the state leaf nodes are: l unexpanded nodes (in the rontier list) l "dead ends" (nodes that aren't s and have no successors because no operators were applicable) l node is last leaf node found l Loops in graph may cause "search tree" to be infinite even if state space is small l hanging the rontier ordering leads to different search strategies 8-Puzzle tate-pace earch Tree (Not all nodes shown; e.g., no backwards moves) 3
10 Uninformed earch trategies Uninformed earch: strategies that order nodes without using any domain specific information, i.e., don t use any information stored in a state readth-irst earch () xpand the shallowest node first:. xamine states one step away from the initial states 2. xamine states two steps away from the initial states 3. and so on l : breadth-first search Queue (IO) used for the rontier remove from front, add to back 5 l : depth-first search tack (LIO) used for the rontier remove from front, add to front oal readth-irst earch () readth-irst earch () generalearch(problem, queue) # of nodes tested: 0, expanded: 0 expnd. node rontier list {} generalearch(problem, queue) # of nodes tested:, expanded: expnd. node rontier list {} not {,,}
11 readth-irst earch () readth-irst earch () generalearch(problem, queue) # of nodes tested: 2, expanded: 2 expnd. node rontier list {} {,,} not {,,,} 2 generalearch(problem, queue) # of nodes tested: 3, expanded: 3 expnd. node rontier list {} {,,} {,,,} not {,,,} 2 50 readth-irst earch () readth-irst earch () generalearch(problem, queue) # of nodes tested:, expanded: expnd. node rontier list {} {,,} {,,,} {,,,} not {,,,} 2 generalearch(problem, queue) # of nodes tested: 5, expanded: 5 expnd. node rontier list {} {,,} {,,,} {,,,} {,,,} not {,,,}
12 readth-irst earch () readth-irst earch () generalearch(problem, queue) # of nodes tested:, expanded: expnd. node rontier list {} {,,} {,,,} {,,,} {,,,} {,,,} not {,,,} 2 generalearch(problem, queue) # of nodes tested:, expanded: expnd. node rontier list {} {,,} {,,,} {,,,} {,,,} {,,,} {,,,} {,,} no expand readth-irst earch () valuating earch trategies 55 generalearch(problem, queue) # of nodes tested:, expanded: expnd. node rontier list {} {,,} {,,,} {,,,} {,,,} {,,,} {,,,} {,,} path:,, cost: l ompleteness If a solution exists, will it be found? a complete algorithm will find a solution (not all) l Optimality / dmissibility If a solution is found, is it guaranteed to be optimal? an admissible algorithm will find a solution with minimum cost 2
13 valuating earch trategies l Time omplexity ow long does it take to find a solution? usually measured for worst case measured by counting number of nodes expanded l pace omplexity ow much space is used by the algorithm? measured in terms of the maximum size of the rontier during the search What s in the rontier for? l If is at depth d, how big is the rontier (worst case)? oal 58 readth-irst earch () readth-irst earch () l omplete l Optimal / dmissible Yes, if all operators (i.e., arcs) have the same constant cost, or costs are positive, non-decreasing with depth otherwise, not optimal but does guarantee finding solution of shortest length (i.e., fewest arcs) l Time and space complexity: O(b d ) (i.e., exponential) d is the depth of the solution b is the branching factor at each non-leaf node l Very slow to find solutions with a large number of steps because must look at all shorter length possibilities first 0 3
14 readth-irst earch () Problem: iven tate pace l complete search tree has a total # of nodes = + b + b b d = (b (d+) - ) / (b-) d: the tree's depth b: the branching factor at each non-leaf node l or example: d = 2, b = = (0 3 - )/ = O(0 2 ) If expands,000 nodes/sec and each node uses 00 bytes of storage, then will take 35 years to run in the worst case, and it will use terabytes of memory! 2 l ssume child nodes visited in increasing alphabetical order epth-irst earch xpand the deepest node first. elect a direction, go deep to the end 2. lightly change the end 3. lightly change the end some more Use a tack to order nodes on the rontier l =? oal
15 epth-irst earch () epth-irst earch () generalearch(problem, stack) # of nodes tested: 0, expanded: 0 expnd. node rontier {} generalearch(problem, stack) # of nodes tested:, expanded: expnd. node rontier {} not {,,} epth-irst earch () epth-irst earch () generalearch(problem, stack) # of nodes tested: 2, expanded: 2 expnd. node rontier {} {,,} not {,,,} 2 generalearch(problem, stack) # of nodes tested: 3, expanded: 3 expnd. node rontier {} {,,} {,,,} not {,,,} 2 0 5
16 epth-irst earch () epth-irst earch () generalearch(problem, stack) # of nodes tested:, expanded: expnd. node rontier {} {,,} {,,,} {,,,} not {,,} 2 generalearch(problem, stack) # of nodes tested: 5, expanded: 5 expnd. node rontier {} {,,} {,,,} {,,,} {,,} not {,,} 2 2 epth-irst earch () epth-irst earch () 3 generalearch(problem, stack) # of nodes tested:, expanded: 5 expnd. node rontier {} {,,} {,,,} {,,,} {,,} {,,} {,} no expand 2 generalearch(problem, stack) # of nodes tested:, expanded: 5 expnd. node rontier {} {,,} {,,,} {,,,} {,,} {,,} {,} 2 path:,,, cost: 5
17 Problem: iven tate pace l ssume child nodes visited in increasing alphabetical order l o ycle hecking: on t add node to rontier if its state already occurs on path back to root l =? epth-irst earch () epth-irst earch () l May not terminate without a depth bound i.e., cutting off search below a fixed depth, l Not complete with or without cycle detection and, with or without a depth cutoff l Not optimal / admissible l an find long solutions quickly if lucky l Time complexity: O(b d ) exponential pace complexity: O(bd) linear d is the depth of the solution b is the branching factor at each non-leaf node l Performs chronological backtracking i.e., when search hits a dead end, backs up one level at a time problematic if the mistake occurs because of a bad action choice near the top of search tree 8
18 Uniform-ost earch (U) Uniform-ost earch (U) l Use a Priority Queue to order nodes on the rontier list, sorted by path cost l Let g(n) = cost of path from node s to current node n l ort nodes by increasing value of g generalearch(problem, priorityqueue) # of nodes tested: 0, expanded: 0 expnd. node rontier list {} 2 80 Uniform-ost earch (U) Uniform-ost earch (U) generalearch(problem, priorityqueue) # of nodes tested:, expanded: expnd. node rontier list {:0} not {:2,:,:5} generalearch(problem, priorityqueue) # of nodes tested: 2, expanded: 2 expnd. node rontier list {} {:2,:,:5} not {:,:5,:2+}
19 Uniform-ost earch (U) Uniform-ost earch (U) generalearch(problem, priorityqueue) # of nodes tested: 3, expanded: 3 expnd. node rontier list {} {:2,:,:5} {:,:5,:8} not {:5,:+2,:8} 2 generalearch(problem, priorityqueue) # of nodes tested:, expanded: expnd. node rontier list {} {:2,:,:5} {:,:5,:8} {:5,:,:8} not {:,:8,:5+, :5+} Uniform-ost earch (U) Uniform-ost earch (U) generalearch(problem, priorityqueue) # of nodes tested: 5, expanded: 5 expnd. node rontier list {} {:2,:,:5} {:,:5,:8} {:5,:,:8} {:,:8,:,:} not {:+2+,:8,:, :} 2 generalearch(problem, priorityqueue) # of nodes tested:, expanded: 5 expnd. node rontier list {} {:2,:,:5} {:,:5,:8} {:5,:,:8} {:,:8,:,:} {:,:8,:,:} {:8,:,:} no expand
20 Uniform-ost earch (U) Problem: iven tate pace 8 generalearch(problem, priorityqueue) # of nodes tested:, expanded: 5 expnd. node rontier list {} {:2,:,:5} {:,:5,:8} {:5,:,:8} {:,:8,:,:} {:,:8,:,:} {:8,:,:} 2 path:,,, cost: Uniform-ost earch (U) l ssume child nodes visited in increasing alphabetical order l U =? l alled ijkstra's lgorithm in the algorithms literature l imilar to ranch and ound lgorithm in Operations Research literature l omplete l Optimal / dmissible requires that the test is done when a node is removed from the rontier rather than when the node is generated by its parent node 0 20
21 Uniform-ost earch (U) Iterative-eepening earch (I) l Time and space complexity: O(b d ) (i.e., exponential) d is the depth of the solution b is the branching factor at each non-leaf node l More precisely, time and space complexity is O(b */ε ) where all edge costs > 0, and * is the best path cost l requires modification to search algorithm: do to depth and treat all children of the node as leaves if no solution found, do to depth 2 repeat by increasing depth bound until a solution found l tart node is at depth 0 2 Iterative-eepening earch (I) Iterative-eepening earch (I) deepeningearch(problem) depth:, # of nodes expanded: 0, tested: 0 expnd. node rontier {} deepeningearch(problem) depth:, # of nodes tested:, expanded: expnd. node rontier {} not {,,}
22 Iterative-eepening earch (I) Iterative-eepening earch (I) deepeningearch(problem) depth:, # of nodes tested: 2, expanded: expnd. node rontier {} {,,} not {,} no expand 2 deepeningearch(problem) depth:, # of nodes tested: 3, expanded: expnd. node rontier {} {,,} {,} not {} no expand 2 Iterative-eepening earch (I) Iterative-eepening earch (I) deepeningearch(problem) depth:, # of nodes tested:, expanded: expnd. node rontier {} {,,} {,} {} not { } no expand-il 2 deepeningearch(problem) depth: 2, # of nodes tested: (), expanded: 2 expnd. node rontier {} {,,} {,} {} { } no test {,,}
23 Iterative-eepening earch (I) Iterative-eepening earch (I) deepeningearch(problem) depth: 2, # of nodes tested: (2), expanded: 3 expnd. node rontier {} {,,} {,} {} { } {,,} no test {,,,} 2 deepeningearch(problem) depth: 2, # of nodes tested: 5(2), expanded: 3 expnd. node rontier {} {,,} {,} {} { } {,,} {,,,} not {,,} no expand Iterative-eepening earch (I) Iterative-eepening earch (I) 0 2 deepeningearch(problem) depth: 2, # of nodes tested: (2), expanded: 3 expnd. node rontier {} {,,} {,} {} { } {,,} {,,,} {,,} not {,} no expand deepeningearch(problem) depth: 2, # of nodes tested: (3), expanded: expnd. node rontier {} {,,} {,} {} { } {,,} {,,,} {,,} {,} no test {,} 2 23
24 Iterative-eepening earch (I) Iterative-eepening earch (I) 0 deepeningearch(problem) depth: 2, # of nodes tested: (3), expanded: expnd. node rontier {} {,,} {,} {} { } {,,} {,,,} {,,} {,} {,} {} no expand deepeningearch(problem) depth: 2, # of nodes tested: (3), expanded: expnd. node rontier {} {,,} {,} {} { } {,,} {,,,} {,,} {,} {,} {} path:,, cost: 8 2 Iterative-eepening earch (I) l as advantages of completeness optimality as stated for l as advantages of limited space in practice, even with redundant effort it still finds longer paths more quickly than Iterative-eepening earch (I) l pace complexity: O(bd) (i.e., linear like ) l Time complexity is a little worse than or because nodes near the top of the search tree are generated multiple times (redundant effort) l Worst case time complexity: O(b d ) exponential because most nodes are near the bottom of tree 0 0 2
25 0 8 Iterative-eepening earch (I) ow much redundant effort is done? l The number of times the nodes are generated: b d + 2b (d-) db b d / ( /b) 2 = O(b d ) d: the solution's depth b: the branching factor at each non-leaf node l or example: b = d / ( ¼) 2 = d / (.5) 2 =.8 d in the worst case, 8% more nodes are searched (redundant effort) than exist at depth d as b increases, this % decreases Iterative-eepening earch l Trades a little time for a huge reduction in space lets you do breadth-first search with (more space efficient) depth-first search l nytime algorithm: good for response-time critical applications, e.g., games l n anytime algorithm is an algorithm that can return a valid solution to a problem even if it's interrupted at any time before it ends. The algorithm is expected to find better and better solutions the longer it runs. idirectional earch l readth-first search from both and l top when rontiers meet l enerates O(b d/2 ) instead of O(b d ) nodes Which irection hould We earch? Our choices: orward, backwards, or bidirectional The issues: ow many and states are there? ranching factors in each direction ow much work is it to compare states? 25
26 Performance of earch lgorithms on Trees b: branching factor (assume finite) d: depth m: graph depth readth-first search Uniform-cost search 2 epth-first search Iterative deepening idirectional search 3 omplete Y Y N Y Y optimal Y, if Y N Y, if Y, if time O(b d ) O(b */ε ) O(b m ) O(b d ) O(b d/2 ). edge cost constant, or positive non-decreasing in depth 2. edge costs > 0. * is the best path cost 3. both directions ; not always feasible space O(b d ) O(b */ε ) O(bm) O(bd) O(b d/2 ) If tate pace is Not a Tree l The problem: repeated states,,,,,,, l Ignoring repeated states: wasteful () or impossible (). Why? l ow to prevent these problems?,,, If tate pace is Not a Tree l We have to remember already-expanded states (called xplored (aka losed) set) too l Why? l When we pick a node from rontier Remove it from rontier dd it to xplored xpand node, generating all successors or each successor, child, l If child is in xplored or in rontier, throw child away l Otherwise, add it to rontier l alled raph-earch algorithm in igure 3. xample ow are nodes expanded by epth irst earch readth irst earch Uniform ost earch Iterative eepening re the solutions the same? 2
27 Nodes xpanded by: l epth-irst earch: olution found: l readth-irst earch: olution found: l Uniform-ost earch: olution found: l Iterative-eepening earch: olution found: 2
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 information1/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 informationSummary. 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 informationLecture 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 informationUninformed Search Methods
Uninformed Search Methods Search Algorithms Uninformed Blind search Breadth-first uniform first depth-first Iterative deepening depth-first Bidirectional Branch and Bound Informed Heuristic search Greedy
More informationLecture 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 informationSearch I. slides from: Padhraic Smyth, Bryan Low, S. Russell and P. Norvig
Search I slides from: Padhraic Smyth, Bryan Low, S. Russell and P. Norvig Problem-Solving Agents Intelligent agents can solve problems by searching a state-space State-space Model the agent s model of
More informationProblem 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 informationSearch 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 informationProblem-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 informationProblem 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 informationReminders. 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 informationA2 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 informationExample: 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 informationCS 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 informationProblem 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 informationProblem 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 informationOutline. 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 informationProblem 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 informationOutline. 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 informationProblem solving Basic search. Example: Romania. Example: Romania. Problem types. Intelligent Systems and HCI D7023E. Single-state problem formulation
Intelligent Systems and HI 7023 Lecture 3: asic Search Paweł Pietrzak Problem solving asic search 1 2 xample: Romania On holiday in Romania; currently in rad. light leaves tomorrow from ucharest ormulate
More informationSolving 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 informationAlgorithms 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 informationBlind (Uninformed) Search (Where we systematically explore alternatives)
Blind (Uninformed) Search (Where we systematically explore alternatives) R&N: Chap. 3, Sect. 3.3 5 1 Simple Problem-Solving-Agent Agent Algorithm 1. s 0 sense/read initial state 2. GOAL? select/read goal
More informationSet 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 informationSearch. 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 informationBlind (Uninformed) Search (Where we systematically explore alternatives)
Blind (Uninformed) Search (Where we systematically explore alternatives) R&N: Chap. 3, Sect. 3.3 5 Slides from Jean-Claude Latombe at Stanford University (used with permission) Simple Problem-Solving-Agent
More informationCOMP 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 informationUninformed 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 informationMASSACHUSETTS 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 informationProblem 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 informationCS540 Uninformed Search
CS540 Uninformed Search Xiaojin Zhu jerryzhu@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison slide 1 Main messages Many AI problems can be formulated as search. Iterative deepening
More informationCS242 Uninformed Search
CS242 Uninformed Search Lecturer: Ji Liu Thanks for Jerry Zhu's slides slide 1 Main messages Many (classic) AI problems can be formulated as search. Iterative deepening is good when you don t know much.
More informationArtificial Intelligence Class 3: Search (Ch ) Some material adopted from notes by Charles R. Dyer, University of Wisconsin-Madison
Artificial Intelligence Class 3: Search (Ch. 3.1 3.3) Some material adopted from notes by Charles R. Dyer, University of Wisconsin-Madison Dr. Cynthia Matuszek CMSC 671 Slides adapted with thanks from:
More informationA4B36ZUI - 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 informationSearch : Lecture 2. September 9, 2003
Search 6.825: Lecture 2 September 9, 2003 1 Problem-Solving Problems When your environment can be effectively modeled as having discrete states and actions deterministic, known world dynamics known initial
More informationChapter 3. A problem-solving agent is a kind of goal-based agent. It decide what to do by finding sequences of actions that lead to desirable states.
Chapter 3 A problem-solving agent is a kind of goal-based agent. It decide what to do by finding sequences of actions that lead to desirable states. A problem can be defined by four components : 1. The
More informationUninformed Search B. Navigating through a search tree. Navigating through a search tree. Navigating through a search tree
Uninformed Search Russell and Norvig chap. 3 D E 1 Unexpanded s: the fringe Tree search nitial state t every point in the search process we keep track of a list of s that haven t been expanded yet: the
More informationSolving Problems by Searching (Blindly)
Solving Problems by Searching (Blindly) R&N: Chap. 3 (many of these slides borrowed from Stanford s AI Class) Problem Solving Agents Decide what to do by finding a sequence of actions that lead to desirable
More informationProblem Solving and Search
Artificial Intelligence Problem Solving and Search Dae-Won Kim School of Computer Science & Engineering Chung-Ang University Outline Problem-solving agents Problem types Problem formulation Example problems
More informationOutline. 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 informationCS 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 informationArtificial Intelligence
Artificial Intelligence Dr Ahmed Rafat Abas Computer Science Dept, Faculty of Computers and Informatics, Zagazig University arabas@zu.edu.eg http://www.arsaliem.faculty.zu.edu.eg/ Solving problems by searching
More informationWhat 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 informationThe 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 informationChapter3. Problem-Solving Agents. Problem Solving Agents (cont.) Well-defined Problems and Solutions. Example Problems.
Problem-Solving Agents Chapter3 Solving Problems by Searching Reflex agents cannot work well in those environments - state/action mapping too large - take too long to learn Problem-solving agent - is one
More informationProblem 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 informationCMU-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 informationCS 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 informationProblem Solving as State Space Search. Assignments
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
More informationProblem 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 informationProblem 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 informationCS 8520: Artificial Intelligence
CS 8520: Artificial Intelligence Solving Problems by Searching Paula Matuszek Spring, 2013 Slides based on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are in turn based on Russell, aima.eecs.berkeley.edu/slides-pdf.
More informationCS 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 informationGoal-Based Agents Problem solving as search. Outline
Goal-Based Agents Problem solving as search Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/
More informationProblem-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 informationArtificial 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 informationInformed Search CS457 David Kauchak Fall 2011
Admin Informed Search CS57 David Kauchak Fall 011 Some material used from : Sara Owsley Sood and others Q3 mean: 6. median: 7 Final projects proposals looked pretty good start working plan out exactly
More informationUninformed Search Strategies AIMA
Uninformed Search Strategies AIMA 3.3-3.4 CIS 421/521 - Intro to AI - Fall 2017 1 Review: Formulating search problems Formulate search problem States: configurations of the puzzle (9! configurations) Actions:
More informationState- space search algorithm
Graph Search These are slides I usually use for teaching AI, but they offer another perspec;ve on BFS, DFS, and Dijkstra s algorithm. Ignore men;ons of a problem and simply consider that the search starts
More informationHW#1 due today. HW#2 due Monday, 9/09/13, in class Continue reading Chapter 3
9-04-2013 Uninformed (blind) search algorithms Breadth-First Search (BFS) Uniform-Cost Search Depth-First Search (DFS) Depth-Limited Search Iterative Deepening Best-First Search HW#1 due today HW#2 due
More informationSolving problems by searching
Solving problems by searching Chapter 3 Systems 1 Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Systems 2 Problem-solving agents Systems 3 Example:
More informationSolving problems by searching
Solving problems by searching 1 C H A P T E R 3 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Outline 2 Problem-solving agents 3 Note: this is offline
More informationChapter 2. Blind Search 8/19/2017
Chapter 2 1 8/19/2017 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms 8/19/2017 2 8/19/2017 3 On holiday in Romania; currently in Arad. Flight leaves tomorrow
More informationArtificial 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 informationCS: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 informationCS 380: Artificial Intelligence Lecture #3
CS 380: Artificial Intelligence Lecture #3 William Regli Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms 1 Problem-solving agents Example: Romania
More informationSolving Problems by Searching
INF5390 Kunstig intelligens Sony Vaio VPC-Z12 Solving Problems by Searching Roar Fjellheim Outline Problem-solving agents Example problems Search programs Uninformed search Informed search Summary AIMA
More informationSolving Problems by Searching
INF5390 Kunstig intelligens Solving Problems by Searching Roar Fjellheim Outline Problem-solving agents Example problems Search programs Uninformed search Informed search Summary AIMA Chapter 3: Solving
More informationProblem 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 informationArtificial Intelligence
Artificial Intelligence Search Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Problem formulation & examples Basic search algorithms 2/100 Example:
More informationUninformed Search. Problem-solving agents. Tree search algorithms. Single-State Problems
Uninformed Search Problem-solving agents Tree search algorithms Single-State Problems Breadth-First Search Depth-First Search Limited-Depth Search Iterative Deepening Extensions Graph search algorithms
More informationCS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search
CS 771 Artificial Intelligence Problem Solving by Searching Uninformed search Complete architectures for intelligence? Search? Solve the problem of what to do. Learning? Learn what to do. Logic and inference?
More informationSolving Problem by Searching. Chapter 3
Solving Problem by Searching Chapter 3 Outline Problem-solving agents Problem formulation Example problems Basic search algorithms blind search Heuristic search strategies Heuristic functions Problem-solving
More informationChapter 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 informationPengju XJTU 2016
Introduction to AI Chapter03 Solving Problems by Uninformed Searching(3.1~3.4) Pengju Ren@IAIR Outline Problem-solving agents Problem types Problem formulation Search on Trees and Graphs Uninformed algorithms
More informationSolving problems by searching. Chapter 3
Solving problems by searching Chapter 3 Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms 2 Example: Romania On holiday in Romania; currently in
More informationSolving Problems: Blind Search
Solving Problems: Blind Search Instructor: B. John Oommen Chancellor s Professor Fellow: IEEE ; Fellow: IAPR School of Computer Science, Carleton University, Canada The primary source of these notes are
More information3 SOLVING PROBLEMS BY SEARCHING
48 3 SOLVING PROBLEMS BY SEARCHING A goal-based agent aims at solving problems by performing actions that lead to desirable states Let us first consider the uninformed situation in which the agent is not
More informationARTIFICIAL INTELLIGENCE SOLVING PROBLEMS BY SEARCHING. Chapter 3
ARTIFICIAL INTELLIGENCE SOLVING PROBLEMS BY SEARCHING Chapter 3 1 PROBLEM SOLVING We want: To automatically solve a problem We need: A representation of the problem Algorithms that use some strategy to
More informationWeek 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 informationSolving Problems by Searching
Solving Problems by Searching Berlin Chen 2004 Reference: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 3 1 Introduction Problem-Solving Agents vs. Reflex Agents Problem-solving
More informationSolving problems by searching
Solving problems by searching Chapter 3 CS 2710 1 Outline Problem-solving agents Problem formulation Example problems Basic search algorithms CS 2710 - Blind Search 2 1 Goal-based Agents Agents that take
More informationAr#ficial)Intelligence!!
Introduc*on! Ar#ficial)Intelligence!! Roman Barták Department of Theoretical Computer Science and Mathematical Logic Problem Solving: Uninformed Search Simple reflex agent only transfers the current percept
More informationSolving 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 informationUninformed 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 informationPengju
Introduction to AI Chapter03 Solving Problems by Uninformed Searching(3.1~3.4) Pengju Ren@IAIR Outline Problem-solving agents Problem types Problem formulation Search on Trees and Graphs Uninformed algorithms
More informationIntelligent Agents. Foundations of Artificial Intelligence. Problem-Solving as Search. A Simple Reflex Agent. Agent with Model and Internal State
Intelligent s Foundations of Artificial Intelligence Problem-Solving as Search S7 Fall 007 Thorsten Joachims : Anything that can be viewed as perceiving its environment through sensors and acting upon
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 3, 4/6/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes 4/6/2005 EE562 1 Today: Basic
More informationOutline. Solving problems by searching. Problem-solving agents. Example: Romania
Outline Solving problems by searching Chapter 3 Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Systems 1 Systems 2 Problem-solving agents Example: Romania
More information4. 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 informationLecture 2: Fun with Search. Rachel Greenstadt CS 510, October 5, 2017
Lecture 2: Fun with Search Rachel Greenstadt CS 510, October 5, 2017 Reminder! Project pre-proposals due tonight Overview Uninformed search BFS, DFS, Uniform-Cost, Graph-Search Informed search Heuristics,
More informationOutline. 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 informationAI: problem solving and search
: problem solving and search Stefano De Luca Slides mainly by Tom Lenaerts Outline Problem-solving agents A kind of goal-based agent Problem types Single state (fully observable) Search with partial information
More informationDownloded from: CSITauthority.blogspot.com
[Unit : Searching] (CSC 355) Central Department of Computer Science & Information Technology Tribhuvan University 1 Searching search problem Figure below contains a representation of a map. The nodes represent
More informationLecture 4: Search 3. Victor R. Lesser. CMPSCI 683 Fall 2010
Lecture 4: Search 3 Victor R. Lesser CMPSCI 683 Fall 2010 First Homework 1 st Programming Assignment 2 separate parts (homeworks) First part due on (9/27) at 5pm Second part due on 10/13 at 5pm Send homework
More informationChapter 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 informationProblem 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 informationSearch EECS 395/495 Intro to Artificial Intelligence
Search EECS 395/495 Intro to Artificial Intelligence Doug Downey (slides from Oren Etzioni, based on Stuart Russell, Dan Weld, Henry Kautz, and others) What is Search? Search is a class of techniques for
More informationSearch EECS 348 Intro to Artificial Intelligence
Search EECS 348 Intro to Artificial Intelligence (slides from Oren Etzioni, based on Stuart Russell, Dan Weld, Henry Kautz, and others) What is Search? Search is a class of techniques for systematically
More information