Problem Sloving Agents
Problem Sloving Agents
Problem Sloving Agents
Sensorless, start in
{1,2,3,4,5,6,7,8} e.g.,
Right goes to {2,4,6,8}
Solution?
•14 Jan 2004 CS 3243 - Blind Search 10
Example: vacuum world
• Sensorless, start in
{1,2,3,4,5,6,7,8} e.g.,
Right goes to {2,4,6,8}
Solution?
[Right,Suck,Left,Suck]
• 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?
• states?
• actions?
• goal test?
• path cost?
•
14 Jan 2004 CS 3243 - Blind Search 15
Vacuum world state space graph
• states?
• actions?
• goal test?
• path cost?
14 Jan 2004 CS 3243 - Blind Search 17
Example: The 8-puzzle
• Recursive implementation:
• For b = 10, d = 5,
• NDLS = 1 + 10 + 100 + 1,000 + 10,000 + 100,000 = 111,111
–
–
14 Jan 2004 NIDS = 6 + 50 + 400 + 3,000
CS+ 20,000
3243 + 100,000 = 123,456
- Blind Search 53
Properties of iterative deepening search
Complete? Yes
•
• Time? (d+1)b0 + d b1 + (d-1)b2 + … + bd = O(bd)
•
• Space? O(bd)
•
• Optimal? Yes, if step cost = 1
14 Jan 2004 CS 3243 - Blind Search 54
Summary of algorithms