Artificial Intelligence A Modern Approach (3rd Edition): Figure 2.7, page 47.
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 end of percepts action <- LOOKUP(percepts, table) return action
Figure 2.7 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.
@author Ciaran O'Reilly
@author Mike Stampone