We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39
Chapter 4
Beyond Classical Search
Jane Hsu National Taiwan University
Acknowledgements: This presentation is created by Jane hsu based
on the lecture slides from The Artificial Intelligence: A Modern Approach by Russell & Norvig, a PowerPoint version by Min-Yen Kan, as well as various materials from the web. Outline p Local Search Algorithms n Hill climbing n Simulated annealing n Genetic algorithms p Local search in continuous spaces p Searching with nondeterministic actions p Searching with partial observations
Standard Search Problem p State space: the set of all states reachable from the initial state p State is a “black box” – any data structure that supports n successor function n heuristic function, and n goal test
Local Search Algorithms Jane Hsu National Taiwan University Iterative Improvement Algorithms p In many optimization problems, path is irrelevant; the goal state itself is the solution
p State space = set of "complete" configurations
n Find optimal configuration, e.g., TSP n Find configuration satisfying constraints, e.g., n-queens p In such cases, we can use iterative improvement, also called local search algorithms n keep a single "current" state, try to improve it n Constant space n Online or offline search
Local Beam Search p Keep track of (top) k states rather than just one n Start with k randomly generated states n At each iteration, all the successors of all k states are generated n If any one is a goal state, stop; else select the k best successors from the complete list and repeat. p Question: is it k searches run in parallel?
p Problem: all k states end up on same local hill
p Solution idea: choose k successors randomly, biased towards good ones.
Erratic Vacuum World p Action: Suck n When applied to a dirty square the action cleans the square and sometimes cleans up dirt in an adjacent square, too. n When applied to a clean square the action sometimes deposit dirt on the carpet.
Contingency Plan p [Suck, if State=5 then [Right, Suck] else []]
p Solutions for nondeterministic problems can
contain nested if-then-else statements. p Selection of actions based on contingencies arising during execution. p Exact prediction is impossible for many real- world problems. n People keep their eyes open while walking/driving
Slippery Vacuum World p Original vacuum world + n Movement actions sometimes fail, leaving the agent in the same location. n There is no way to move reliably. p All solutions for this problem are cyclic plans
Incremental Belief-State Search p Build up the solution one physical state at a time. p First find a solution that works for state 1 p Then check if it works for state 2. p If not, go back and find an alternative solution for state 1. p And so on. p Similar to AND-OR search