Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "1 Uninformed Search Strategies Slides drawn from Andrew Moore’s Machine Learning Tutorials:"— Presentation transcript:

1 1 Uninformed Search Strategies Slides drawn from Andrew Moore’s Machine Learning Tutorials: http://www.autonlab.org/tutorials/

2 2

3 3

4 4

5 5 What problems do you think are like this?

6 6

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

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

11 11

12 12

13 13

14 14

15 15

16 16

17 17

18 18

19 19

20 20

21 21

22 22

23 23

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

25 25

26 26

27 27

28 28

29 29

30 30

31 31

32 32

33 33

34 34

35 35

36 36

37 37

38 38

39 39

40 40

41 41

42 42

43 43

44 44

45 45

46 46

47 47

48 48

49 49

50 50 AlgorithmComplete?Optimal?Time Complexity Space Complexity BFS UCS

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

53 53

54 54

55 55

56 56

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

62 62 Which might be the best solution? When?

63 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 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 65 N S EW startWhat would BFS do?

66 66

67 67

68 68

69 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 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 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 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 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 74 Greedy best first search This search strategy is called greedy best first search. How can it possibly go wrong??

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


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

Similar presentations


Ads by Google