Lecture 2: Fun with Search. Rachel Greenstadt CS 510, October 5, 2017
|
|
- Lesley Reynolds
- 5 years ago
- Views:
Transcription
1 Lecture 2: Fun with Search Rachel Greenstadt CS 510, October 5, 2017
2 Reminder! Project pre-proposals due tonight
3 Overview Uninformed search BFS, DFS, Uniform-Cost, Graph-Search Informed search Heuristics, A*, admissibility, consistency, memory-bounded A* Discussions
4 Why search? Agents with several immediate options of unknown value can choose actions by: examining different sequences of actions choosing the best sequence Examples?
5 Tree Search Explore state space by generating successors of explored states Need Initial State Goal test How Path cost Successor function to get from Arad to Bucharest?
6 Tree Search Initial State : In(Arad) Successor function <action, successor> (Go(Sibiu), In(Sibiu)) Go( Timisoara), In(Timisoara) Go(Zerind), In(Zerind) Goal test: In(Bucharest) Path cost: sum of step costs (in km) How to get from Arad to Bucharest?
7 Class Exercise You have three jugs: 12 gal, 8 gal, and 3 gal and a water faucet. You can fill the jugs up or pour them out from one into another or onto the ground You need to measure out exactly one gal In groups, determine the following precisely enough to implement: Initial state Goal test Successor function Cost function
8 Applications
9 The Mother of All Search Algorithms current_state <= start_state loop: is current_state = goal_state? if yes, output path and terminate generate all next states of current_state and add to fringe set current_state <= choose from fringe set
10 Complications How to choose next state from fringe set? Answer has significant implications on: Time complexity Number of loops Space complexity Size of fringe set Completeness Does loop terminate? Optimality Quality of solution path
11 Measuring complexity b: maximum branching factor (largest number of next states of any state) d: steps to goal m: maximum possible path length not always finite
12 Breadth-first search Expand shallowest unexpanded node Implementation: FIFO queue is data structure for fringe set A B C D E F G
13 Breadth-first search Expand shallowest unexpanded node Implementation: FIFO queue is data structure for fringe set A B C D E F G
14 Breadth-first search Expand shallowest unexpanded node Implementation: FIFO queue is data structure for fringe set A B C D E F G
15 Breadth-first search Expand shallowest unexpanded node Implementation: FIFO queue is data structure for fringe set A B C D E F G
16 Properties of BFS Complete? Optimal? Space? Size of fringe set? O(b d+1 ) Time?
17 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
18 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
19 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
20 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
21 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
22 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
23 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
24 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
25 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
26 Depth-first search Expand deepest unexpanded node Implementation: LIFO (stack) is data structure for fringe set A B C D E F G H I J K L M N O
27 Properties of DFS Space? bm+1 Time? Optimal? Complete? No. Why?
28 Properties of DFS Complete? Spaces with loops Modify to avoid repeated states along path Infinite-depth spaces What if we cut off after depth limit L Depth-Limited DFS
29 Guaranteeing Completeness Idea: Invoke Depth-Limited DFS with iteratively increasing values of L This is called Iterative Deepening Search
30 Iterative Deepening L=0
31 Iterative Deepening L=1
32 Iterative Deepening L=2
33 Iterative Deepening L=3 Etc.
34 Iterative Deepening Search--how efficient? Re-expanding all those nodes seems bad # of nodes in depth-limited search L=d N = b0 + b 1 +b b d-2 +b d-1 +b d # of nodes in iterated deepening search to L=d N = (d+1)b0 + db 1 +(d-1)b b d-2 +2b d-1 +b d For b=10, d=5 N= ,000+10, ,000=111,111 N= ,000+20, ,000=123,456 Overhead = (123, ,111)/111,111=12,345/111,111=11.11%
35 Bi-directional Search Search gets less efficient with depth Minimize depth by doing two searches Forward from the Start State Backward from the Goal Catch: sometimes it s hard to go backward from the goal
36 What if not all paths are equal?
37 Uniform-cost search Expand least-cost unexpanded node Implementation: fringe is priority queue ordered by path cost Same as breath first search if all steps equal A D 3 B 4 E 1 3 F 0 C 4 G
38 Uniform-cost search Expand least-cost unexpanded node Implementation: fringe is priority queue ordered by path cost Same as breath first search if all steps equal A D 3 B 4 E 1 3 F 0 C 4 G
39 Uniform-cost search Expand least-cost unexpanded node Implementation: fringe is priority queue ordered by path cost Same as breath first search if all steps equal A D 3 B 4 E 1 3 F 0 C 4 G
40 Uniform-cost search Expand least-cost unexpanded node Implementation: fringe is priority queue ordered by path cost Same as breath first search if all steps equal A D 3 B 4 E 1 3 F 0 C 4 G
41 Notation: g(n) g(n) : cost of path from start to node n Fringe is priority queue ordered by g(n) Goal test when expanded rather than generated (avoid suboptimal path) D 3 B 4 E 1 A g=1 g=3 g=4 g=5 g=3 g=7 3 F 0 C 4 G
42 Uniform-cost Search Complete? If step cost >= Epsilon Time and Space? Cost of Optimal Soln = C* Cost = O(b 1+floor(C*/E) )
43 Graph Search Remove repeated states
44 Summary of algorithms Note: should be floor not ceiling in Uniform-Cost search
45 What about complexity?
46 What about complexity? Or, hey these AI algorithms don t seem so smart!
47 Heuristics NP-Complete problems: impossible to guarantee optimality and sub-exponential run-time A heuristic algorithm gives up one or both Gives good average run-time or good (but not guaranteed optimal) solutions
48 Heuristic in Search Heuristic: a rule of thumb Formally: function that maps a state onto an estimate of the cost to the goal from that state Define h(n) = estimated cost of path from node n to goal if n is goal then h(n)=0. h(a)=10 g(n ) a h(b)=18 h(g)=0 S n b G c h(c)=7
49 Using Heuristics in Informed Search Assume h(n) is given. How can we use it to do search? Data structure for the fringe set? h(a)=10 g(n ) a h(b)=18 h(g)=0 S n b G c h(c)=7
50 Greedy Best-First Search Priority queue using h(n) Pick the node closest to the goal Example fringe (b,18) (a,10) (c,7) h(a)=10 g(n ) a h(b)=18 h(g)=0 S n b G c h(c)=7
51 When Greedy Search Goes Bad h(a)=1 g(n ) 100 a 1 h(g)=0 S Expand successors of n n b f e G h(b)=3 h(e)=2 h(f)=1 Fringe set [(b,h(b)=3), (a, h(a)=1)] Expand successors of a Fringe set [(b, h(b)=3), (G,h(G)=0)] Expand G...found goal...solution path: S...n ->a->g cost = g(n ) Not optimal, g(n ) + 4 exists
52 How to fix? So we have g(n) : Cost from start to n uniform-cost search h(n) : Estimated cost from n to goal greedy best-first search Ideas?
53 A* Search h(a)=1 g(n ) = a 1 h(g)=0 S n b f e G h(b)=3 h(e)=2 h(f)=1 Take into account total path cost Fringe set as a priority queue ordered by f(n) = g(n) + h(n) f(b) =? f(a) =? A* is really important
54 A* Search Example h(a)=1 g(n ) = a 1 h(g)=0 S In state n n b f e G h(b)=3 h(e)=2 h(f)=1 Two successors, a and b f(a) = g(a) + h(a) = = 111 f(b) = g(b) + h(b) = = 14 Fringe set ={(b,14), (a,111)} Choose to expand b Next fringe = {(f,14),(a,111)}
55 Is A* Guaranteed Optimal? h(a)=1 g(n ) = a 1 h(g)=0 S n b f e G h(b)=200 h(e)=2 h(f)=1 Nope, see h(b) A* will return S...n -> a -> G Heuristics can be wrong
56 Good Heuristics : Admissibility h(a)=1 g(n ) = a 1 h(g)=0 S n b f e G h(b)=200 h(e)=2 h(f)=1 Let h*(n) be the real cost of cheapest path from n to goal Definition: h(n) is admissible iff for all n, h(n) is less than or equal h*(n) Is h(n ) = 99 admissible? Is h(n ) = 4 admissible? Is h(b) = 4 admissible? Is h(b) = 0 admissible? Straight line distance on a map?
57 Theorem: If h(n) is admissible, A* is optimal (if no repeated states) Optimal Soln G1 n S G2 Suppose G 2 is suboptimal and path (S...n...G2) is returned by A* Let n be the first unexpanded node in the optimal path to G1 In A*, the only way G2 is expanded before n is if f(n) > f(g2) This is how priority queues work Assume f(n) > f(g 2) : This is a contradiction, why?
58 Proof: f(n) > f(g 2) f(g 2) = g(g2) + h(g2) f(g 2) = g(g2) f(g 2) > g(g1) f(g 2) > g(n) + h*(n) f(g 2) > g(n) + h(n) f(g 2) > f(n) (Contradiction) Assumption def of f def of h (G 2 is a goal state) G 2 is suboptimal n is on opt path to G 1 h is admissible def of f
59 When Admissibility Fails a h(a)=5 g(n ) = h(g)=0 S n h(n)=7 4 b h(b)=1 4 G Is h admissible?
60 When Admissibility Fails a h(a)=5 g(n ) = h(g)=0 S n h(n)=7 4 b h(b)=1 4 G Expand node n: f(a) = = 17 f(b) = = 15 Fringe set {(a,17), (b,15)} Expand b: f(g) = 14+4 = 18 Fringe set {(G,18),(a,17)} Expand a : Ignore b since b already visited Expand G : test for goal, done. But suboptimal
61 Still not optimal using Graph-Search Graph-Search avoids repeated states by ignoring previously seen states What if the second path to the state is optimal? Graph-Search discards it This is why the proof breaks down if repeated states Need yet another requirement...
62 Consistency a h(a)=5 g(n ) = h(g)=0 S n h(n)=7 4 b h(b)=1 4 G What is wrong with h?
63 Consistency a h(a)=5 g(n ) = h(g)=0 S n h(n)=7 4 b h(b)=1 4 G Require that h(a) <= h(b) + cost(a,b) Make the heuristic obey the triangle inequality
64 Consistent Heuristics A heuristic is consistent if For every node n And every successor n of n Generated by any action a cost(n,a,n ) + h(n ) >= h(n)
65 Consistent heuristics If h is consistent, f(n) is nondecreasing along any path c(n,a,n ) n h(n) f(n ) = g(n ) + h(n ) n = g(n) + c(n,a,n ) + h(n ) h(n ) G >= g(n) + h(n) f(n ) >= f(n)
66 Consistent Implies Admissible Thm: h(n) <= h*(n) for all n Proof by induction: Base case: h*(n) = 0 ; n is a goal state so h(n) = 0 by definition Assume h(n ) <= h*(n ) Lemma: h(n) <= h*(n) h(n) <= c(n,n ) + h(n ) by consistency <= c(n,n ) + h*(n ) by inductive hypothesis h(n) <= h*(n) by definition Inductive hypothesis: For all n after n on shortest path to Goal
67 Properties of A* Complete: yes (unless infinite nodes where f<=f(g) ) Time: exponential Space: All nodes in memory Optimal: Yes (if using consistent heuristic and Graph-Search)
68 Time: find a good admissible heuristic What kind of heuristics?
69 Time: find a good admissible heuristic h1(n) = # of misplaced tiles h2(n) = manhattan distance to goal (total number of squares from goal state) h1(s) = 8 h2(s) = =18
70 Dominance if h2(n) >= h1(n) for all n (both admissible) then h2 dominates h1 h2 is better for search IDS A*(h1) A*(h2) 8-puzzle puzzle puzzle too big
71 Complexity So time might be manageable with good heuristics, but space? Memory-bounded A*
72 Simplified Memory- Bounded A* Use all available memory Expand best leaves until you can t Remove worst leaf (highest f-value) Solve ties by expanding newest best leaf and removing oldest worst leaf Complete if soln reachable, optimal if optimal soln reachable
73 Iterative Deepening A* (IDA*) Use iterative deepening to progressively expand the memory usage based on f-cost Runs into the same problems as Uniform- Cost if paths/heuristics are real-valued
74 Recursive Best First Search (RBFS) Keep track of the best alternative path (f-limit) When current f-values exceed f-limit Backtrack and Store best f-value of children at backtracked nodes
75 Readings this week: Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd, The PageRank Citation Ranking: Bringing Order to the Web, Stanford University, SIDL- WP , November Katia Sycara. Multiagent Systems. AAAI Magazine, 1999 Remember: Discussion points by Tuesday at 6 pm, online replies by Thursday at 3 pm.
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 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 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 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 informationChapter 3: Informed Search and Exploration. Dr. Daisy Tang
Chapter 3: Informed Search and Exploration Dr. Daisy Tang Informed Search Definition: Use problem-specific knowledge beyond the definition of the problem itself Can find solutions more efficiently Best-first
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 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 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 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 informationLecture 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 informationCS 771 Artificial Intelligence. Informed Search
CS 771 Artificial Intelligence Informed Search Outline Review limitations of uninformed search methods Informed (or heuristic) search Uses problem-specific heuristics to improve efficiency Best-first,
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 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 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 informationInformed search algorithms. Chapter 4
Informed search algorithms Chapter 4 Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search Best-first search Idea: use an evaluation function f(n) for each node
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 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
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 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 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 informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 Informed Search Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More 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 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 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 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 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 informationInformed search algorithms. Chapter 4, Sections 1 2 1
Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More 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 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 informationInformed search methods
CS 2710 Foundations of AI Lecture 5 Informed search methods Milos Hauskrecht milos@pitt.edu 5329 Sennott Square Announcements Homework assignment 2 is out Due on Tuesday, September 19, 2017 before the
More informationCS 380: Artificial Intelligence Lecture #4
CS 380: Artificial Intelligence Lecture #4 William Regli Material Chapter 4 Section 1-3 1 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms Hill-climbing
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 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 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 informationInformed search. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016
Informed search CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Best-first search Greedy
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
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 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 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 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 informationProblem solving and search
Problem solving and search Chapter 3 TB Artificial Intelligence Slides from AIMA http://aima.cs.berkeley.edu 1 /1 Outline Problem-solving agents Problem types Problem formulation Example problems Basic
More informationInformed Search. CS 486/686: Introduction to Artificial Intelligence Fall 2013
Informed Search CS 486/686: Introduction to Artificial Intelligence Fall 2013 1 Outline Using knowledge Heuristics Bestfirst search Greedy bestfirst search A* search Variations of A* Back to heuristics
More informationArtificial Intelligence Informed search. Peter Antal
Artificial Intelligence Informed search Peter Antal antal@mit.bme.hu 1 Informed = use problem-specific knowledge Which search strategies? Best-first search and its variants Heuristic functions? How to
More informationLecture 5 Heuristics. Last Time: A* Search
CSE 473 Lecture 5 Heuristics CSE AI Faculty Last Time: A* Search Use an evaluation function f(n) for node n. f(n) = estimated total cost of path thru n to goal f(n) = g(n) + h(n) g(n) = cost so far to
More informationInformed search algorithms
Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More 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 informationArtificial Intelligence
Artificial Intelligence Information Systems and Machine Learning Lab (ISMLL) Tomáš Horváth 16 rd November, 2011 Informed Search and Exploration Example (again) Informed strategy we use a problem-specific
More informationInformed Search A* Algorithm
Informed Search A* Algorithm CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Most slides have
More informationOutline. Best-first search
Outline Best-first search Greedy best-first search A* search Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing search Genetic algorithms Constraint Satisfaction Problems
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
More informationOutline. Informed search algorithms. Best-first search. Review: Tree search. A search Heuristics. Chapter 4, Sections 1 2 4
Outline Best-first search Informed search algorithms A search Heuristics Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More informationInformed Search and Exploration
Ch. 03 p.1/47 Informed Search and Exploration Sections 3.5 and 3.6 Ch. 03 p.2/47 Outline Best-first search A search Heuristics, pattern databases IDA search (Recursive Best-First Search (RBFS), MA and
More 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 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 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 information4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies
55 4 INFORMED SEARCH AND EXPLORATION We now consider informed search that uses problem-specific knowledge beyond the definition of the problem itself This information helps to find solutions more efficiently
More informationInformed search algorithms. Chapter 4
Informed search algorithms Chapter 4 Material Chapter 4 Section 1 - Exclude memory-bounded heuristic search 3 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms
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 informationInformed Search and Exploration
Ch. 03b p.1/51 Informed Search and Exploration Sections 3.5 and 3.6 Nilufer Onder Department of Computer Science Michigan Technological University Ch. 03b p.2/51 Outline Best-first search A search Heuristics,
More 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 informationToday s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004
Today s s lecture Search and Agents Material at the end of last lecture Lecture 3: Search - 2 Victor R. Lesser CMPSCI 683 Fall 2004 Continuation of Simple Search The use of background knowledge to accelerate
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 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 informationInformed search algorithms
Artificial Intelligence Topic 4 Informed search algorithms Best-first search Greedy search A search Admissible heuristics Memory-bounded search IDA SMA Reading: Russell and Norvig, Chapter 4, Sections
More informationCOMP9414/ 9814/ 3411: Artificial Intelligence. 5. Informed Search. Russell & Norvig, Chapter 3. UNSW c Alan Blair,
COMP9414/ 9814/ 3411: Artificial Intelligence 5. Informed Search Russell & Norvig, Chapter 3. COMP9414/9814/3411 15s1 Informed Search 1 Search Strategies General Search algorithm: add initial state to
More informationCOMP219: 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 informationInformed Search Lecture 5
Lecture 5 How can we exploit problem-specific knowledge to find solutions more efficiently? Where does this knowledge come from and under what conditions is it useful? 1 Agenda Review: Uninformed Search
More informationInformed Search and Exploration
Informed Search and Exploration Chapter 4 (4.1-4.3) CS 2710 1 Introduction Ch.3 searches good building blocks for learning about search But vastly inefficient eg: Can we do better? Breadth Depth Uniform
More 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 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 informationOverview. Path Cost Function. Real Life Problems. COMP219: Artificial Intelligence. Lecture 10: Heuristic Search
COMP219: Artificial Intelligence Lecture 10: Heuristic Search Overview Last time Depth-limited, iterative deepening and bi-directional search Avoiding repeated states Today Show how applying knowledge
More informationDr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit
Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Chapter 4 Informed Searching Dr. Mustafa
More informationArtificial Intelligence
Artificial Intelligence hapter 1 hapter 1 1 Iterative deepening search function Iterative-Deepening-Search( problem) returns a solution inputs: problem, a problem for depth 0 to do result Depth-Limited-Search(
More informationInformed Search. Best-first search. Greedy best-first search. Intelligent Systems and HCI D7023E. Romania with step costs in km
Informed Search Intelligent Systems and HCI D7023E Lecture 5: Informed Search (heuristics) Paweł Pietrzak [Sec 3.5-3.6,Ch.4] A search strategy which searches the most promising branches of the state-space
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 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 informationInformed Search Methods
Informed Search Methods How can we improve searching strategy by using intelligence? Map example: Heuristic: Expand those nodes closest in as the crow flies distance to goal 8-puzzle: Heuristic: Expand
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Today: Informed search algorithms
More informationITCS 6150 Intelligent Systems. Lecture 5 Informed Searches
ITCS 6150 Intelligent Systems Lecture 5 Informed Searches Informed Searches We are informed (in some way) about future states and future paths We use this information to make better decisions about which
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 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 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 informationCOMP219: Artificial Intelligence. Lecture 10: Heuristic Search
COMP219: Artificial Intelligence Lecture 10: Heuristic Search 1 Class Tests Class Test 1 (Prolog): Friday 17th November (Week 8), 15:00-17:00. Class Test 2 (Everything but Prolog) Friday 15th December
More 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 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 informationPlanning, Execution & Learning 1. Heuristic Search Planning
Planning, Execution & Learning 1. Heuristic Search Planning Reid Simmons Planning, Execution & Learning: Heuristic 1 Simmons, Veloso : Fall 2001 Basic Idea Heuristic Search Planning Automatically Analyze
More informationIntroduction to Computer Science and Programming for Astronomers
Introduction to Computer Science and Programming for Astronomers Lecture 9. István Szapudi Institute for Astronomy University of Hawaii March 21, 2018 Outline Reminder 1 Reminder 2 3 Reminder We have demonstrated
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 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 informationInformed search. Lirong Xia
Informed search Lirong Xia Spring, 207 Last class ØSearch problems state space graph: modeling the problem search tree: scratch paper for solving the problem ØUninformed search BFS DFS 2 Today s schedule
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 informationDIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018
DIT411/TIN175, Artificial Intelligence Chapters 3 4: More search algorithms CHAPTERS 3 4: MORE SEARCH ALGORITHMS DIT411/TIN175, Artificial Intelligence Peter Ljunglöf 23 January, 2018 1 TABLE OF CONTENTS
More informationIntroduction to Artificial Intelligence. Informed Search
Introduction to Artificial Intelligence Informed Search Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Best-first search A search Heuristics B. Beckert:
More 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 informationInformed Search. Xiaojin Zhu Computer Sciences Department University of Wisconsin, Madison
Informed Search Xiaojin Zhu jerryzhu@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [Based on slides from Andrew Moore http://www.cs.cmu.edu/~awm/tutorials ] slide 1 Main messages
More informationPart I. Instructor: Dr. Wei Ding. Uninformed Search Strategies can find solutions to problems by. Informed Search Strategies
Informed Search and Exploration Part I Instructor: Dr. Wei Ding Fall 2010 1 Motivation Uninformed Search Strategies can find solutions to problems by Systematically generating new states Testing them against
More informationHeuristic (Informed) Search
Heuristic (Informed) Search (Where we try to choose smartly) R&N: Chap., Sect..1 3 1 Search Algorithm #2 SEARCH#2 1. INSERT(initial-node,Open-List) 2. Repeat: a. If empty(open-list) then return failure
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 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 information