COGS 105
Week 14b: AI and Robotics
How to AI
- Many robotics and engineering
problems work from a task- based perspective (see competing traditions from last class).
- What is your task? What are
the inputs and outputs to your agent?
- What are the rules that lead from
input to output?
Traditional Rule Concept
- In many respects, classic AI started
with the concept of a production rule.
- An if-then rule that determines
what the agent does if some condition holds.
- Production rules can be more
complicated by using pattern- matching (and pattern-generating) algorithms.
Simon & Newell, 50’s
Example if-then rule in JavaScript:
if (wus=="hi") { was = "hi back to ya"; }
== compares what user said (wus) to “hi” = sets what it says (was) to “hi back...”