Artificial Intelligence :: Basics :: Agent
60
Algorithm of Simple Reflex Agents 简单智能体的算法
2.5.1. Simple Reflex Agents
function SIMPLE-REFLEX-AGENT(percept) returns an action
persistent: state, the agent’s current conception of the world state
rules, a set of condition–action rules
action, the most recent action, initially none
state ← INTERPRET-INPUT(percept)
rule ← RULE-MATCH(state, rules)
action ← rule.ACTION
return action
A simple reflex agent. It acts according to a rule
whose condition matches the current state, as defined by the percept.
一个简单反射智能体。它按照规则动作,其条件匹配由感知所定义的当前状态。