Complexity Analysis and Big O

Check runtime and space reasoning.

1. What does Big O notation primarily describe in complexity analysis?
2. Which of the following algorithms have a worst-case time complexity of O(n²)?
3. Big O notation considers the best-case scenario of an algorithm.
4. What does the 'O' in Big O stand for?
5. Which operation typically has a time complexity of O(1)?
6. Which time complexities are generally considered 'efficient' for large input sizes (n)?
7. The time complexity of a nested loop (two levels) where each loop runs from 1 to n is O(n²).
8. What is the time complexity of a binary search algorithm? (format: O(notation))
9. What is the space complexity of an algorithm that uses a fixed amount of additional memory regardless of input size?
10. Which algorithms have an average-case time complexity of O(n log n)?
11. Big O notation ignores constant factors and lower-order terms when simplifying complexity.
12. Name the scenario where an algorithm performs at its maximum efficiency (best, worst, or average case).
13. What is the worst-case time complexity of linear search on an array of size n?
14. Which scenarios have a space complexity of O(n)?
15. O(n log n) is more efficient than O(n) for very large n.
16. What is the worst-case time complexity of Bubble Sort? (format: O(notation))
17. What is the simplified Big O notation for O(3n² + 5n + 2)?
18. Which statements about Big O notation are true?
19. The space complexity of an iterative linear search is O(1).
20. What term describes the average performance of an algorithm over all possible input cases?
Answered 0 of 0 — 0 correct