Classification of algorithms: Big-O, tractability and the Halting problem
This worksheet marks itself
Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.
- 12 questions
- 39 marks
- about 40 minutes
- marked instantly
Question types: short answer, multiple choice, true or false, matching.
Try one from this worksheet
An algorithm takes 2ⁿ + n³ + 7 steps for a problem of size n. Identify its time complexity.
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
AQA A-level Computer Science (7517) 4.4.4.1-4.4.4.7 Classification of algorithms: comparing algorithms, maths for Big-O, order of complexity, limits of computation, tractable and intractable problems, computable and non-computable problems, the Halting problem. C# lesson 5 of 6 in 4.4 Theory of c…
21 slides.
Lesson outline
- Do Now: count the steps
- Do Now: answers
- Key idea: Comparing algorithms: functions of n
- Key idea: Big-O: how the steps grow
- Quick check: which grows fastest?
- Key idea: Deriving the complexity of an algorithm
- Key idea: Tractable and intractable problems
- Quick check: tractable or not?
- Key idea: Heuristics: the nearest neighbour
- Key idea: Computable? The Halting problem
- Set 1: factorials, permutations and powers
- Set 2: count the steps, find the order
More from 4.4 Theory of computation · full lessons
- Lesson pack · 4.4 L1Abstraction, decomposition and automationSubscription
- Lesson pack · 4.4 L2Finite state machines with and without outputSubscription
- Lesson pack · 4.4 L3Sets, regular expressions and regular languagesSubscription
- Lesson pack · 4.4 L4Context-free languages: BNF and syntax diagramsSubscription
- Lesson pack · 4.4 L6A model of computation: Turing machinesSubscription


