50 likes | 59 Views
Learn about the ideal rational agent that always maximizes performance, given its percepts, and how Table-Driven Agents function using percept sequences. Explore the assignment operations and variables involved.
E N D
Ch. 2 – Intelligent Agents Supplemental slides for CSE 327 Prof. Jeff Heflin
Agent Agent ideal rational agent: an agent that always takes the action expected to maximize its performance measure, given the set of percepts (percept sequence) it has seen so far percepts sensors Environment ? actions actuators
Table Driven Agent function TABLE-DRIVEN-AGENT(percept)returns an action static: percepts, a sequence, initially emptytable, a table of actions, indexed by percept sequences append percept to the end of perceptsaction LOOKUP(percepts, table)returnaction From Figure 2.7, p. 45
Table Driven Agent function name input output type function TABLE-DRIVEN-AGENT(percept)returns an action static: percepts, a sequence, initially emptytable, a table of actions, indexed by percept sequences append percept to the end of perceptsaction LOOKUP(percepts, table)returnaction From Figure 2.7, p. 45 assignment operation function call output value static variables: maintain values between function calls, like instance variables in OO, but can only be referenced within the function