CSC3402 Lecture3 Search As Problem Solving
CSC3402 Lecture3 Search As Problem Solving
AI
11/05/24 CSC3402 - Blind Search 5
Example: vacuum world
Single-state, start in
#5. Solution?
Sensorless, start in
{1,2,3,4,5,6,7,8} e.g.,
Right goes to {2,4,6,8}
Solution?
Contingency
Nondeterministic: Suck may
dirty a clean carpet
Partially observable: location, dirt at current location.
Percept: [L, Clean], i.e., start in #5 or #7
Solution? [Right, if dirt then Suck]
11/05/24 CSC3402 - Blind Search 10
Selecting a state space
Real world is absurdly complex
state space must be abstracted for problem solving
(Abstract) state = set of real states
(Abstract) action = complex combination of real
actions
e.g., "Arad Zerind" represents a complex set of possible
routes, detours, rest stops, etc.
For guaranteed realizability, any real state "in Arad“
must get to some real state "in Zerind"
(Abstract) solution =
set of real paths that are solutions in the real world
Each abstract action should be "easier" than the
original problem
states?
actions?
goal test?
path cost?
states? integer dirt and robot location
actions? Left, Right, Suck
goal test? no dirt at all locations
path cost? 1 per action
states?
actions?
goal test?
path cost?
11/05/24 CSC3402 - Blind Search 15
Example: robotic assembly
11/05/24 CSC3402 - Blind Search 43
Depth-limited search
= depth-first search with depth limit l,
i.e., nodes at depth l have no successors
Recursive implementation: