Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/02 Algorithms and programming/Algorithms/The suitability of different algorithms…

The suitability of different algorithms for a given task and data set, in terms of execution time and space

The suitability of different algorithms for a given task and data set, in terms of execution time and space.

2.3.1 Algorithms

Practise exam questions

Algorithms — Note 2 of 6

Candidates need to understand that a task can have a range of solutions that differ in execution time and memory use. Candidates need to be able to compare algorithms against one or more data sets and judge which is more efficient in terms of speed and/or memory.

What you need to know

There is usually more than one algorithm for a task. The most suitable depends on the size and nature of the data and on whether execution time or memory use matters more.

What to know

  • The size of the data set matters: a simple O(n²) algorithm may be fine for 10 items but far too slow for 1,000,000.
  • The state of the data matters: insertion sort is very fast on nearly sorted data, and so is bubble sort if a swap flag stops it after a pass with no swaps; binary search needs sorted data.
  • Linear search can be the better choice: on a short list, when the target is likely to be near the front, or when the data is unsorted and sorting it first would cost more than it saves.
  • There is often a trade-off between time and space: merge sort is fast but needs extra memory; bubble and insertion sort need very little extra memory but are slower on large data.

Key terms

Time complexity

How the time taken by an algorithm grows as the size of the input grows.

Space complexity

How the amount of memory needed by an algorithm grows as the size of the input grows.

Exam technique

  • Tip:Justify your choice by referring to BOTH the algorithm's characteristics and the specific data set in the question.
  • Tip:If you are given Big O tables for algorithms that aren't named, compare them on best, average and worst-case time and on space for EACH data set, then recommend one for each. Check the values make sense: no sort's TIME can be better than O(n), because every item must be looked at at least once, and comparison sorts average O(n log n) at best.
  • Mistake:Saying bubble and insertion sort need O(n) space because there are n items. Space complexity counts EXTRA memory: they sort in place, so O(1); merge sort builds new lists, so O(n). When asked about space, don't describe time.

Past exam questions

  • June 2026Paper 2Q3(c)9marks
  • June 2025Paper 2Q2(a)9marks
  • June 2024Paper 2Q6(b)1mark
  • June 2023Paper 2Q7(a)9marks
  • June 2023Paper 2Q7(c)(ii)2marks
  • June 2022Paper 2Q3(d)12marks
  • November 2021Paper 2Q2(c)1mark
  • November 2020Paper 2Q4(c)9marks
  • June 2019Paper 2Q5(b)2marks
  • June 2017Paper 2Q1(c)9marks
  • June 2017Paper 2Q2(d)3marks

Ready to test yourself?

Practise 2.3.1 questions
← Previous noteAnalysis and design of algorithms for a given situation2.3.1 AlgorithmsNext note →Measures and methods to determine efficiency, Big O notation2.3.1 Algorithms

Back to Algorithms

Algorithms

Note 2 of 6

  1. 1Analysis and design of algorithms for a given situation
  2. 2The suitability of different algorithms for a given task and data set, in terms of execution time and space
  3. 3Measures and methods to determine efficiency, Big O notation
  4. 4Comparison of the complexity of algorithms
  5. 5Algorithms for stacks, queues, trees, linked lists, depth-first (post-order) and breadth-first traversal
  6. 6Standard algorithms: sorts, Dijkstra's shortest path, A*, binary search and linear search
Topic overview