Professional Documents
Culture Documents
Solving Problems by Searching: Chapter 2-3
Solving Problems by Searching: Chapter 2-3
SEARCHING
Chapter 2-3
Lecture Outline
Agents
Problem-solving agents
Problem types
Problem formulation
Example problems
Basic search algorithms
Assignment Description
Agents
Sensors:
Actuators
Robotic agent:
Sensors:
Actuators
Human agent:
December 21, 201
6
[f: P* A]
The agent program runs on the physical
architecture to produce f
agent = architecture + program
December 21, 201
6
Example:
Vacuum-cleaner
world
Percepts:
Actions:
Environment types
Environment types
Problem-solving agents
Example: Romania
Formulate problem:
be in Bucharest
states: various cities
actions: drive between cities
Find solution:
Single-state problem
formulation
A problem is defined by four items:
1.
initial state e.g., "at Arad
2.
3.
4.
A solution is a sequence of actions leading from the initial state to a goal state
December 21, 201
6
10
(Abstract) solution =
11
states?
actions?
goal test?
path cost?
12
13
states?
actions?
goal test?
path cost?
14
15
Basic idea:
16
17
18
19
20
21
Search strategies
22
Uninformed search
strategies
Breadth-first search
Depth-first search
Uniform-cost search
Depth-limited search
Iterative deepening search
23
Breadth-first search
24
Breadth-first search
25
Breadth-first search
26
Breadth-first search
27
Properties of breadth-first
search
28
Depth-first search
29
Depth-first search
30
Depth-first search
31
Depth-first search
32
Depth-first search
33
Depth-first search
34
Depth-first search
35
Depth-first search
36
Depth-first search
37
Depth-first search
38
Depth-first search
39
Depth-first search
40
Properties of depth-first
search
Complete? No:
41
Depth-limited search
Depth-first search with depth limit L
i.e., nodes at depth L have no successors
Recursive implementation:
42
43
44
45
46
47
48
Complete?
Time?
Space?
Yes
O(bd)
Optimal?
49
Uniform-cost search
Implementation:
50
Uniform-cost search
Complete?
Time?
Space?
Optimal?
51
Summary of algorithms
52
Repeated states
53
Graph search
54
Summary
55