Algorithmic Complexity
The 'Algorithmic Complexity' test covers key topics in runtime and memory analysis of algorithms, including Big O notation and recursive runtime analysis. The questions include practical examples and theoretical concepts for evaluating algorithm efficiency.
Sample Questions
What is the time complexity of accessing an element in an array by index?
- O(1)
- O(n)
- O(log n)
- O(n²)
Which notation describes the worst-case scenario for an algorithm?
- Little o (o)
- Big O (O)
- Big Theta (Θ)
- Big Omega (Ω)
What is the time complexity of a linear search in an unsorted array?
- O(1)
- O(n log n)
- O(n)
- O(log n)