Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS460 Spring 2011 Review of Search. Overview Uninformed search Informed search Local search Adversarial search.

Similar presentations


Presentation on theme: "CS460 Spring 2011 Review of Search. Overview Uninformed search Informed search Local search Adversarial search."— Presentation transcript:

1 CS460 Spring 2011 Review of Search

2 Overview Uninformed search Informed search Local search Adversarial search

3 Search Problem Formulation

4

5

6

7

8 One possible heuristic evaluation function for a state would be the amount of time required for the robot to go back to the lander from the location of the state; this is clearly admissible. What would be a more powerful, but still admissible, heuristic for this problem? (don’t worry about whether it is consistent or not).

9 One possible stronger heuristic is the maximum, over uncollected rocks r, of the time taken to go from current location to r, plus the time taken to get from r to the lander.

10 Prob1: Uninformed Tree

11

12

13 Prob 2: Informed (heuristic) Graph

14

15

16

17

18

19

20

21 “Expanded” List Path length is additive – Shortest path from S to G via X = shortest path from S to G + shortest path from X to G So, we only need to keep around the single best path from S to any state X, when, in a priority queue Q. If we find a new path to a state that is already in Q, then we can discard the longer one So, once we expand one path to state X, we don’t need to consider (extend) any other paths to X. We can keep a list of these states. Call it Expanded List. If the state of the search node we pull off of Q is in the Expanded List, we discard the node. When we use the Expanded List this way, we call it ‘strict”.

22 Non-strict Expanded List When using a heuristic, as in A*, we don’t know for sure whether we have a node with a shortest path, we are partly guessing So, discarding the next node on Q might risk losing optimal path Non-strict: if the path length from the new node is < path length from node already on expanded list, then replace the old node with the new node.

23

24 Adversarial (game) search

25

26

27

28 Complexity Calculation Problem 3.5 from textbook (3 rd ed). N n queens, Assume each action incrementally adds one queen to the state. The state space has cube root of n-factorial or more states.

29

30 Another Search Problem formulation 3.3 from text. In traveling from one Romanian city to another, let us say two friends have to get together, and at each stop, we have to wait till the other friend gets to his next stop. Let D(I,j) be the straight-line distance between cities I and j. Refer to the text, 3.3 a,b, c,d

31

32 5.3 from textbook. Pursuit-evasion game.

33

34

35

36


Download ppt "CS460 Spring 2011 Review of Search. Overview Uninformed search Informed search Local search Adversarial search."

Similar presentations


Ads by Google