1 Uninformed Search Strategies Slides drawn from Andrew Moore’s Machine Learning Tutorials:

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

Notes Dijstra’s Algorithm Corrected syllabus.
Uninformed search strategies
Informed search strategies
The A* Algorithm Héctor Muñoz-Avila. The Search Problem Starting from a node n find the shortest path to a goal node g ?
Classic AI Search Problems
Solving Problem by Searching
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Search Strategies Reading: Russell’s Chapter 3 1.
Uninformed Search Jim Little UBC CS 322 – Search 2 September 12, 2014
Review: Search problem formulation
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
Problem Solving and Search in AI Heuristic Search
CSC344: AI for Games Lecture 4: Informed search
5-Nov-2003 Heuristic Search Techniques What do you do when the search space is very large or infinite? We’ll study three more AI search algorithms: Backtracking.
CS 188: Artificial Intelligence Spring 2006 Lecture 2: Queue-Based Search 8/31/2006 Dan Klein – UC Berkeley Many slides over the course adapted from either.
Uninformed Search (cont.)
Solving problems by searching
CS 188: Artificial Intelligence Fall 2009 Lecture 2: Queue-Based Search 9/1/2009 Dan Klein – UC Berkeley Multiple slides from Stuart Russell, Andrew Moore.
State-Space Searches.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
Problem Solving and Search Andrea Danyluk September 11, 2013.
CSE 511a: Artificial Intelligence Spring 2012
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
1 Solving problems by searching This Lecture Chapters 3.1 to 3.4 Next Lecture Chapter 3.5 to 3.7 (Please read lecture topic material before and after each.
How are things going? Core AI Problem Mobile robot path planning: identifying a trajectory that, when executed, will enable the robot to reach the goal.
CS 416 Artificial Intelligence Lecture 4 Uninformed Searches (cont) Lecture 4 Uninformed Searches (cont)
Search Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Dan Klein, Stuart Russell, Andrew Moore, Svetlana Lazebnik,
Artificial Intelligence
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Search (cont) & CSP Intro Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Dan Klein, Stuart Russell, Andrew Moore,
Informed Search Methods. Informed Search  Uninformed searches  easy  but very inefficient in most cases of huge search tree  Informed searches  uses.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
Lecture 3: Uninformed Search
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Slide 1 Searching: Deterministic single-agent Andrew W. Moore Professor School of Computer Science Carnegie Mellon University
CSC3203: AI for Games Informed search (1) Patrick Olivier
Computer Science CPSC 322 Lecture 6 Iterative Deepening and Search with Costs (Ch: 3.7.3, 3.5.3)
Artificial Intelligence Problem solving by searching.
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Slides by: Eric Ringger, adapted from slides by Stuart Russell of UC Berkeley. CS 312: Algorithm Design & Analysis Lecture #36: Best-first State- space.
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
CS 343H: Artificial Intelligence
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
AI Adjacent Fields  Philosophy:  Logic, methods of reasoning  Mind as physical system  Foundations of learning, language, rationality  Mathematics.
For Monday Read chapter 4 exercise 1 No homework.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Artificial Intelligence Solving problems by searching.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Review: Tree search Initialize the frontier using the starting state
Artificial Intelligence (CS 370D)
Artificial Intelligence Problem solving by searching CSC 361
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
The A* Algorithm Héctor Muñoz-Avila.
CS 4100 Artificial Intelligence
CSE 4705 Artificial Intelligence
Informed search algorithms
Informed search algorithms
Informed search algorithms
Chap 4: Searching Techniques
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Artificial Intelligence: Theory and Practice Ch. 3. Search
Presentation transcript:

1 Uninformed Search Strategies Slides drawn from Andrew Moore’s Machine Learning Tutorials:

2

3

4

5 What problems do you think are like this?

6

7 There are, however, a lot of search problems that DON’T fit this definition. Can you name some?? Definition of a Search Problem

8

9 This is a game against an adversary This is a game of chance This one has hidden state This one has an infinite number of states This one  has all of the problems above

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24 What’s another way to search that avoids the need for pointers?

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50 AlgorithmComplete?Optimal?Time Complexity Space Complexity BFS UCS

51 AlgorithmComple te OptimalTime Complexity Space Complexity BFSYY ( if all transitions cost the same) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L )

52

53

54

55

56

57 AlgorithmCompl ete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFS

58 AlgorithmCompl ete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFSNNN/A

59 OK, assume an ACYCLIC GRAPH AlgorithmCompl ete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFS**

60 OK, assume an ACYCLIC GRAPH AlgorithmCompl ete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFS**YNO(B LMAX )O(LMAX)

61

62 Which might be the best solution? When?

63 AlgorithmComp lete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) PCDFS MEMDFS

64 AlgorithmComp lete Optim al Time Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) PCDFSYNO(B LMAX )O(LMAX) MEMDFSYNO(min(N,B LMAX ))

65 N S EW startWhat would BFS do?

66

67

68

69 AlgorithmCompleteOptimalTime Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFS**YNO(B LMAX )O(LMAX) Iterative Deepening Back to judging the search algorithms

70 AlgorithmCompleteOptimalTime Complexity Space Complexity BFSYY ( if...) O(min(N,B L )) UCSYYO(log(Q)*min(N,B L ))O(min(N),B L ) DFS**YNO(B LMAX )O(LMAX) Iterative Deepening YY (if all transitions cost the same) O(B L )O(L) Back to judging the search algorithms

71 Heuristic Search In the searches we have covered so far, we never determine which states look most promising for expansion at a given time point. We never “look-ahead” to the goal. Often, however, we have some knowledge about the merit of states.

72 Heuristic functions We can encode each notion of the “ merit” of a state into a heuristic function, h(s). For planning a path through a maze? For solving a Rubick’s cube?

73 Euclidean distance as h(s) Say we want to plan a path from Arad to Bucharest, and we know the straight line distance from each city to our goal. This lets us plan our trip by picking cities at each time point that minimize the distance to our goal (or maximize our heuristic).

74 Greedy best first search This search strategy is called greedy best first search. How can it possibly go wrong??

75 Greedy best first search In red is the path we selected. In green is the shortest path between Arad and Bucharest. What happened?