Introduction to Intelligent Systems
|
|
- Irma Townsend
- 5 years ago
- Views:
Transcription
1 Problem Solving by Search Objectives Well-Defined Problems Tree search Uninformed search: BFS, DFS, DLS, and IDS Heuristic search: GBFS and A* Reference Russell & Norvig: Chapter 3 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 1 Goal and Search A. Task of an agent can often be specified as a goal to be satisfied. B. A goal is a set of desirable env states (goal states). Example goals C. To complete the task, find a sequence of actions that brings env from initial state to a goal state. D. Search or problem-solving is the process of looking for a sequence of actions that satisfies a goal. E. Focus on env: Fully observable, deterministic, static, sequential, discrete, known, and single agent Y. Xiang, CIS 3700, Introduction to Intelligent Systems 2 Well-Defined Problems A. Problem definition 1) Initial state State space: the set of states reachable from initial state 2) Successor function The function maps each state to a set of (action, state ) pairs. 3) Goal test 4) Action (step) cost B. A solution is a path from the initial state to a goal state. What info is associated with a solution? C. An optimal solution has the lowest path cost. Search Tree A. Search tree 1) Root: Initial state 2) Expand: Apply Successor() to a node to generate its child nodes. 3) Fringe: The set of all leaf nodes B. Relation to state space a) A search tree is superimposed over state space. b) A state may reappear in a search tree. C. Search strategy: Given the current fringe, which leaf node should be expanded next? Y. Xiang, CIS 3700, Introduction to Intelligent Systems 3 4 1
2 Idea of Tree Search treesearch(problem, strategy) { 1 start tree T with root as initial state in problem; 2 loop 3 find a leaf x to visit according to strategy; 4 if no unvisited leaf, return failure; 5 if x is a goal state, 6 return corresponding solution; 7 else 8 expand x; 9 add successors of x as children of x in T; } Y. Xiang, CIS 3700, Introduction to Intelligent Systems 5 River-Crossing Problem A farmer, with a wolf, a sheep, and a cabbage, needs to cross a river using a boat. The boat can carry farmer plus only one other thing. Wolf and sheep cannot be left in the same bank unattended, nor can sheep and cabbage. How can they cross river without casualty? 1. Identify state variables and actions. 2. Identify initial state and goal. 3. Find action sequence by treesearch(). Y. Xiang, CIS 3700, Introduction to Intelligent Systems 6 Data Structure for Tree Node Components in node 1. Corresponding env state 2. Parent node on tree 3. Action that generated this node from its parent 4. Depth: path length from root 5. Path cost from root Optional data structure for fringe a) Set b) Queue Y. Xiang, CIS 3700, Introduction to Intelligent Systems 7 Algorithm for Tree Search treesearch(problem, strategy) { // fringe as queue 1 tree.makeroot(problem.initialstate); 2 fringe.insert(problem.initialstate); 3 loop 4 if ( fringe.isempty() ) return failure; 5 node = fringe.removefirst(); 6 if ( problem.isgoal(node.getstate()) ) 7 return node.getsolution(); 8 successors = node.expand(problem); 9 tree.addleaves(successors); A fringe.insert(successors, strategy); } Y. Xiang, CIS 3700, Introduction to Intelligent Systems 8 2
3 expand(problem) { // method in Node class 1 successors = ; 2 actionstatepairs = problem.succ(getstate()); 3 for each p in actionstatepairs, do 4 n = new Node(); 5 n.state = p.state; n.action = p.action; 6 n.parent = this; n.depth = this.depth + 1; 7 n.pathcost = this.pathcost + problem.getstepcost(n.action); 8 successors.add(n); 9 return successors; } 9 Measure Problem Solving Performance Before presenting strategies, we need to know how to compare them. 1. Completeness: A search algorithm is complete if it guarantees to find a solution when one exists. 2. Optimality: A search algorithm is optimal if it guarantees to find the optimal solution. 3. Time complexity: Time taken to find a solution Measured by the number of nodes generated 4. Space complexity: Memory needed during search Measured by the number of nodes stored Efficiency of solution vs efficiency of search Y. Xiang, CIS 3700, Introduction to Intelligent Systems 10 Measure Size of Problem A. To analyze complexity of a search algorithm, a measure of the size of a search problem is needed. B. Commonly measured by parameters of the fully expanded search tree 1. Branching factor (max # of successors per node): b 2. Depth of the shallowest goal node: d 3. Max path length: m Classes of Search Strategies A. The strategy adopted by a search algorithm determines the problem solving performance. B. Classes of search strategies 1. Uninformed (blind): Agent has no additional info beyond problem definition. 2. Informed (heuristic): Agent has knowledge whether one non-goal state is more promising than another. Y. Xiang, CIS 3700, Introduction to Intelligent Systems 11 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 12 3
4 Breadth-First Search (BFS) A. BFS strategy Each node at a given depth is expanded, before any node at the next level is expanded. B. How to implement in TreeSearch()? FIFO queue for fringe C. Behavior of fringe.insert(successors, BFS) Convention: Insert left child first. Properties of BFS 1. Is BFS complete? 2. Is BFS optimal? 3. What is its time complexity? Theorem For integers b 2 and d 0, the following holds. 1+b+b 2 + +b d < b d What is the space complexity? Summary Y. Xiang, CIS 3700, Introduction to Intelligent Systems 13 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 14 Depth-First Search (DFS) A. DFS strategy Visit the deepest node in the fringe first. B. Convention for tie breaking C. How to implement in TreeSearch()? LIFO queue (stake) for fringe 1. Is DFS complete? 2. Is DFS optimal? 3. What is the time complexity? Space Complexity of DFS A. A node can be removed from memory as soon as all descendants have been visited. B. DFS needs to store only a) a single path from root to a leaf, and b) unvisited siblings for each node on the path. C. Space complexity How many nodes must be stored? D. Summary Y. Xiang, CIS 3700, Introduction to Intelligent Systems 15 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 16 4
5 Depth-Limited Search (DLS) A. Motivation: Avoid being stuck in unbounded branches as DFS does B. DLS strategy a) Depth-first search with a depth limit l b) Nodes at depth l are treated as having no successors. 1. Does DLS guarantee termination? 2. Space complexity 3. Time complexity 4. Is DLS complete? 5. Is DLS optimal? 17 Iterative Deepening Search (IDS) A. Motivation: Combine merits from BFS and DFS B. IDS strategy: Perform DLS with increasing depth limit l = 0, 1, 2,, until a goal node is found. C. Procedure for visiting node x if x is a goal node, return solution; else if x.depth < l, expand x; else remove x from memory; // x.depth = l if x is last child, rm y = x.parent from memory; if y is last child, rm z = y.parent from memory; D. An example 18 Properties of IDS 1. Is IDS complete? 2. Is IDS optimal? 3. What is the space complexity? 4. What is the time complexity? Theorem For integers b 2 and d 0, the following holds. 1 b d + 2 b d (d) b 1 + (d+1) b 0 < 2b d+1. Summary Avoiding Repeated States Causes of repeated states 1. Reversible actions 2. Multiple paths from a state to another Tradeoff in checking and avoiding repeated nodes A. Save time & space for processing repeated subtrees. B. Need to check each newly generated node against visited nodes (unique). Convention: Assume no checking for repeated nodes. Y. Xiang, CIS 3700, Introduction to Intelligent Systems 19 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 20 5
6 Heuristic Search Strategies A. General approach: Best-First Search 1. Utilize problem-specific knowledge on how promising a node n leads to a goal. 2. Encode the knowledge with an evaluation function f(n). 3. Expand the leaf with the best f(.) value. 4. Convention: The lower the f(.) value, the better. B. Implementation: Maintain fringe as a queue sorted in ascending order of f(.) values. C. What properties of function f(n) are desirable? Can we always find such f(n)? Greedy Best-First Search (GBFS) Greedy Best-First Search 1. Specify a heuristic function h(n) as estimated cost of the cheapest path from node n to a goal node. 2. If n is a goal, what should the value of h(n) be? 3. Define f(n) = h(n). Ex Routing from city A to city B with straight-line distance heuristics Y. Xiang, CIS 3700, Introduction to Intelligent Systems 21 Y. Xiang, CIS 3700, Introduction to Intelligent Systems Area Map A T 71 Z 111 O 140 L 70 M 75 D 151 S R C F P A 366 B 0 C 160 D 242 E 161 F 176 G 77 H Y. Xiang, CIS 3700, Introduction to Intelligent Systems 23 G B 90 N Straight-line distance to B U I V H I 226 L 244 M 241 N 234 O 380 P 100 R 193 S 253 T 329 U 80 V 199 Z E Evaluation of GBFS 1. Is GBFS complete? Ex Routing from city I to F 2. Is GBFS optimal? 3. Time complexity GBFS behaves similarly to DFS. 4. Space complexity Ex Routing from A to G Summary Y. Xiang, CIS 3700, Introduction to Intelligent Systems 24 D E B G A F C 6
7 A* Tree Search A. Combine cost g(n) from root to node n with h(n). h(n): estimate cost of the best path from n to a goal B. Evaluation function: f(n) = g(n) + h(n) C. What is the interpretation? D. Ex Routing from city A to B E. Behavior of A* tree search depends on properties of heuristic function h(). Monotonicity of Heuristic Function A. Heuristic function h(n) is monotonic, if for each parent node p and its child c, h(c) h(p) - c(p,c), where c(p,c) is step cost from p to c. B. What is the interpretation? C. Ex Is straight-line distance heuristics monotonic? D. Ex An non-monotonic h(n) Y. Xiang, CIS 3700, Introduction to Intelligent Systems 25 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 26 Completeness of A* 1. Proposition: If h() is monotonic, for every parent p and its child c, f(p) f(c) holds. 2. How are p and c related in a 2-D state space? 3. A* visits leaves along concentric circles of ascending f() values. 4. Theorem: A* tree search is complete, if a) h() is monotonic, b) each step cost is greater than some >0, and c) branching factor b is finite. Admissibility of h(n) & Optimality of A* A. Heuristic function h(n) is admissible if h(n) c(n), where c(n) is minimum path cost from n to a goal. B. What is the interpretation? C. What is the implication to evaluation function f(n)? D. Theorem: A* tree search is optimal if h(n) is admissible. E. Proof idea a) r: root; z: an optimal goal; b) x: a sub-optimal goal in fringe; c) n: a leaf on optimal solution path from r to z; d) Claim: x cannot be visited before n. Y. Xiang, CIS 3700, Introduction to Intelligent Systems 27 Y. Xiang, CIS 3700, Introduction to Intelligent Systems 28 7
8 Completeness, Optimality & Complexity A. Theorem If heuristic function h(n) is monotonic, it is admissible. B. Time complexity For most AI problems, the number of states inside a goal circle is exponential in the length of solution. C. Space complexity a) A* tree search needs to store all nodes expanded. b) Hence, space and time complexity are the same. D. Summary and comparison with blind strategies Y. Xiang, CIS 3700, Introduction to Intelligent Systems 29 8
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 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 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 (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 informationA.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 informationArtificial 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 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 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 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 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 informationSolving Problems by Searching
Solving Problems by Searching CS486/686 University of Waterloo Sept 11, 2008 1 Outline Problem solving agents and search Examples Properties of search algorithms Uninformed search Breadth first Depth first
More 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 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 informationEfficient memory-bounded search methods
Efficient memory-bounded search methods Mikhail Simin Arjang Fahim CSCE 580: Artificial Intelligence Fall 2011 Dr. Marco Voltorta Outline of The Presentation Motivations and Objectives Background - BFS
More informationProblem 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 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 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 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 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 information521495A: 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 informationCS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems
CS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems 1. Search trees for the state-space graph given below: We only show the search trees corresponding
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 informationArtificial Intelligence
Artificial Intelligence Informed Search and Exploration Chapter 4 (4.1 4.2) A General Search algorithm: Chapter 3: Search Strategies Task : Find a sequence of actions leading from the initial state to
More informationmywbut.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 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 informationChapter 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 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 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 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 informationS A E RC R H C I H NG N G IN N S T S A T T A E E G R G A R PH P S
LECTURE 2 SEARCHING IN STATE GRAPHS Introduction Idea: Problem Solving as Search Basic formalism as State-Space Graph Graph explored by Tree Search Different algorithms to explore the graph Slides mainly
More informationDFS. 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 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 informationCS 5522: Artificial Intelligence II
CS 5522: Artificial Intelligence II Search Algorithms Instructor: Wei Xu Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley.] Today Agents that Plan Ahead Search Problems
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 informationMustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, Chapter 3 Informed Searching. Mustafa Jarrar. University of Birzeit
Mustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, 2018 Chapter 3 Informed Searching Mustafa Jarrar University of Birzeit Jarrar 2018 1 Watch this lecture and download the slides
More information521495A: 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 informationARTIFICIAL 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 informationCS486/686 Lecture Slides (c) 2014 P.Poupart
1 2 1 Solving Problems by Searching [RN2] Sec 3.1-3.5 [RN3] Sec 3.1-3.4 CS486/686 University of Waterloo Lecture 2: January 9, 2014 3 Outline Problem solving agents and search Examples Properties of search
More informationInformed 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 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 informationInformed Search Algorithms
Informed Search Algorithms CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2017, Semester 2 Introduction
More informationDownloaded from ioenotes.edu.np
Chapter- 3: Searching - Searching the process finding the required states or nodes. - Searching is to be performed through the state space. - Search process is carried out by constructing a search tree.
More informationAn 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 informationLecture 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 informationCPS 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 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 informationInformed search methods
Informed search methods Tuomas Sandholm Computer Science Department Carnegie Mellon University Read Section 3.5-3.7 of Russell and Norvig Informed Search Methods Heuristic = to find, to discover Heuristic
More informationRoute planning / Search Movement Group behavior Decision making
Game AI Where is the AI Route planning / Search Movement Group behavior Decision making General Search Algorithm Design Keep a pair of set of states: One, the set of states to explore, called the open
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 informationSearch: Advanced Topics and Conclusion
Search: Advanced Topics and Conclusion CPSC 322 Lecture 8 January 24, 2007 Textbook 2.6 Search: Advanced Topics and Conclusion CPSC 322 Lecture 8, Slide 1 Lecture Overview 1 Recap 2 Branch & Bound 3 A
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 informationSearch: Advanced Topics and Conclusion
Search: Advanced Topics and Conclusion CPSC 322 Lecture 8 January 20, 2006 Textbook 2.6 Search: Advanced Topics and Conclusion CPSC 322 Lecture 8, Slide 1 Lecture Overview Recap Branch & Bound A Tricks
More informationTopic 1 Uninformed Search
Topic 1 Uninformed Search [George F Luger. 2008. Artificial Intelligence Structures and Strategies for Complex Problem Solving. 6 th Ed. Pearson. ISBN: 0321545893.] 1 Contents 1. Depth-First Search (DFS)
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 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 informationUninformed 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 informationInformed search strategies (Section ) Source: Fotolia
Informed search strategies (Section 3.5-3.6) Source: Fotolia Review: Tree search Initialize the frontier using the starting state While the frontier is not empty Choose a frontier node to expand according
More informationCS486/686 Lecture Slides (c) 2015 P.Poupart
1 2 Solving Problems by Searching [RN2] Sec 3.1-3.5 [RN3] Sec 3.1-3.4 CS486/686 University of Waterloo Lecture 2: May 7, 2015 3 Outline Problem solving agents and search Examples Properties of search algorithms
More informationAr#ficial)Intelligence!!
Introduc*on! Ar#ficial)Intelligence!! Roman Barták Department of Theoretical Computer Science and Mathematical Logic Uninformed (blind) search algorithms can find an (optimal) solution to the problem,
More informationGraphs vs trees up front; use grid too; discuss for BFS, DFS, IDS, UCS Cut back on A* optimality detail; a bit more on importance of heuristics,
Graphs vs trees up front; use grid too; discuss for BFS, DFS, IDS, UCS Cut back on A* optimality detail; a bit more on importance of heuristics, performance data Pattern DBs? General Tree Search function
More informationUninformed Search Strategies AIMA 3.4
Uninformed Search Strategies AIMA 3.4 CIS 391-2015 1 The Goat, Cabbage, Wolf Problem (From xkcd.com) CIS 391-2015 2 But First: Missionaries & Cannibals Three missionaries and three cannibals come to a
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 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 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 informationCS 4100 // artificial intelligence
CS 4100 // artificial intelligence instructor: byron wallace Search I Attribution: many of these slides are modified versions of those distributed with the UC Berkeley CS188 materials Thanks to John DeNero
More 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 informationDr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit
Lecture Notes on Informed Searching University of Birzeit, Palestine 1 st Semester, 2014 Artificial Intelligence Chapter 4 Informed Searching Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu
More informationRobot Programming with Lisp
6. Search Algorithms Gayane Kazhoyan (Stuart Russell, Peter Norvig) Institute for University of Bremen Contents Problem Definition Uninformed search strategies BFS Uniform-Cost DFS Depth-Limited Iterative
More informationCS 151: Intelligent Agents, Problem Formulation and Search
CS 151: Intelligent Agents, Problem Formulation and Search How do we make a computer "smart?" Computer, clean the house! Um OK?? This one's got no chance How do we represent this problem? Hmmm where to
More informationInformed (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 informationOutline. Best-first search
Outline Best-first search Greedy best-first search A* search Heuristics Admissible Heuristics Graph Search Consistent Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing
More informationCAP 4630 Artificial Intelligence
CAP 4630 Artificial Intelligence Instructor: Sam Ganzfried sganzfri@cis.fiu.edu 1 http://www.ultimateaiclass.com/ https://moodle.cis.fiu.edu/ 2 Solving problems by search 3 8-puzzle 4 8-queens 5 Search
More 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 informationHeuristic Search and Advanced Methods
Heuristic Search and Advanced Methods Computer Science cpsc322, Lecture 3 (Textbook Chpt 3.6 3.7) May, 15, 2012 CPSC 322, Lecture 3 Slide 1 Course Announcements Posted on WebCT Assignment1 (due on Thurs!)
More informationSolving problems by searching
Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2017 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving
More 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 informationArtificial Intelligence
Artificial Intelligence Academic year 2016/2017 Giorgio Fumera http://pralab.diee.unica.it fumera@diee.unica.it Pattern Recognition and Applications Lab Department of Electrical and Electronic Engineering
More informationSolving problems by searching
Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2014 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving
More informationUNINFORMED SEARCH. What to do if teammates drop? Still have 3 or more? No problem keep going. Have two or fewer and want to be merged?
UNINFORMED SEARCH EECS492 January 14, 2010 Administrative What to do if teammates drop? Still have 3 or more? No problem keep going. Have two or fewer and want to be merged? We ll do what we can. Submitting
More informationArtificial Intelligence
Artificial Intelligence Information Systems and Machine Learning Lab (ISMLL) Tomáš Horváth 10 rd November, 2010 Informed Search and Exploration Example (again) Informed strategy we use a problem-specific
More informationAssignment 1 is out! Due: 9 Sep 23:59! Can work in a group of 2-3 students.! NO cheating!!!! Submit in turnitin! Code + report!
Assignment 1 is out! Due: 9 Sep 23:59! Submit in turnitin! Code + report! Can work in a group of 2-3 students.! Please register your group in the website linked from the assignment description before tomorrow
More informationUninformed (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 informationCSC 2114: Artificial Intelligence Search
CSC 2114: Artificial Intelligence Search Ernest Mwebaze emwebaze@cit.ac.ug Office: Block A : 3 rd Floor [Slide Credit Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. Reference materials
More informationClass Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions
Class Overview COMP 3501 / COMP 4704-4 Lecture 2 Prof. JGH 318 Problem Solving Agents Problem Solving Agents: Assumptions Requires a goal Assume world is: Requires actions Observable What actions? Discrete
More informationProblem 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 informationAI: Week 2. Tom Henderson. Fall 2014 CS 5300
AI: Week 2 Tom Henderson Fall 2014 What s a Problem? Initial state Actions Transition model Goal Test Path Cost Does this apply to: Problem: Get A in CS5300 Solution: action sequence from initial to goal
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 informationAnnouncements. Project 0: Python Tutorial Due last night
Announcements Project 0: Python Tutorial Due last night HW1 officially released today, but a few people have already started on it Due Monday 2/6 at 11:59 pm P1: Search not officially out, but some have
More informationWeek 4 Lecture Notes Part 1 Blind Search cont. and Informed Search
Week 4 Lecture Notes Part 1 Blind Search cont. and Informed Search Created by Nicholas Collins (s4291997) and Nicholas Mayer (s4289230) Admin Assignment 1 is due 9 September, not 4 September as it says
More informationInformed Search and Exploration for Agents
Informed Search and Exploration for Agents R&N: 3.5, 3.6 Michael Rovatsos University of Edinburgh 29 th January 2015 Outline Best-first search Greedy best-first search A * search Heuristics Admissibility
More 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 informationLecture 3 of 42. Lecture 3 of 42
Search Problems Discussion: Term Projects 3 of 5 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: http://snipurl.com/v9v3 Course web site: http://www.kddresearch.org/courses/cis730
More informationCS 331: Artificial Intelligence Informed Search. Informed Search
CS 331: Artificial Intelligence Informed Search 1 Informed Search How can we make search smarter? Use problem-specific knowledge beyond the definition of the problem itself Specifically, incorporate knowledge
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 informationCSE 473. Chapter 4 Informed Search. CSE AI Faculty. Last Time. Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search
CSE 473 Chapter 4 Informed Search CSE AI Faculty Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search Last Time 2 1 Repeated States Failure to detect repeated states can turn a linear
More informationArtificial 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 informationInformed/Heuristic Search
Informed/Heuristic Search Outline Limitations of uninformed search methods Informed (or heuristic) search uses problem-specific heuristics to improve efficiency Best-first A* Techniques for generating
More informationClass Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents
Class Overview COMP 3501 / COMP 4704-4 Lecture 2: Search Prof. 1 2 Problem Solving Agents Problem Solving Agents: Assumptions Requires a goal Assume world is: Requires actions Observable What actions?
More 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 informationCS 188 Introduction to Artificial Intelligence Fall 2018 Note 1
CS 188 Introduction to Artificial Intelligence Fall 2018 Note 1 These lecture notes are heavily based on notes originally written by Nikhil Sharma. Agents In artificial intelligence, the central problem
More information