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

Size: px
Start display at page:

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

Transcription

1 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 explores the alternatives inds the sequence of steps towards a solution Problem Space ypothesis (llen Newell, SOR: n rchitecture for eneral ntelligence.) ll goal-oriented symbolic activities occur in a problem space Search in a problem space is claimed to be a completely general model of intelligence S 412, UMD, 2 ntro to Search ntroduce the notion of blind for goal nodes in trees Specifically, the general pseudo-code in Russell/Norvig (M) and in the course notes ut in a simplified context: without the notion of shortest path or minimum cost Search problems Search on graphs ind a goal node reachable from some given start node ind the shortest path between two given nodes (map problems) ind the shortest path from a given start node to any goal node (planning problems) Search on trees tree is a connected, acyclic graphs, that has precisely one path between any two nodes S 412, UMD, 3 S 412, UMD, 4 inding goals in trees Does the following tree contain a node? Yes. ow did you know that? read it? E D Why is goal not trivial? ecause the graph is not given in a nice picture on a piece of paper nstead the graph/tree is usually Explicitly known, but hidden. You need to discover it on the fly i.e. as you do the mplicitly known only. You are given a set of rules with which to create the graph on the fly Trivial! : so why the big deal about? S 412, UMD, S 412, UMD, 6 1

2 inding goals in - reality Does the tree under the following root contain a node? lind lind (aka uninformed) no information as to location of goal not giving you hotter or colder hints ll you get to see at first is the root and a guarantee that it is a tree The rest is up to you to discover during the process of S 412, UMD, 7 S 412, UMD, 8 ctions in ing a tree undamental actions (operators) that you can take: 1. Expand : sk a node for its children 2. Test : Test a node for whether it is a goal side: nternet Search Typically human will be incomplete, E.g. finding information on the internet before google, etc look at a few web pages, if no success then give up S 412, UMD, 9 S 412, UMD, 10 Properties of Search We will say a method is complete if it has both the following properties: if a goal exists then the will always find it if no goal exists then the will eventually finish and be able to say for sure that no goal exists We only look at complete methods inding oals in Trees: Reality Does the tree under the following root contain a node? llowed: Expand Test Whiteboard S 412, UMD, 11 S 412, UMD, 12 2

3 DDEN: Exercise irst step? Only choice is to ask for children of the root et people to select which node to expand Draw child nodes onto board Keep track of which nodes are eligible for expansion cross out visited ones with blue pen red-circle on the fringe Whiteboard: Results idden tree: ind a (oal) node The resulted in failure The nodes moved between three classes: E D K S 412, UMD, 13 S 412, UMD, 14 Undiscovered Nodes The set of nodes that have not yet been discovered as being reachable from the root ringe Nodes This is the set of nodes that have been discovered have not yet been processed : 1. have not yet discovered their children 2. (have not yet tested if they are a goal) lso called open nodes agenda S 412, UMD, 1 S 412, UMD, 16 Visited Nodes This is the set of nodes that have been discovered have been processed: 1. have discovered all their children 2. (have tested whether are a goal) lso called closed nodes ction on finding a oal irst match : Usually we just want one goal, or just to know whether or not one exists on discovering a goal, then return true ll Matches : Sometimes want all goals on discovering a goal, then record the fact that have found it, but continue with the S 412, UMD, 17 S 412, UMD, 18 3

4 eneral Method 1. fringe MKE-EMPTY-QUEUE() 2. fringe NSERT( root_node ) 3. found false // boolean flag 4. loop { 1. if fringe is empty then return found // finished the 2. node REMOVE-RST(fringe) 3. if node is a goal 1. print node // if want to list all matches to the goal 2. found true // so we remember we succeeded 3. (if only want first goal then return true) 4. L EXPND(node). fringe NSERT-LL( L, fringe ) } Selecting the Next Node The difference between es lies in the order in which nodes are selected for expansion The pseudo-code always uses the first node in the fringe queue The only way to control the ordering is to control the NSERT-LL S 412, UMD, 19 S 412, UMD, 20 Node Ordering: Why care? Later lectures: will see that using heuristic node orderings allow us to find goals quicker Even in blind, node orderings affect the memory usage different node orderings affect the shape of the fringe different shapes of the fringe can lead to very different memory usages Two Natural Node-Orderings Depth-irst Search (DS) readth-irst Search (S) S 412, UMD, 21 S 412, UMD, 22 Depth-irst Search Search Pattern: dive before spread ringe in red root Visited in blue Size of fringe O(bd) linear outline of tree readth-irst Search Search Pattern: spread before dive ringe in red Visited in blue root Size of fringe O(b d ) exponential outline of tree S 412, UMD, 23 S 412, UMD, 24 4

5 Two Natural Node-Orderings Depth-irst Search (DS) explores the depths first low memory usage readth-irst Search (S) explores all nodes at depth d before any at depth d+1 high memory usage (but forms basis for solving min-cost problems) riteria for evaluating strategies ompleteness: is the strategy guaranteed to find a solution when there is one? Time complexity: how long does it take to find a solution Space complexity: how much memory does it need to perform the? Optimality: does the strategy find the highestquality solution when there are several solutions? S 412, UMD, 2 S 412, UMD, 26 S ompleteness: Yes Time complexity: b d Space complexity: b d Optimality: Yes S vs DS S (b - branching factor, d - depth) DS ompleteness: No Time complexity: b m Space complexity: bm Optimality: No (b-branching factor, m-max depth of tree) S 412, UMD, 27 S 412, UMD, 28 S The example node set nitial state D E oal state K L M N O P Q R S T U V W X Y Z Press space to see a S of the example node set S 412, UMD, 29 S 412, UMD, 30

6 Node We then is backtrack expanded then to expand removed node from, the queue. and The the The process revealed then continues. moves nodes to are Press the added first space node to the END in the of the queue. queue. Press Press space space. to continue. This Node node is removed is then expanded from the to queue. reveal Each further revealed We begin (unexpanded) node with is our added initial nodes. to the state: Press END the space of node the queue. labeled Press. Press space space to continue to continue the. 8-tile puzzle S D E K L M N O P Q R S T U Node L is located and the returns a solution. Press space to end. Press space to continue begin the the Size of Queue: Queue:,, K,,,, L, E,,, D, Empty, K,, M,,, D, E,,, L, K,, L,,,, D, M, E,, N, K, L,, M,,,, E,, O, N, M, K, L,,,,, N, O, P, K, M,, L, N,, O, Q, P, K, L, M, O, N, P, Q, R, M, LP, O, N, Q, S, R, Q, NP, O, R, T, S, RQ PU ST Nodes expanded: urrent NSED ction: acktracking Expanding SER urrent level: n/a 0 12 REDT-RST SER PTTERN S 412, UMD, 31 S 412, UMD, 32 Weighted raphs Shortest path problems use weighted graphs These are graphs in which each edge is given a number called its weight The weight of an edge is intended to be its cost, or value, or length, etc Paths then have a weight which is just the sum of the weights of the edges in the path Desired Search Properties ompleteness: will find a goal if one is legally reachable Optimality: will find goal with shortest path to it and (usually) also find the shortest path itself Systematic: don t do the same work too many times but there is no generally agreed exact definition sometimes taken to mean to never repeat the same work S 412, UMD, 33 S 412, UMD, 34 Uniform ost Search in raphs Search Pattern: smaller cost nodes before larger ringe in red Visited in blue lind: still ignores goals outline of graph start goals Uniform cost breadth-first finds the shallowest goal state and will therefore be the cheapest solution provided the path cost is a function of the depth of the solution. ut, if this is not the case, then breadth-first is not guaranteed to find the best (i.e. cheapest solution). Uniform cost remedies this by expanding the lowest cost node on the fringe, where cost is the path cost, g(n). n the following slides those values that are attached to paths are the cost of using that path. increasing path cost from start S 412, UMD, 3 S 412, UMD, 36 6

7 onsider the following problem 1 10 S Once Node node is removed has been from expanded the queue it is and removed the revealed from the node queue (node and ) the is added revealed to the node queue. (node The We Node We queue now ) start S is expand is added. with removed again our the The sorted node initial from queue on at the state path the is queue again front and cost. expand of sorted Note, the queue, it on we revealed path have node cost. now nodes. Note, found Press are node added a space goal to state to now the continue. appears but queue. do not The in the recognise queue is it twice, then as it sorted is once not as at on 10 the path front and cost. once of Nodes the as queue. 11. with s Node cheaper 10 is is path the cost cheaper front have of node. the priority.n queue, Press we this space. now case proceed the queue to goal will state. be Node Press space. (1), node (), followed by node (1). Press space S 1 We wish to find the shortest route from node S to node ; that is, node S is the initial state and node is the goal state. n terms of path cost, we can clearly see that the route S is the cheapest route. owever, if we let breadth-first loose on the problem it will find the non-optimal path S, assuming that is the first node to be expanded at level 1. Press space to see a US of the same node set S 412, UMD, 37 Size of Queue: 13 0 Nodes expanded: Press space to begin the Queue: S,, Empty 10, 11,, 11, 1 The goal state is achieved and the path S-- is returned. n relation to path cost, US has found the optimal route. Press space to end. urrent NSED action: acktracking Expanding Waiting. SER urrent level: n/a 01 2 UNORM OST SER PTTERN S 412, UMD, 38 DS DS S 412, UMD, 39 S 412, UMD, 40 The example node set The Node process is expanded now continues and removed until the from goal The the queue. state is Revealed then achieved. moves nodes Press to the are space. first added node to in the the RONT queue. of Press the queue. space to Press continue space. Node is removed from the queue. Each We revealed This begin node node with is then is our added expanded initial to state: the to RONT reveal the node of labeled further queue.. (unexpanded) Press space nodes. to continue. Press space. nitial state D E D E oal state K L M N O P Q R S T U V W X Y Z Press space to see a DS of the example node set S 412, UMD, 41 K L Q R S T U Size of Queue: Press space to begin continue the the Queue: S,,, Q,,, K, L,, T, D, U,, Empty R,, E, D, L,,, D, E, D,, E, E, D, E, Node L is located and the returns a solution. Press space to end. Nodes expanded: urrent NSED ction: acktracking Expanding SER urrent level: n/a DEPT-RST SER PTTERN S 412, UMD, 42 7

8 8-tile puzzle DS Depth-Limited Search Practical DS DLS avoids the pitfalls of DS by imposing a cutoff on the maximum depth of a path. owever, if we choose a depth limit that is too small, then DLS is not even complete. The time and space complexity of DLS is similar to DS. ompleteness: Yes, if l >= d Time complexity: b l Space complexity: bl Optimality: No (b-branching factor, l-depth limit) S 412, UMD, 43 S 412, UMD, 44 Depth-Limited Search (cont) terative deepening The problem with depth-limited is deciding on a suitable depth parameter. To avoid this problem there is another called iterative deepening (DS). This method tries all possible depth limits; first 0, then 1, then 2 etc., until a solution is found. DS may seem wasteful as it is expanding nodes multiple times. ut the overhead is small in comparison to the growth of an exponential tree ig 4.16 Depth-first trees for binary tree. Same problem as ig 4.1 Depth limit, dl = 2 S 412, UMD, 4 or large spaces where is the depth of the solution is not known DS is normally the preferred method. The following slide illustrates an iterative deepening of 26 nodes (states) with an initial state of node and a goal state of node L. Press space to see the example node set. S 412, UMD, 46 The example node set We Node begin is with then our expanded initial state: and removed the node labeled from the. queue. This node Press is space. added to the queue. Press space to continue nitial state s this is the 0 th iteration of the, we cannot past any level greater than zero. This iteration now ends, and we begin the 1 st iteration. D E oal state K L M N O P Q R S T U V W X Y Z Press space to see a DS of the example node set S 412, UMD, 47 Press space to begin the Size of Queue: 10 Queue: Empty Nodes expanded: 01 urrent ction: Expanding urrent level: n/a 0 TERTVE DEEPENN SER PTTERN (0 th TERTON) S 412, UMD, 48 8

9 Node We The now is back expanded now track moves to and expand removed to level node one from, of and the queue. the the process node Press set. continues. space. Press space Press to space. continue Node We again is expanded, begin with then our initial removed state: from the the node queue, labeled and. the Note revealed that the nodes 1 st iteration are added carries to on the from front the. Press 0 th, and space. therefore the nodes expanded value is already set to 1. Press space to continue D E We The Node fter now expanding is move expanded then to moves level node and two to the we level of revealed backtrack the one node of set. the nodes to expand node Press added set. space node to Press the to. continue. space front The process of to the continue queue. then Press continues space until to continue. goal state. Press space gain, Node We again we is begin removed expand with node from our the initial to reveal queue state: the and level each the node revealed one labeled nodes. node Press. is Note added space. that to the the 2 nd front of iteration the queue. carries Press on space. from the 1 st, and therefore the nodes expanded value is already set to 7 (1+6). Press space to continue the D E s this is the 1 st iteration of the, we cannot past any level greater than level one. This iteration now ends, and we begin a 2 nd iteration. K L Node L is located on the second level and the returns a solution on its second iteration. Press space to end. Press space to continue begin the the Size of Queue: Queue:,, D, E, Empty, D, E, D, E, E, Nodes expanded: urrent ction: acktracking Expanding urrent level: n/a 01 TERTVE DEEPENN SER PTTERN (1 st TERTON) S 412, UMD, 49 Press space to continue the Size of Queue: Queue:,,,, K, L,, D, Empty,, D, E,,, L, D, E, D,, E, E, D, E, Nodes expanded: urrent SER ction: acktracking Expanding NSED urrent level: n/a 0 12 TERTVE DEEPENN SER PTTERN (2 nd TERTON) S 412, UMD, 0 S6. i-directional Search (cont) Search i-directional Search nitial State inal State d / 2 * Time complexity: O(b d/2 ) * Space complexity: O(b d/2 ) d ig 4.18 schematics view of a bi-directional S that is about to succeed, when a branch from the start node meets a branch from the goal node O(b d ) vs. O(b d/2 )? with b=10 and d=6 results in 1,111,111 vs. 2,222. S 412, UMD, 1 S 412, UMD, 2 omparing lind Search Strategies ig 4.19 omparison of 6 strategies in terms of the 4 evaluation criteria set forth in riteria for Evaluating Search Strategies b - branching factor; d is the depth of the solution; m is the maximum depth of the tree; l is the depth limit S 412, UMD, 3 9

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

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

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

More information

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

Uninformed Search Methods

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

Lecture 4: Search 3. Victor R. Lesser. CMPSCI 683 Fall 2010

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

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

Artificial Intelligence: Search Part 1: Uninformed graph search

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

More information

Solving Problems by Searching

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

Solving Problems by Searching

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

Intelligent Agents. Foundations of Artificial Intelligence. Problem-Solving as Search. A Simple Reflex Agent. Agent with Model and Internal State

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

CPS 170: Artificial Intelligence Search

CPS 170: Artificial Intelligence   Search CPS 170: Artificial Intelligence http://www.cs.duke.edu/courses/spring09/cps170/ Search Instructor: Vincent Conitzer Search We have some actions that can change the state of the world Change resulting

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

Problem solving and search

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

More information

Problem Solving and Search. Chapter 3

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

More information

Search 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

Problem Solving & Heuristic Search

Problem Solving & Heuristic Search 190.08 Artificial 2016-Spring Problem Solving & Heuristic Search Byoung-Tak Zhang School of Computer Science and Engineering Seoul National University 190.08 Artificial (2016-Spring) http://www.cs.duke.edu/courses/fall08/cps270/

More information

Chapter 4. Uninformed Search Strategies

Chapter 4. Uninformed Search Strategies Chapter 4. Uninformed Search Strategies An uninformed (a.k.a. blind, brute-force) search algorithm generates the search tree without using any domain specific knowledge. The two basic approaches differ

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

Uninformed Search Strategies AIMA

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

3 SOLVING PROBLEMS BY SEARCHING

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

Uninformed (also called blind) search algorithms

Uninformed (also called blind) search algorithms Uninformed (also called blind) search algorithms First Lecture Today (Thu 30 Jun) Read Chapters 18.6.1-2, 20.3.1 Second Lecture Today (Thu 30 Jun) Read Chapter 3.1-3.4 Next Lecture (Tue 5 Jul) Chapters

More information

mywbut.com Informed Search Strategies-I

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

More information

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

Blind (Uninformed) Search (Where we systematically explore alternatives)

Blind (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 information

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

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

More information

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

Problem solving and search

Problem solving and search Problem solving and search Chapter 3 Chapter 3 1 Problem formulation & examples Basic search algorithms Outline Chapter 3 2 On holiday in Romania; currently in Arad. Flight leaves tomorrow from Bucharest

More information

Artificial Intelligence

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

More information

Uninformed Search strategies. AIMA sections 3.4,3.5

Uninformed Search strategies. AIMA sections 3.4,3.5 AIMA sections 3.4,3.5 search use only the information available in the problem denition Breadth-rst search Uniform-cost search Depth-rst search Depth-limited search Iterative deepening search Breadth-rst

More information

ARTIFICIAL INTELLIGENCE SOLVING PROBLEMS BY SEARCHING. Chapter 3

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

Artificial Intelligence

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

More information

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

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

More information

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.

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

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

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

More information

521495A: Artificial Intelligence

521495A: Artificial Intelligence 521495A: Artificial Intelligence Search Lectured by Abdenour Hadid Associate Professor, CMVS, University of Oulu Slides adopted from http://ai.berkeley.edu Agent An agent is an entity that perceives the

More information

Artificial Intelligence Uninformed search

Artificial Intelligence Uninformed search Artificial Intelligence Uninformed search A.I. Uninformed search 1 The symbols&search hypothesis for AI Problem-solving agents A kind of goal-based agent Problem types Single state (fully observable) Search

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

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

Lecture 3. Uninformed Search

Lecture 3. Uninformed Search Lecture 3 Uninformed Search 1 Uninformed search strategies Uninformed: While searching you have no clue whether one non-goal state is better than any other. Your search is blind. You don t know if your

More information

DFS. Depth-limited Search

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

More information

Blind (Uninformed) Search (Where we systematically explore alternatives)

Blind (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 information

ARTIFICIAL INTELLIGENCE. Pathfinding and search

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

More information

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

AI: problem solving and search

AI: 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 information

Solving Problem by Searching. Chapter 3

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

More information

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

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

More information

Problem solving and search: Chapter 3, Sections 1 5

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

More information

Problem solving and search: Chapter 3, Sections 1 5

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

More information

CS 188: Artificial Intelligence Fall Search Gone Wrong?

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

More information

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

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

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

Search EECS 395/495 Intro to Artificial Intelligence

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

Artificial Intelligence

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

More information

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

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

Search EECS 348 Intro to Artificial Intelligence

Search 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

UNINFORMED SEARCH. Announcements Reading Section 3.4, especially 3.4.1, 3.4.2, 3.4.3, 3.4.5

UNINFORMED SEARCH. Announcements Reading Section 3.4, especially 3.4.1, 3.4.2, 3.4.3, 3.4.5 UNINFORMED SEARCH Announcements Reading Section 3.4, especially 3.4.1, 3.4.2, 3.4.3, 3.4.5 Robbie has no idea where room X is, and may have little choice but to try going down this corridor and that. On

More information

Solving problems by searching

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

More information

Pengju XJTU 2016

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

Solving Problems: Blind Search

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

CS510 \ Lecture Ariel Stolerman

CS510 \ Lecture Ariel Stolerman CS510 \ Lecture02 2012-10-03 1 Ariel Stolerman Midterm Evan will email about that after the lecture, at least 2 lectures from now. The exam will be given in a regular PDF (not an online form). We will

More information

CS 8520: Artificial Intelligence

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

More information

Pengju

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

Basic Search. Fall Xin Yao. Artificial Intelligence: Basic Search

Basic Search. Fall Xin Yao. Artificial Intelligence: Basic Search Basic Search Xin Yao Fall 2017 Fall 2017 Artificial Intelligence: Basic Search Xin Yao Outline Motivating Examples Problem Formulation From Searching to Search Tree Uninformed Search Methods Breadth-first

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

Artificial Intelligence Problem Solving and Uninformed Search

Artificial Intelligence Problem Solving and Uninformed Search Artificial Intelligence Problem Solving and Uninformed Search Maurizio Martelli, Viviana Mascardi {martelli, mascardi}@disi.unige.it University of Genoa Department of Computer and Information Science AI,

More information

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

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

More information

Chapter3. Problem-Solving Agents. Problem Solving Agents (cont.) Well-defined Problems and Solutions. Example Problems.

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

Uninformed search strategies (Section 3.4) Source: Fotolia

Uninformed search strategies (Section 3.4) Source: Fotolia Uninformed search strategies (Section 3.4) Source: Fotolia Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information

More information

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

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

More information

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

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

More information

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

ARTIFICIAL INTELLIGENCE (CSC9YE ) LECTURES 2 AND 3: PROBLEM SOLVING

ARTIFICIAL INTELLIGENCE (CSC9YE ) LECTURES 2 AND 3: PROBLEM SOLVING ARTIFICIAL INTELLIGENCE (CSC9YE ) LECTURES 2 AND 3: PROBLEM SOLVING BY SEARCH Gabriela Ochoa http://www.cs.stir.ac.uk/~goc/ OUTLINE Problem solving by searching Problem formulation Example problems Search

More information

An Appropriate Search Algorithm for Finding Grid Resources

An Appropriate Search Algorithm for Finding Grid Resources An Appropriate Search Algorithm for Finding Grid Resources Olusegun O. A. 1, Babatunde A. N. 2, Omotehinwa T. O. 3,Aremu D. R. 4, Balogun B. F. 5 1,4 Department of Computer Science University of Ilorin,

More information

4. Solving Problems by Searching

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

More information

Solving problems by searching

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

More information

Uninformed Search. CS171, Winter 2018 Introduction to Artificial Intelligence Prof. Richard Lathrop. Reading: R&N

Uninformed Search. CS171, Winter 2018 Introduction to Artificial Intelligence Prof. Richard Lathrop. Reading: R&N Uninformed Search CS171, Winter 2018 Introduction to Artificial Intelligence Prof. Richard Lathrop Reading: R&N 3.1-3.4 Uninformed search strategies Uninformed (blind): You have no clue whether one non-goal

More information

Multiagent Systems Problem Solving and Uninformed Search

Multiagent Systems Problem Solving and Uninformed Search Multiagent Systems Problem Solving and Uninformed Search Viviana Mascardi viviana.mascardi@unige.it MAS, University of Genoa, DIBRIS Classical AI 1 / 36 Disclaimer This presentation may contain material

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

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

More information

Solving problems by searching

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

More information

Problem Solving and Search

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

More information

Lecture 4: Informed/Heuristic Search

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

More information

ITCS 6150 Intelligent Systems. Lecture 3 Uninformed Searches

ITCS 6150 Intelligent Systems. Lecture 3 Uninformed Searches ITCS 6150 Intelligent Systems Lecture 3 Uninformed Searches Outline Problem Solving Agents Restricted form of general agent Problem Types Fully vs. partially observable, deterministic vs. stochastic Problem

More information

Search : Lecture 2. September 9, 2003

Search : 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 information

CS 380: Artificial Intelligence Lecture #3

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

More information

521495A: Artificial Intelligence

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

More information

Ar#ficial)Intelligence!!

Ar#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 information

COMP219: Artificial Intelligence. Lecture 10: Heuristic Search

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

More information

COMP3702/7702 Artificial Intelligence Week2: Search (Russell & Norvig ch. 3)" Hanna Kurniawati"

COMP3702/7702 Artificial Intelligence Week2: Search (Russell & Norvig ch. 3) Hanna Kurniawati COMP3702/7702 Artificial Intelligence Week2: Search (Russell & Norvig ch. 3)" Hanna Kurniawati" Last week" What is Artificial Intelligence?" Some history" Agent defined" The agent design problem" Search:

More information

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

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

More information