In simple terms
A friendly intro before the formal notes — no formulas yet.
AI: The Smart Recipe Book
Algorithms are like recipes that computers follow to complete tasks. Artificial intelligence is like a chef who can not only follow recipes but also learn from experience (data) to create new and better dishes on their own.
Imagine you have a recipe for a cake. An algorithm is that exact, step-by-step recipe. Anyone following it precisely will produce the same cake. Now, imagine a master chef. They don't just follow recipes; they understand the principles of baking. They can taste a cake (analyse data), learn what works, and invent a new, delicious cake recipe. That's like AI—it learns from data to create its own instructions.
- 1
Define the Goal: First, determine the task the algorithm or AI needs to accomplish, such as identifying spam emails or recommending a film.
- 2
Gather the Data: The system collects relevant data, which acts as its ingredients and experience. This could be millions of emails (labelled as spam or not) or a user's viewing history.
- 3
Process and Learn: The algorithm processes the data to find patterns. A machine learning model is 'trained' on this data, learning the characteristics of spam or the user's taste in films.
- 4
Produce an Output and Refine: The system produces a result, like moving an email to the spam folder or suggesting a film. It then learns from the outcome (e.g., if you move an email out of spam) to improve its future performance.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Full topic notes
Formal explanation with the rigour you need for the exam.
Deconstructing Algorithms
At its core, an algorithm is simply a set of step-by-step instructions for solving a problem or accomplishing a task. While we often associate them with complex computer code, we use algorithms in daily life, such as following a recipe or assembly instructions. In digital systems, algorithms are the fundamental building blocks that process data and automate decisions, determining everything from search engine results to the price of an airline ticket.
Finite: An algorithm must eventually terminate after a finite number of steps.
Well-defined: Each step must be precisely defined and unambiguous.
Input and Output: An algorithm takes zero or more inputs and produces at least one output.
Effective: The instructions must be basic enough to be carried out in practice.
From Instructions to Intelligence: AI and Machine Learning
Artificial Intelligence (AI) is a broad field of computer science focused on creating systems that can perform tasks requiring human intelligence. Machine Learning (ML) is a powerful subset of AI that gives computers the ability to learn from data without being explicitly programmed. Instead of writing step-by-step rules, developers 'train' a model on a vast dataset, and the model learns the patterns itself. Deep Learning, a further subset of ML, uses complex structures called neural networks to achieve even more impressive feats, especially in areas like image and speech recognition.
AI (Artificial Intelligence): The broad concept of machines being able to carry out tasks in a way that we would consider 'smart'.
ML (Machine Learning): An approach to AI where a program learns from data. The more data it gets, the better it becomes.
Deep Learning: A specific type of ML that uses multi-layered 'deep' neural networks, inspired by the human brain's structure.
Relationship: Think of them as Russian dolls: Deep Learning is inside ML, which is inside AI.
The Societal and Ethical Dimensions
The rapid integration of AI and algorithms into society brings enormous benefits but also significant challenges. These systems are not inherently neutral; they reflect the data they are trained on and the values of their creators. This can lead to serious ethical issues, including the amplification of bias, threats to privacy, and questions of accountability when things go wrong.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A new music streaming service wants to create a simple algorithm to generate a 'Discovery' playlist for a user. The goal is to recommend songs the user might like but hasn't heard. Using the concepts of algorithms, outline a three-step process the service could use. For each step, identify one piece of data it would need.
- 1
Step 1: Analyse User's Listening Profile. The algorithm first needs to understand the user's taste. It would analyse the genres, artists, and audio features (e.g., tempo, energy) of songs the user frequently listens to or has explicitly 'liked'.
A city council implements an AI-powered system to assess applications for social housing. The system is trained on historical data from the last 20 years of human-led decisions. After a year, an audit reveals that the system disproportionately rejects applications from single-parent households and recent immigrants. Identify and explain two distinct ethical issues present in this scenario.
- 1
Ethical Issue 1: Algorithmic Bias and Discrimination. The AI has likely learned and automated biases present in the historical training data. If human assessors in the past were biased (consciously or unconsciously) against single-parent households or immigrants, the AI would codify these patterns as valid decision-making criteria. This results in a discriminatory system that reinforces existing social inequalities, allocating housing based on flawed historical patterns rather than current, objective need. The system is not 'fair' because its core logic is built on a biased foundation.
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
Algorithm
A finite sequence of well-defined, computer-implementable instructions to solve a class of problems or to perform a computation. Think of it as a recipe for a computer.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Finite: An algorithm must eventually terminate after a finite number of steps.
- ✓
Well-defined: Each step must be precisely defined and unambiguous.
- ✓
Input and Output: An algorithm takes zero or more inputs and produces at least one output.
- ✓
Effective: The instructions must be basic enough to be carried out in practice.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Test your knowledge on Algorithms and AI
Test your knowledge on Algorithms and AI
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Test your knowledge on Algorithms and AI on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.