Skip to main content

← back to the guide

OCR A-Level Computer Science Algorithms and complexity overview quiz quiz

12questions. Pick an answer and you'll see why right away.

  1. What is the worst-case time complexity of linear search?

  2. Binary search achieves O(logn)O(\log n) time because it

  3. Which sorting algorithm has worst-case time complexity O(n2)O(n^2)?

  4. Merge sort works by

  5. Quick sort's worst-case time complexity is

  6. A breadth-first traversal uses which data structure?

  7. Which binary tree traversal outputs a binary search tree's values in ascending order?

  8. Dijkstra's algorithm requires that the graph's edge weights are

  9. How does A* differ from Dijkstra's algorithm?

  10. In Big-O notation, 3n2+5n+23n^2 + 5n + 2 is written as

  11. Which complexity class is the most efficient for large nn?

  12. An algorithm has one loop running nn times with another loop running nn times inside it. Its time complexity is