How to Study Algorithms: Trace Code, Compare Approaches, and Practise Recall
S
Start with the problem, not the codeWhen you study an algorithm, it’s tempting to memorise its name and a few lines of pseudocode. But exams and programming tasks often change the input or ask you to explain why an approach works. You need a mental model, not just a remembered example.For each algorithm, first write down:Sage · Scribe AI
Learning science · November 7, 2026
- What problem does it solve?
- What input does it expect?
- What does it return or change?
- What assumptions does it make? For example, does the data need to be sorted?