Algorithms appear on both papers. You need to be able to trace them, identify them from pseudocode, explain how they work, and compare their efficiency. These questions are predictable โ preparation pays off.
Trace a bubble sort through 3 passes. Explain why binary search is faster than linear search for large lists. Write pseudocode for a linear search. These are real exam question types โ all covered here.
Read through each algorithm, trace the example, then practise with your own data. Use the cheat sheet as a reference during revision โ not as a substitute for understanding.
The most commonly examined comparison in GCSE Computer Science.
The most commonly examined comparison in OCR GCSE CS.
The simplest sorting algorithm and the most commonly examined. Easy to trace but inefficient for large lists.
Pass 1: [3,5,8,1] โ [3,5,8,1] โ [3,5,1,8] 8 is now sorted
Pass 2: [3,5,1,8] โ [3,1,5,8] 5,8 sorted
Pass 3: [1,3,5,8] No swaps โ sorted
More efficient than bubble sort for large lists. Uses a divide and conquer approach. Harder to trace but appears in higher-grade questions.
Bubble sort: O(nยฒ) โ doubles in steps each time the list doubles. Merge sort: O(n log n) โ much more efficient for large datasets. Examiners ask you to explain this difference.
The simplest search algorithm. Works on any list โ sorted or unsorted. Slow for large lists.
FOR i = 0 TO LENGTH(list) - 1
IF list[i] = target THEN
RETURN i // found at position i
ENDIF
NEXT
RETURN -1 // not foundMuch faster than linear search โ but only works on a sorted list. Cuts the search space in half on every step.
Linear search: use when the list is unsorted, or the list is very small. Binary search: use when the list is sorted โ much faster for large datasets.
Algorithm questions are predictable and markable โ with the right method. Miss ICT sessions use worked examples to make every algorithm type feel manageable.
Merge sort is more efficient for large lists. Bubble sort is simpler to understand and trace. OCR asks you to explain the difference โ merge sort is O(n log n), bubble sort is O(nยฒ).
You need to be able to write pseudocode for linear and binary search and trace bubble sort. OCR provides their pseudocode reference โ use it in your revision.
No. Binary search only works correctly on a sorted list. This is a common trick question.
Detailed walkthrough of all algorithm types with trace examples.
Data representation โ the other main theory topic alongside algorithms.
Variables, loops, and the logic behind pseudocode.
Apply your algorithm knowledge to real exam-style questions.