What is AI?
Rules vs Learning
Discover the fundamental shift between telling a computer exactly what to do and letting it figure things out for itself - and why that difference underpins everything in modern AI.
In 1997, a computer called Deep Blue beat world chess champion Garry Kasparov.
The world called it artificial intelligence. But Deep Blue wasn't intelligent -
its programmers had written millions of rules: "if the opponent plays this, respond with that."
It won by calculating more moves per second than any human could, not by understanding the game.
Twenty years later, a program called AlphaZero beat the best chess engine in the world
after learning the game entirely from scratch - with no rules given to it at all.
It played against itself for four hours, discovered strategies that no human had ever tried,
and then destroyed every expert system ever built.
- DeepMind, 2017. AlphaZero was given only the legal moves - it worked out everything else alone.
Two completely different ideas
Before we can understand AI, we need to understand what computers normally do - and why that's fundamentally different from what AI does.
In traditional programming, a human writes every single rule. The program does exactly what the programmer tells it - nothing more, nothing less. It's deterministic: the same input always gives the same output, and the programmer has anticipated every situation in advance. If something unexpected happens, the program fails.
In machine learning - the main branch of AI - you don't write the rules at all. Instead, you give the computer thousands of labelled examples and let it find the patterns itself. The rules emerge from the data. The programmer never writes them explicitly. The model can then make reasonable decisions on situations it has never seen before.
This sounds simple but it's a genuinely radical idea. For most of computing history, the assumption was that you had to tell a computer exactly what to do. Machine learning breaks that assumption entirely.
A human defines every rule. The computer executes instructions precisely.
- Programmer writes explicit rules as code
- Rules + input data go in
- Output comes out
- Can only handle situations the programmer anticipated
- Transparent - you can read every rule
The computer finds its own rules from examples. No rules are written explicitly.
- Labelled training data goes in
- Computer finds patterns automatically
- A trained model comes out
- Can generalise to new, unseen situations
- Often opaque - even the creators don't know every rule it learned
How does a machine actually learn?
"Learning from data" sounds abstract. Here's what it actually means in practice - broken into four stages that every machine learning system goes through.
The key step is in the middle. When the model makes a wrong prediction, it adjusts its internal settings - called parameters or weights - to be slightly less wrong next time. This process happens automatically, millions of times, until the model is accurate enough.
No programmer decides what the model learns. The patterns emerge entirely from the data itself. This is why the quality and quantity of training data is everything in AI - the model can only learn what the data contains.
A spam filter - step by step
Let's trace through how a real machine learning system - a spam filter - is built. This is not simplified. This is genuinely how it works.
[LEGIT] "Hi Sarah, meeting moved to 3pm tomorrow - see you then."
[SPAM] "FREE iPhone 15 - limited time offer - act fast"
[LEGIT] "Your order #4821 has been dispatched and will arrive Friday."
Sort it out
Now apply what you've learned. Drag each system into the correct category.
Some of these will surprise you. Think carefully - the key question is: were the rules written by a programmer, or did the system learn them from data?
Questions worth sitting with
These don't have single right answers. Think them through - then reveal a suggested response.
What training data would you need?
Building an ML system starts with data. For each scenario below, choose the most appropriate training dataset.
What to remember
Explore further
Wikipedia makes an excellent starting point for established computing concepts. For any specific fact or claim, scroll to the References section at the bottom of the article and go to the primary source directly.
Choose at least two of these. They're all free, and they'll each deepen your understanding from a different angle.
Check your understanding
Exam-style practice
Practice what you've learned
Three printable worksheets covering rules-based systems and machine learning at three levels: Recall, Apply, and Exam-style.