How algorithms choose what you see: a Year 8 lesson
Pupils rank eight invented posts with four simple rules. They compare the results and see how the rule, not the post, decides what comes first.
Pupils will be able to
- Rank a set of posts by following a rule exactly
- Compare the results of different ranking rules
- Explain how a paid post can reach the top of a feed
- Explain how a rule based on past clicks can narrow what someone sees
You will need
- One set of eight post cards for each pair, printed from the table in this lesson (all invented)
- Four blank ranking sheets for each pair, with the numbers 1 to 8 down the side, and one blank table with a row for each rule and three columns for the top three
- Pens and a board or screen to show the four rules
The lesson at a glance
60 minutes in 6 steps. Each step is written out in full below.
Step 1 · minute 0 to 5
Starter
5 minutes
Step 2 · minute 5 to 15
Model one rule
10 minutes
Step 3 · minute 15 to 30
Rank with Rules 2 and 3
15 minutes
Step 4 · minute 30 to 40
Rank with Rule 4
10 minutes
Step 5 · minute 40 to 55
Compare and discuss
15 minutes
Step 6 · minute 55 to 60
Plenary
5 minutes
A feed is a list, and a list needs an order. This lesson shows Year 8 that a rule decides that order, and that changing the rule changes what people see first.
What pupils learn
Pupils follow four ranking rules on the same eight posts. They see that each rule gives a different order, and they compare the rules. This supports the national curriculum aim of comparing algorithms for the same problem. It also supports the Education for a Connected World outcome on how rankings are returned and influenced.
The four rules are simplified to show the idea. They are not how any real service works. Every post and person in the lesson is invented.
Before the lesson
Print one set of the eight cards for each pair.
Swipe the table sideways to see every column →
| Card | Post | Topic | Likes | Age of post (minutes) | Paid for |
|---|---|---|---|---|---|
| 1 | Late goal wins the match | football | 120 | 300 | no |
| 2 | Ten minute pasta | cooking | 45 | 20 | no |
| 3 | Gadget sale | shopping | 5 | 60 | yes |
| 4 | Transfer rumour | football | 80 | 10 | no |
| 5 | New photos of the moon | science | 200 | 1,000 | no |
| 6 | New album out today | music | 150 | 120 | no |
| 7 | Easy cake recipe | cooking | 30 | 5 | no |
| 8 | Cat learns a trick | pets | 95 | 45 | no |
Write the four rules on the board:
- Rule 1Most likes first.
- Rule 2Newest first, meaning the fewest minutes old.
- Rule 3Paid posts first, then most likes.
- Rule 4Topics in the order of Kit's clicks: football first, then cooking, then all other topics. Inside each group, most likes first. Kit is an invented viewer who clicked 3 football posts and 1 cooking post.
The lesson, step by step
The timings add up to 60 minutes
- Starter, 5 minutes. Ask: "Who decides the order of what you see on a list of videos or posts?" Collect ideas. Say that a rule decides, and that a rule is an algorithm.
- Model one rule, 10 minutes. Do Rule 1 together on the board. Write the order and say the rule aloud as you place each card. Pairs copy it onto their first sheet.
- Rank with Rules 2 and 3, 15 minutes. Pairs rank the cards on their own sheets. Ask them to underline the top three each time.
- Rank with Rule 4, 10 minutes. Explain who Kit is. Pairs rank the cards and compare the top three with Rule 1.
- Compare and discuss, 15 minutes. Pairs fill in a table with the top three for each rule. Use the questions below to discuss what changed and why it matters.
- Plenary, 5 minutes. Each pair writes one sentence that starts "The rule matters because".
Following along on your device? Tap a step’s number to tick it off.
Answers
Check pupils' orders against these. The card numbers are listed first to last.
Swipe the table sideways to see every column →
| Rule | Order |
|---|---|
| Rule 1 | 5, 6, 1, 8, 4, 2, 7, 3 |
| Rule 2 | 7, 4, 2, 8, 3, 6, 1, 5 |
| Rule 3 | 3, 5, 6, 1, 8, 4, 2, 7 |
| Rule 4 | 1, 4, 2, 7, 5, 6, 8, 3 |
Card 5 is first under Rule 1 and last under Rule 2. The paid post, card 3, is last under Rule 1 but first under Rule 3. Under Rule 4, Kit sees both football posts at the top, although card 5 has the most likes.
Teacher notes
Ranking by a rule is sorting by a key, like the sorting algorithms pupils already know. The point is that no ranking is neutral. Each rule decides what matters: popularity, newness, payment or past clicks. A post is not at the top because it is the best. It is at the top because it fits the rule.
Rule 3 shows how a company can pay for attention. Explain that paid posts are usually labelled, so pupils should look for a label such as "sponsored".
Rule 4 shows how an echo chamber can form. If a viewer only clicks football, football gets more space. That gives less chance to see other things, which makes the viewer click football again. Stress that Kit has done nothing wrong, because the rule does this on its own. This is the idea behind an echo chamber, which pupils meet in more depth later.
Keep the discussion on the invented cards. Do not name real services, and do not ask pupils what they watch.
Likes are not a measure of whether a post is true. Ask pupils how else they could check a post.
Adapting the lesson
For pupils who need support, use only Rules 1 and 2 and give them the cards already cut out. Work as a whole class for Rule 3.
For pupils ready for more, ask them to invent a Rule 5 and predict the order before they rank. They can also ask which rule they would choose if they ran a feed, and why.
What to look for
A pupil working at the expected level can rank the cards correctly by following the rule exactly. They can say that a different rule gives a different order. They can explain that a paid post can reach the top because of the rule. They can also explain that Rule 4 shows more of what Kit has already clicked.
Check your understanding
Have a go first, then open each answer to check.
1.Which card is first under Rule 1, and which is last?
Show the answer
Card 5 is first with 200 likes. Card 3 is last with 5 likes.
2.Which card is first under Rule 2, and why?
Show the answer
Card 7, because it is only 5 minutes old, the newest of all.
3.Why is card 3 first under Rule 3 but last under Rule 1?
Show the answer
Rule 3 puts paid posts first. Card 3 is the only paid post. Under Rule 1 it has the fewest likes.
4.Which two cards come first under Rule 4, and why?
Show the answer
Cards 1 and 4, the two football posts. Kit clicked football three times, more than any other topic, and card 1 has more likes than card 4.
5.How can Rule 4 make an echo chamber?
Show the answer
Football is shown first, so Kit is more likely to click football again. Each click makes football even more likely to be shown first, and other topics get less space.
6.Does a post at the top of a feed have to be the best post? Explain.
Show the answer
No. It is at the top because it fits the rule, such as having the most likes, being new, or being paid for.
Play and check
Your answers and score stay on this page. Nothing is saved or sent.
Key word match-up
Match each key word to its meaning.
Who can help?
If something online makes you feel worried, upset or unsure, you are not in trouble. Tell a grown-up you trust: a parent or carer, a teacher, or another adult at school.
If you would rather talk to someone else, these services are there for children and young people:
- Childline
0800 1111
Talk to someone about anything that is worrying you, online or offline. It is free, and you do not have to give your name.
- CEOP Safety Centre
Tell the police's child protection team if you are worried about the way someone has been talking to you online.
If you or someone else is in danger right now, call 999.
Key words
- Algorithm
- A set of steps or rules that a computer follows to do a job.
- Ranking
- Putting items in order, from the one shown first to the one shown last.
- Feed
- A list of posts or videos that a service shows to someone, one after another.
- Sponsored
- Paid for by a company so that more people see it.
- Echo chamber
- A place where someone mostly sees ideas that match what they already looked at.
Sources
The curriculum statements and specification points on this page come from these documents, read on 3 December 2026. Specifications are updated from time to time, so check your exam board's current version.
- National curriculum in England: computing programmes of study, Published 11 September 2013 (Department for Education)
- Education for a Connected World, 2020 edition (UK Council for Internet Safety)
Spotted something wrong or out of date? Tell us and we will correct it.