Agents
Classical methods alongside modern learning, and the limits of both
Computer Science | Undergraduate (Level 6) | December 2026
WHAT IS INSIDE
1. Agents and search
2. Adversarial search and constraint satisfaction
3. Knowledge, logic and uncertainty
4. Learning, reinforcement and ethics
Exam question patterns
Glossary of exam-ready definitions
1. Agents and search
An agent perceives an environment and acts to maximise expected performance. Environments are
described by observability, determinism, episodicity, static or dynamic, discrete or continuous
and the number of agents; the description determines which technique is appropriate. Rationality is
about the best expected outcome given the information available, not omniscience.
Uninformed search - breadth-first, depth-first, uniform cost - is characterised by completeness,
optimality, time and space complexity. Informed search adds a heuristic: greedy best-first is fast
but not optimal, A* is optimal if the heuristic is admissible and, for graph search, consistent. The
effective branching factor measures how much a good heuristic buys.
• PEAS - performance, environment, actuators, sensors; the standard specification.
• Admissibility - h never overestimates the true cost.
• Consistency - h satisfies the triangle inequality; sufficient for graph search optimality.
• Space - often the binding constraint; breadth-first is exponential in memory.
2. Adversarial search and constraint satisfaction
Minimax computes optimal play in a two-player zero-sum game; alpha-beta pruning returns the
same value while cutting the tree, with the best move ordering pruning most. Evaluation functions
replace terminal utilities at a depth limit, and iterative deepening manages the time budget.
Expectiminimax extends the model to chance nodes.
Constraint satisfaction problems are solved by backtracking search with forward checking, arc
consistency (AC-3) and variable ordering heuristics (minimum remaining values, degree, least
constraining value). Local search methods - hill climbing, simulated annealing, genetic algorithms -
trade completeness for scalability and can stall on plateaus and local optima.
• Alpha-beta - same result as minimax; ordering determines the saving.
• CSP - state the variables, domains and constraints explicitly.
• AC-3 - prune domains before search; examinable as a procedure.
• Local search - no guarantee; note the failure modes.
Artificial Intelligence: Search, Knowledge and Learning Agen Page 1 of 3