cs4811 ch03 Search A Uninformed
cs4811 ch03 Search A Uninformed
Nilufer Onder
Department of Computer Science
Michigan Technological University
Outline
Problem-solving agents
Problem formulation
I Static: The world does not change unless the agent changes
it.
I Observable: Every aspect of the world state can be seen.
I Discrete: Has distinct states as opposed to continuously
flowing time.
I Deterministic: There is no element of chance.
This is a restricted form of a general agent called offline problem
solving. The solution is executed “eyes closed.”
Online problem solving involves acting without complete knowledge
Example: Traveling in Romania
Basic idea:
offline, simulated exploration of state space
by generating successors of the states that haven’t been explored
(a.k.a. expanding states)
Tree search algorithms (cont’d)
Basic idea:
similar to tree-search
keep a separate list of “explored” states
Graph search algorithms (cont’d)
Note: A → shows the lines that are added to the tree search algorithm.
Evaluating search strategies
I Complete: Yes
I Time: db 1 + (d − 1)b 2 + . . . + b d = O(b d )
I Space: O(bd)
I Optimal: Yes, if step cost = 1
Can be modified to explore uniform-cost tree
Iterative deepening search
function Iterative-Deepening-Search(problem)
returns a solution, or failure
for depth ← 0 to ∞ do
result ← Depth-Limited-Search (problem, depth)
if result 6= cutoff then return result
Compare IDS and BFS
IDS does better because other nodes at depth d are not expanded.
BFS can be modified to apply the goal test when a node is
generated (rather than expanded).
Summary of algorithms