Intermediate · module I4
Problem Solving and Reasoning: Classical AI
By the end: Model a problem as search, solve it with the right algorithm, and represent and reason with knowledge in logic and probability
- Covers
- How AI agents search, play games, satisfy constraints, use logic, plan and reason under uncertainty, before and alongside machine learning
- Contents
- 5 chapters, 16 topics
- Time
- About 3 hours
- Level
- Intermediate
- Your progress
- 0 / 16
This module builds on Python Programming for AI. We suggest looking at it first, but the choice is yours.
Chapter 1 Intelligent Agents
- 1.110 min Activity
Agents and Environments
Agents, percepts, actions and the PEAS description
Interactive: describe a self-driving car with PEAS
- 1.28 minBeing written
Types of Agents
Reflex, model-based, goal-based, utility-based and learning agents
Card sort: which agent type?
Chapter 2 Search
- 2.110 minBeing written
Problem Formulation and State Space
States, actions, goals and path costs
Interactive: map a puzzle as states
- 2.215 min Activity
Uninformed Search
Breadth-first, depth-first and uniform-cost search
Interactive: race BFS and DFS through a maze
- 2.315 min Activity
Informed Search and A*
Heuristics, greedy best-first search and A*
Interactive: A* on a city map
f(n) = g(n) + h(n)
- 2.412 min Activity
Local Search and Optimisation
Hill climbing, simulated annealing and genetic algorithms
Interactive: climb to the highest peak
Chapter 3 Games and Constraints
- 3.115 min Activity
Adversarial Search: Minimax
How a program plays a two-player game
Interactive: play tic-tac-toe against minimax
- 3.210 minBeing written
Alpha-Beta Pruning
Skipping moves that cannot matter
Interactive: watch branches being pruned
- 3.312 min Activity
Constraint Satisfaction Problems
Variables, domains, constraints and backtracking
Interactive: solve a sudoku and a map colouring
Chapter 4 Knowledge and Logic
- 4.112 min Activity
Propositional Logic
Statements, connectives, truth tables and inference
Code: a truth-table checker
P ⇒ Q ≡ ¬P ∨ Q
- 4.212 minBeing written
First-Order Logic
Objects, relations and quantifiers
Exercise: translate English into logic
∀x Human(x) ⇒ Mortal(x)
- 4.312 min Activity
Knowledge Representation and Expert Systems
Rules, frames, semantic networks, ontologies and inference engines
Code: a small expert system
- 4.410 min Activity
Automated Planning
Actions, preconditions and effects, and finding a plan
Interactive: plan a robot's tasks
Chapter 5 Reasoning Under Uncertainty
- 5.112 min Activity
Probabilistic Reasoning
Using probability and Bayes' rule to make decisions
Code: a diagnosis helper
P(cause|effect) ∝ P(effect|cause)P(cause)
- 5.28 min Activity
- 5.315 minBeing written
Module Review and Assessment
Exercises and a scored quiz
Graded quiz