A cleaning robot algorithm
Download
Report
Transcript A cleaning robot algorithm
A cleaning robot algorithm
Your homework
The robot assignment
Use programming constructs
conditional statements
data storage
subroutines
loops
Conditional statements
Example: check percepts
Data storage
Things worth remembering
Laundry pick-up count
Where you are
Subroutines
A group of actions that you’ll
perform more than once
Example:
Check percepts and act:
Loops
Conditionally repeat
a sequence of actions
How to start
Plan your strategy first!