An algorithm is a set of ordered steps that solves a problem. This mini-lesson covers computational thinking (decomposition & abstraction), flowcharts & pseudocode, linear & binary search, bubble & insertion sort, trace tables, and validation vs verification.
Work through each screen, answer the questions, and collect ⭐ stars. Press Start when ready.
Tap a statement, then tap the group it belongs to.
Algorithms can be written two ways:
Middle is index 3 = 18. 29 > 18, so search the right half [23, 29, 35].
Middle of that is 29 — found in just 2 comparisons.
Compare 5&3 → swap: [3,5,8,1]. Compare 5&8 → keep. Compare 8&1 → swap: [3,5,1,8].
After one pass: [3, 5, 1, 8] — the largest value (8) is now at the end.
A trace table records how the variables change as an algorithm runs, one row per step. It helps you find errors (dry run) and understand the logic.
total = 0
FOR count = 1 TO 4
total = total + count
NEXT count
Careful: validation checks if data is reasonable; verification checks it was entered correctly. A valid value can still be verified wrong (e.g. a real but mistyped date).
Tap a description on the left, then its matching term on the right.
Computational thinking: decomposition (break up) · abstraction (remove detail) · patterns
Design: flowcharts (symbols) & pseudocode
Search: linear (any list) · binary (sorted, halve each time)
Sort: bubble (swap adjacent pairs) · insertion (insert into sorted part)
Trace tables dry-run an algorithm to find errors
Validation (sensible data) vs verification (entered accurately)
You’ve covered the whole of Algorithm design and problem-solving. Press Finish to see your score.
You’ve worked through Algorithm design and problem-solving for Cambridge IGCSE Computer Science. 🎉
Your stars: 0 / 0
Next: test yourself in the Evaluate stage Confidence Quiz, then lock it in with Verify.