Last time: Problem-Solving Problem solving: Goal formulation - - PDF document

last time problem solving
SMART_READER_LITE
LIVE PREVIEW

Last time: Problem-Solving Problem solving: Goal formulation - - PDF document

Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation: Initial state ? ? ? ? 1 Last time: Problem-Solving Problem


slide-1
SLIDE 1

1

Last time: Problem-Solving

Problem solving:

Goal formulation Problem formulation (states, operators) Search for solution

Problem formulation:

Initial state ?

1

? ? ?

Last time: Problem-Solving

Problem types: Problem types:

single state: accessible and deterministic environment multiple state:

?

contingency:

?

exploration:

?

2

exploration:

?

slide-2
SLIDE 2

2

Last time: Finding a solution

Solution: is ??? Function General-Search(problem, strategy) returns a solution, or

failure initialize the search tree using the initial state problem

loop do if there are no candidates for expansion then return failure Basic idea: offline, systematic exploration of simulated state-space by generating successors of explored states (expanding)

3

if there are no candidates for expansion then return failure

choose a leaf node for expansion according to strategy

if the node contains a goal state then return the

corresponding solution

else expand the node and add resulting nodes to the search

tree

end

Last time: Finding a solution

Function General-Search(problem, strategy) returns a solution, or Function General Search(problem, strategy) returns a solution, or

failure initialize the search tree using the initial state problem

loop do if there are no candidates for expansion then return failure

choose a leaf node for expansion according to strategy

if the node contains a goal state then return the

di l ti

4

corresponding solution

else expand the node and add resulting nodes to the search

tree

end Strategy: The search strategy is determined by ???

slide-3
SLIDE 3

3

Last time: search strategies

Uninformed: Use only information available

in the problem formulation

B dth fi t

Breadth-first Uniform-cost Depth-first Depth-limited Iterative deepening

5

p g

Informed: Use heuristics to guide the search

Best first A*

Evaluation of search strategies

Search algorithms’ four criteria: Search algorithms four criteria:

Completeness: Time complexity: Space complexity: Optimality:

Complexity are measured in terms of:

6

Complexity are measured in terms of:

b – max branching factor of the search tree d – depth of the least-cost solution m – max depth of the search tree (may be infinity)

slide-4
SLIDE 4

4

Last time: uninformed search strategies

Uninformed search: Uninformed search:

Use only information available in the problem formulation

Breadth-first Uniform-cost

7

Uniform cost

Depth-first Depth-limited Iterative deepening

Comparing uninformed search strategies

Criterion Breadth Uniform DepthFirst DepthLim Iterative Bidirectional Time b^ d b^ d b^ m b^ l b^ d b^ (d/2) Space b^ d b^ d bm bl bd b^ (d/2) Optimal? Yes Yes No No Yes Yes

8

Complete? Yes Yes No Yes if l≥d Yes Yes

b – max branching factor of the search tree d – depth of the least-cost solution m – max depth of the state-space (may be infinity) l – depth cutoff

slide-5
SLIDE 5

5

This time: informed search

I nformed search: I nformed search:

Use heuristics to guide the search

Best first A* Heuristics

9

Heuristics Hill-climbing Simulated annealing

Best-first search

Idea: use an evaluation function for each

Idea: use an evaluation function for each node; estimate of “desirability”

Implementation:

QueueingFn = insert successors in decreasing

10

Q g

g

  • rder of desirability

Special cases:

greedy search A* search

slide-6
SLIDE 6

6

Romania with step costs in km

374

329 253

11

Greedy search

Estimation function:

Estimation function:

h(n) = estimate of cost from n to goal (heuristic)

For example:

12

slide-7
SLIDE 7

7

13 14

slide-8
SLIDE 8

8

15 16

slide-9
SLIDE 9

9

Properties of Greedy Search

Complete? Complete? Time?

S ?

17

Space? Optimal?

Properties of Greedy Search

Complete?

99 105

18

120

slide-10
SLIDE 10

10

Properties of Greedy Search

Complete? Complete? Time?

Space?

19

Space? Optimal?

A* search

Idea combine the ad antages of nifo m

Idea: combine the advantages of uniform

cost and greedy approach

20

slide-11
SLIDE 11

11

A* search

A* sea ch ses an admissible he istic

A* search uses an admissible heuristic,

21

Theorem: A* search is optimal

22

slide-12
SLIDE 12

12

23 24

slide-13
SLIDE 13

13

25 26

slide-14
SLIDE 14

14

27

Optimality of A* (standard proof)

G2 : suboptimal goal has been generated and is generated and is in the queue. n : an unexpanded node on a shortest path to an optimal l G

28

goal G1.

slide-15
SLIDE 15

15

Optimality of A* (more useful proof)

29

f-contours

How do the contours look like when h(n) =0?

30

slide-16
SLIDE 16

16

Properties of A*

Complete?

Complete? Time?

S ?

31

Space? Optimal?

Proof of lemma: pathmax

32

slide-17
SLIDE 17

17

Admissible heuristics

33

Relaxed Problem

How to determine an admissible heuristics? How to determine an admissible heuristics?

34

slide-18
SLIDE 18

18

Relaxed Problem

Example: Example:

35

Next time

Iterative improvement

Iterative improvement Hill climbing Simulated annealing

36