1.Easy
Which notation describes an upper bound on growth?
- ABig Theta
- BBig Omega
- CLittle omega
- DBig O
2.Easy
Which complexity class grows fastest for large n?
- AO(n²)
- BO(n log n)
- CO(n³)
- DO(2ⁿ)
3.Easy
Which of these grows slowest as n becomes large?
- AO(n²)
- BO(n)
- CO(log n)
- DO(n log n)
4.Medium
What is the time complexity of computing the n-th Fibonacci number with a bottom-up table?
- AO(n²)
- BO(2ⁿ)
- CO(log n)
- DO(n)
5.Medium
What is the running time of LSD radix sort on n integers with d digits in base k?
- AO(dn log k)
- BO(n²)
- CO(d(n + k))
- DO(n log n)
6.Medium
What does the recurrence T(n) = T(n − 1) + O(1) solve to?
- AO(log n)
- BO(2ⁿ)
- CO(n²)
- DO(n)
7.Hard
For which knapsack variant does the greedy rule "take items in order of value per weight" always give an optimal answer?
- ANeither variant
- BBoth variants
- CThe 0/1 knapsack, where items must always be taken whole
- DThe fractional knapsack, where items may be split
8.Hard
Which definition of the class NP is correct?
- ADecision problems whose yes-answers can be verified in polynomial time given a certificate
- BProblems that cannot be solved in polynomial time
- CProblems that no algorithm can solve
- DProblems that are not polynomial
Answer key
- 1. D · Big O
- 2. D · O(2ⁿ)
- 3. C · O(log n)
- 4. D · O(n)
- 5. C · O(d(n + k))
- 6. D · O(n)
- 7. D · The fractional knapsack, where items may be split
- 8. A · Decision problems whose yes-answers can be verified in polynomial time given a certificate
Full step-by-step solutions: practise this topic on examproblems.com.