Artificial Intelligence & Neural Networks β Introduction to AI and Intelligent Agent, NEC licence examination syllabus (Nepal Engineering Council).
Types of Agents
The standard classification, and how to pick the cheapest one that works.
π Where this lives: the practical value of this classification is that it tells you when to stop. A great deal of engineering effort goes into building deliberative planning systems for problems a table of rules would have solved, and the reverse mistake β a reflex system deployed where the requirement genuinely needs foresight β produces something that cannot be fixed by tuning. Naming the type you need is how you avoid both. Search "choosing agent architecture reactive vs deliberative".
The five standard types
The classification follows the structures of the earlier topic,
with the learning agent as a fifth cutting across them.
1. SIMPLE REFLEX AGENTS
Act only on the CURRENT PERCEPT, via condition-action rules.
REQUIREMENT: a fully observable environment.
EXAMPLES: a thermostat Β· a vacuum that sucks when it senses
dirt Β· a mail rule that files by sender Β· an automatic door
COMPLEXITY: the rule table grows with the number of
distinguishable situations, so it is only viable when that
number is small.
FAILURE MODE: cannot act on anything it cannot currently
see, and loops in partially observable environments unless
randomised.
2. MODEL-BASED REFLEX AGENTS
Maintain INTERNAL STATE using a transition model and a
sensor model, then apply rules to the estimated state.
REQUIREMENT: knowledge of how the world changes.
EXAMPLES: a robot vacuum building a map Β· an object tracker Β·
a lane-change assistant that remembers the car alongside
WHAT IT BUYS: partial observability becomes workable.
WHAT IT COSTS: the state estimate can be WRONG, and a
confidently wrong state estimate is worse than admitted
ignorance.
3. GOAL-BASED AGENTS
Hold explicit goals and choose actions expected to achieve
them, typically by SEARCH or PLANNING.
EXAMPLES: a route planner Β· a puzzle solver Β· a warehouse
robot instructed to fetch an item
WHAT IT BUYS: FLEXIBILITY. The knowledge is explicit, so
changing the goal changes the behaviour without rewriting
rules.
WHAT IT COSTS: computation. Search is expensive, and a
dynamic environment may change before the plan finishes.
4. UTILITY-BASED AGENTS
Use a UTILITY FUNCTION to compare outcomes, choosing the
action with the highest EXPECTED UTILITY.
EXAMPLES: portfolio management Β· a taxi choosing between a
fast risky and a slow safe route Β· any scheduler balancing
cost against time
WHAT IT BUYS: it can express PREFERENCE and handle
CONFLICTING or UNCERTAIN goals, which goals alone cannot.
WHAT IT COSTS: someone must supply the utility numbers, and
those numbers are a value judgement rather than a fact.
5. LEARNING AGENTS
Any of the above, plus the four components from the
structure topic β learning element, performance element,
critic, problem generator.
EXAMPLES: a spam filter that adapts Β· a recommender Β· a game
player improving through self-play
WHAT IT BUYS: operation in unknown or changing environments,
and escape from hand-coding knowledge.
WHAT IT COSTS: behaviour changes over time, so it is harder
to validate and to certify.
THE PROGRESSION IS ONE OF CAPABILITY AGAINST COST, and each step
is justified only by a requirement the previous type cannot
express β which is the selection principle of this topic.
Choosing the type β a worked decision
FOUR PROBLEMS, and the cheapest type that actually works. The
reasoning is the examinable skill.
PROBLEM 1 β a room thermostat
Q: does the action depend on anything not currently sensed?
No β only on the current temperature and the setpoint.
Q: are there few distinguishable situations? Yes.
β SIMPLE REFLEX. Anything more is waste, and a thermostat that
planned would be worse, not better.
PROBLEM 2 β a robot vacuum in a house
Q: fully observable? NO β it cannot see the whole house, and
must know which rooms it has already cleaned.
Q: does it need to reach a described future state? Only
weakly ("everywhere clean"), and coverage can be achieved
by systematic sweeping rather than by planning.
β MODEL-BASED REFLEX with a map. Many commercial units are
exactly this, and adding goal-directed planning improves
efficiency rather than enabling anything new.
PROBLEM 3 β a delivery route planner
Q: does the right action depend on a desired future state?
YES β which turn is correct depends entirely on the
destination, and the destination is many steps away.
Q: do several plans reach the goal with meaningfully different
quality? If all that matters is arriving, GOAL-BASED
suffices. If fuel, time and driver hours must be traded
off, it does not.
β GOAL-BASED if the objective is single; UTILITY-BASED as soon
as the objectives conflict. Real logistics is the second
case, which is why real routing systems optimise a weighted
cost rather than searching for any valid route.
PROBLEM 4 β a spam filter
Q: fully observable? The message is fully visible, so a reflex
agent is conceivable β and early filters were exactly
hand-written rule sets.
Q: does the environment CHANGE IN RESPONSE TO THE AGENT? YES.
Spammers observe which messages get through and adapt.
β LEARNING AGENT, necessarily. This is the decisive
consideration and it is not about observability at all: the
environment is adversarial, so any fixed rule set decays.
A REFLEX AGENT WOULD BE CORRECT ON THE DAY IT SHIPPED AND
WRONG WITHIN A MONTH.
THE DECISION PROCEDURE, generalised:
1. Does the correct action depend only on the current
percept? β yes: SIMPLE REFLEX
2. Does it depend on things not currently observable?
β yes: add INTERNAL STATE
3. Does it depend on a desired future state several steps
away? β yes: GOAL-BASED, with search
4. Do outcomes differ in quality, conflict, or carry
uncertainty? β yes: UTILITY-BASED
5. Is the environment unknown, changing, or adversarial, or
is the knowledge infeasible to hand-code?
β yes: add LEARNING
ANSWER THEM IN ORDER AND STOP AT THE FIRST "no". The commonest
professional error is skipping straight to step 5 because
learning is fashionable, when step 1 would have answered the
requirement in an afternoon.
Other classifications, and hybrid architectures
CLASSIFICATIONS THAT CUT ACROSS THE FIVE TYPES, all of which
appear in exam questions:
BY MOBILITY
STATIC agents remain on one host; MOBILE agents migrate
across a network to where the data is. Mobile agents were
heavily researched in the 1990s and are now rare, largely
because the security problem β executing someone else's
code on your machine β proved harder than the benefit.
BY NUMBER
SINGLE-AGENT systems have one decision maker.
MULTI-AGENT systems have several, and then:
COOPERATIVE agents share a goal β the problem is
coordination and communication
COMPETITIVE agents have opposing goals β the problem is
game-theoretic, and this is what adversarial search in
ACtE0902 addresses
SELF-INTERESTED agents have their own goals which may
merely conflict β the problem is negotiation and
mechanism design
BY REASONING STYLE
REACTIVE architectures respond to percepts with no internal
symbolic model. Brooks's SUBSUMPTION ARCHITECTURE is the
landmark: layered behaviours, each a simple
stimulus-response rule, with higher layers able to
subsume lower ones. Brooks's claim β "intelligence
without representation" β was that complex behaviour
emerges from simple layered reactions, and his insect-like
robots walked over rough terrain that carefully planned
robots could not.
DELIBERATIVE architectures maintain an explicit symbolic
world model and reason about it, typically BDI (belief,
desire, intention).
HYBRID architectures combine them in LAYERS, which is what
practical systems use.
THE HYBRID ARGUMENT, and it is the resolution of the topic:
Reactive architectures are fast and robust and cannot plan.
Deliberative architectures plan and are too slow to react.
Neither alone is adequate for a robot in the physical world,
so real systems layer them:
ββββββββββββββββββββββββββββββββββββββββ
β DELIBERATIVE LAYER β seconds
β planning, goals, world model β
ββββββββββββββββββββββββββββββββββββββββ€
β EXECUTIVE / SEQUENCING LAYER β ~100 ms
β selects and monitors behaviours β
ββββββββββββββββββββββββββββββββββββββββ€
β REACTIVE LAYER β ~10 ms
β collision avoidance, balance β
ββββββββββββββββββββββββββββββββββββββββ
faster and simpler downward;
the lower layer may OVERRIDE the upper
THE TIMING ARGUMENT MAKES IT CONCRETE, and it is the same
calculation as the properties topic: with a 10 ms reactive
loop and a 2-second replan, 200 reactive cycles pass during
one deliberation. A single loop running at the deliberative
rate could not avoid an obstacle; a single loop running at
the reactive rate could not plan a route. THE LAYERS ARE NOT
an architectural preference but an arithmetic necessity.
AND THE OVERRIDE DIRECTION MATTERS: the reactive layer
overrides the planner, not the other way round. A plan that
says "go forward" must lose to a sensor that says "obstacle",
because the cost of being wrong is asymmetric.
The spam filter is the case that breaks the observability-based reasoning. A message is fully visible, so a reflex agent looks adequate β but the environment adapts in response to the agent, so any fixed rule set is correct on the day it ships and wrong within a month. Adversarial dynamics, not partial observability, is what forces learning there.
π Go further: Brooks's subsumption architecture is worth reading about directly, because it was a genuine attack on the field's assumptions. His 1991 paper "Intelligence Without Representation" argued that the symbolic world model β the thing deliberative AI treats as essential β was the bottleneck, and demonstrated insect-like robots that walked over rubble using layered reflexes and no map at all. The lasting lesson is not that representation is unnecessary but that the world itself can serve as its own model where sensing is cheap: you need not remember where the wall is if you can feel it. Search "Brooks intelligence without representation subsumption".
π‘ Exam angle: name and describe the five agent types with an example and the limitation of each β this enumeration plus examples is the standard question. Be ready to choose a type for a described problem and justify it, using the ordered procedure (current percept only β internal state β future goal β utility β learning). Know the cross-cutting classifications: static vs mobile, single vs multi-agent (cooperative, competitive, self-interested), and reactive vs deliberative vs hybrid. Mention Brooks's subsumption architecture for the reactive tradition, and explain why practical robots use layered hybrid architectures with the reactive layer overriding the planner.
Syllabus points
Simple reflex
Model-based
Goal-based
Utility-based
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Related topics in Introduction to AI and Intelligent Agent