Informed Search Strategies - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Informed Search Strategies

Description:

Yes, if enough memory Iterative improvement Optimisation problems path is a solution, improve the cost e.g Travelling salesman, find shortest path n-queens, ... – PowerPoint PPT presentation

Number of Views:151
Avg rating:3.0/5.0
Slides: 22
Provided by: chme3
Category:

less

Transcript and Presenter's Notes

Title: Informed Search Strategies


1
Informed Search Strategies
Modified 07/08/02
2
Outline
  • Best-First
  • A
  • Heuristics
  • Hill-climbing
  • Simulated Annealing

3
Best-First
  • Evaluation function
  • estimate of desirability
  • Expand most desirable unexpanded node
  • QUEUINGFN inserts successors in decreasing order
    of desirability

4
Example Tourist
5
Heuristic
  • Heuristic evaluation function h(n)
  • e.g. hSLD (n) straight line distance from n to
    Bucharest

6
Example
7
Properties of Best-first
  • Complete ?
  • Can get stuck in loops
  • Complete in finite space with repeat checking
  • Time ?
  • O(bm), but good heuristic improves performance
  • Space ?
  • O(bm), keeps all nodes in memory
  • Optimal ? - No

8
A
  • Evaluation function
  • f(n) g(n) h(n)
  • g(n)- cost so far to reach n
  • h(n)- estimated cost to goal from n
  • f(n)- estimated cost of path through n to goal

9
A cont.
  • admissible heuristic
  • h(n) lt h(n), where h(n) is true cost from n
  • hSLD (n) never over estimates the actual road
    distance

10
Example
11
Optimality of A
  • Assuming we have a suboptimal goal state G2
  • a node n on the path of optimal goal G1
  • f(G2 ) g( G2 ), since h( G2 ) 0
  • gt g ( G1 ) since G2 is suboptimal
  • gt f(n) since h is admissible
  • Since f(G2 ) gt f(n) n will be selected before G2

12
Properties of A
  • Complete ?
  • Yes unless infinite nodes with f lt f(G)
  • Time ?
  • Exponential in relative error in h length of
    solution
  • Space ?
  • Keeps all nodes in memory
  • Optimal ?
  • Yes

13
Admissible Heuristics
  • exact solution costs of relaxed problems
  • e.g. 8s puzzle
  • number of tiles out of place
  • manhattan distance

14
Dominance
  • If h2(n) gt h1(n) for all n
  • then h2 dominates h1 and is better for search

15
Memory Bounded Search
  • Iterative deepening A
  • extension of IDS
  • uses an f-cost limit not a depth limit
  • Expands nodes of cost less than current f-cost

16
Properties of IDA
  • Complete ?
  • Yes
  • Time ?
  • Depends on number of f-cost values
  • Space ?
  • Depth first, so store longest path, bm
  • Optimal ?
  • Yes

17
Simplified Memory bound A
  • SMA
  • uses available memory
  • avoids repeated expansions
  • drops node with high f-cost
  • remembers f-cost values of dropped subtrees

18
Properties of SMA
  • Complete ?
  • Yes, if enough memory
  • Time ?
  • Depends on problem space
  • Space ?
  • Up to size of memory
  • Optimal ?
  • Yes, if enough memory

19
Iterative improvement
  • Optimisation problems
  • path is a solution, improve the cost
  • e.g
  • Travelling salesman, find shortest path
  • n-queens, find configuration satisfying
    constraints
  • iterative improvement
  • single state, constant space requirements

20
Hill-climbing
21
Simulated Annealing
  • The probability of changing to a lower state
    depends on a temperature value
  • p(x) alpha exp( deltaE(x) / kT)
  • As T decreases, the probability of changing to a
    lower energy state goes to zero
  • Can escape from local minima and find optimal
    state
Write a Comment
User Comments (0)
About PowerShow.com