ch02-agents - maintain values between function calls, like...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Ch. 2 – Intelligent Agents Supplemental slides for CSE 327 Prof. Jeff Heflin
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Agent Environment sensors actuators ? Agent percepts actions rational agent: For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has.
Background image of page 2
function Table-Driven-Agent( percept ) returns an action persistent: percepts, a sequence, initially empty table , a table of actions, indexed by percept sequences append percept to the end of percepts action  Lookup( percepts , table ) return action From Figure 2.7, p. 47 Table Driven Agent
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
function Table-Driven-Agent ( percept ) returns an action persistent: percepts, a sequence, initially empty table , a table of actions, indexed by percept sequences append percept to the end of percepts action  Lookup( percepts , table ) return action From Figure 2.7, p. 47 Table Driven Agent function name input output type persistent variables:
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: maintain values between function calls, like instance variables in OO, but can only be referenced within the function assignment operation output value function call Rock, Scissors, Paper Table Driven Agent Percept Sequence Action <Start> Rock <Start, Win(Rock,Scissors)> Rock <Start, Lose(Rock,Paper)> Scissors <Start, Tie(Rock,Rock)> Paper <Start, Win(Rock,Scissors), Win (Rock,Scissors)> Rock <Start, Win(Rock,Scissors), Lose(Rock,Paper)> Scissors <Start, Win(Rock,Scissors), Tie(Rock,Rock)> Paper <Start, Lose(Rock,Paper), Win(Scissors,Paper)> Scissors <Start, Lose(Rock,Paper), Lose(Scissors,Rock)> Paper <Start, Lose(Rock,Paper), Tie(Scissors,Scissors)> Rock . Goal-Based Agent sensors actuators Agent Environment What the world is like now What action I should do now Goals State How the world evolves What my actions do What it will be like if I do action A From Fig. 2.13, p. 52...
View Full Document

This note was uploaded on 02/29/2012 for the course CSE 327 taught by Professor Heflin during the Spring '08 term at Lehigh University .

Page1 / 6

ch02-agents - maintain values between function calls, like...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online