Efficiency: AP CSP practice
How fast algorithms grow. 4 questions in the style of the AP CSP exam.
Sample questions
For an input of size n, which of these algorithms does NOT run in a reasonable amount of time?
- One that takes about 2 to the power n steps
- One that takes about n steps
- One that takes about n squared steps
- One that takes about n cubed steps