Single lesson · Written for AQA GCSE Computer Science (8525)

Trace tables and the purpose of an algorithm – AQA GCSE Computer Science lesson (8525)

Pupils learn to complete trace tables for algorithms in AQA pseudo-code, flowcharts and the class's language, and state an algorithm's purpose.

Also in a bundle Compression, Networks and Searching – AQA GCSE Computer Science lessons (8525) 11 lessons for £39 · save 11% on buying separately

Lesson 2 of 11 in unit 10.5 Compression, Networks and Searching, taught in Year 10, Summer 1. It answers one big question: How can we work out what an algorithm does without running it?

By the end, pupils can complete trace tables for algorithms in AQA pseudo-code, flowcharts and the class's language, and state an algorithm's purpose.

The Build (the main task)
Complete the trace table for the algorithm when the user enters 4072. (4 marks) State the purpose of the algorithm. (1 mark)
Support version
A trace table with the first two rows filled and the steps of each pass written out.
Challenge
Complete a trace table for the Build's algorithm when the user enters 30915. Use the columns num, count and Output. (4 marks) Explain what the Build's algorithm outputs when the user enters 0, and why this output is wrong for the algorithm's purpose. (4 marks) Another of the library's programs is shown below in the class's language. Complete a trace table (num, total, Output) for the input 2468, then state the program's purpose. (5 marks)
Real-world link
Working out what the library's overdue-fine algorithm does before changing it.
Key words
Trace table, Purpose and Track, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A trace table records only the final values”; “Output strings are written with quotation marks in a trace table”.
AQA 8525 specification
3.1.1 (representing algorithms: trace tables and the purpose of algorithms).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils can do it all on paper.

Also sold in the Compression, Networks and Searching unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

Choose your school's Paper 1 language when you buy: C#, Python or VB.NET. You get that language's files: every program, code example, worked answer and programming task is written in it, and lessons with no code are the same in all three. Algorithms are also shown in AQA pseudo-code, as in the exam.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes
  • Your choice of Paper 1 language: C#, Python or VB.NET

More for GCSE Computer Science (AQA)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.