TABLE-DRIVEN-AGENT

June 11, 2016 · View on GitHub

AIMA3e

function TABLE-DRIVEN-AGENT(percept) returns an action
persistent: percepts, a sequence, initially empty
      table, a table of actions, indexed by percept sequences, initially fully specified

 append percept to the end of percepts
action ← LOOKUP(percepts, table)
return action


Figure ?? The TABLE-DRIVEN-AGENT program is invoked for each new percept and returns an action each time. It retains the complete percept sequence in memory.