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/Measures and methods to determine efficiency…

Measures and methods to determine efficiency, Big O notation

Measures and methods to determine the efficiency of different algorithms, Big O notation (constant, linear, polynomial, exponential and logarithmic complexity).

2.3.1 Algorithms

Practise exam questions

Algorithms — Note 3 of 6

Candidates need to understand how the efficiency of an algorithm is measured using Big O notation, including constant, linear, polynomial, exponential and logarithmic complexity. Candidates need to be able to recognise and draw each complexity on a graph and read and write the notation.

What you need to know

Big O notation describes how the time (or space) an algorithm needs grows as the input size grows, ignoring constant factors. It lets algorithms be compared independently of the hardware they run on.

What to know

  • Constant, O(1): time does not change with input size, e.g. accessing an array element by index.
  • Logarithmic, O(log n): time grows very slowly as n increases because the problem is halved each step, e.g. binary search.
  • Linear, O(n): time grows in direct proportion to n, e.g. linear search.
  • Polynomial, O(n²) (or O(n^k)): time grows with the square (or other power) of n, often from nested loops, e.g. bubble sort.
  • Exponential, O(2^n): time doubles with each extra item; quickly becomes impractical, e.g. checking every subset of a set.
  • O(n log n) lies between linear and polynomial, e.g. merge sort.
  • Rules: keep only the dominant (fastest-growing) term and remove constants, e.g. 3n² + 5n + 2 is O(n²).
  • Rule of thumb: a single loop over the data is O(n); a loop nested inside another loop over the same data is O(n²); halving the data each step is O(log n).

Code examples

Order of growth from fastest to slowest
text
O(1) < O(log n) < O(n) < O(n log n) < O(n^2) < O(2^n)

n = 1,000:
  O(log n)   ~ 10 steps
  O(n)       1,000 steps
  O(n log n) ~ 10,000 steps
  O(n^2)     1,000,000 steps
  O(2^n)     more steps than atoms in the universe

Key terms

Big O notation

A way of expressing the upper bound of an algorithm's time or space complexity as a function of the input size n.

Exam technique

  • Tip:You should be able to recognise and sketch the graph shape of each complexity and read and write the notation.
  • Tip:To describe a complexity, NAME the class and SAY what it means, e.g. 'constant: the number of steps stays the same whatever the size of n'. The name alone, or the description alone, gets only half the marks. Say 'directly proportional', not just 'proportional'.
  • Mistake:Calling O(n²) or O(2n) exponential. Exponential is O(2^n) (or O(k^n)): the time doubles with each extra item. O(n²) is polynomial and O(2n) is simply linear. Logarithmic is the opposite of exponential: it grows ever more slowly.
  • Mistake:Reading O(n) as 'exactly n steps'. Big O gives the rate of growth, so n/2 and 2n steps are both O(n). With O(n), ten times as many items takes roughly ten times as long.

Past exam questions

  • June 2024Paper 2Q6(d)(i)2marks
  • June 2024Paper 2Q6(d)(ii)2marks
  • June 2024Paper 2Q6(d)(iii)1mark
  • June 2024Paper 2Q6(d)(iv)1mark
  • November 2021Paper 2Q2(b)6marks
  • June 2019Paper 2Q1(b)(iv)6marks
  • June 2017Paper 2Q1(b)(i)1mark
  • June 2017Paper 2Q1(b)(ii)3marks
  • June 2017Paper 2Q6(f)(i)1mark
  • June 2017Paper 2Q6(f)(ii)2marks

Ready to test yourself?

Practise 2.3.1 questions
← Previous noteThe suitability of different algorithms for a given task and data set, in terms of execution time and space2.3.1 AlgorithmsNext note →Comparison of the complexity of algorithms2.3.1 Algorithms

Back to Algorithms

Algorithms

Note 3 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