Lesson 9 of 9
Growth of Complexity Functions — previous-year questions
0 of 9 lessons done
Lesson notes
The capstone of the analysis unit: previous-year questions that ask you to arrange functions in increasing order of growth or pick the odd one out. These reward technique over memory.
The three-step routine
- Bucket first. Sort options into constant / polylog / polynomial /
n log n-type / exponential / factorial buckets — the ladder from the previous lesson resolves across-bucket order instantly. - Within a bucket, take logs.
f < g ⇔ log f < log gfor largen, and logs turn exponent battles into products you can eyeball. - Normalise stubborn pairs with
a^log_b n = n^log_b a. Seeing3^log₂ nasn^log₂ 3 = n^1.585places it immediately betweennandn².
Classic traps from past papers
n^log nis not polynomial (the exponent grows) — it sits between every polynomial and every true exponential.2^√nbeats every polynomial but loses to2ⁿ— “sub-exponential” lives in the gap.n!vsnⁿvs2ⁿ: always2ⁿ < n! < nⁿ; log-Stirling proves it in one line.- Functions equal up to constants (
log₂ nvsln n,n + log nvsn) must be grouped as Θ-equal, not ordered — questions include such pairs to catch over-ordering.
Exam discipline
- Never decide from
n = 2orn = 10— small-n tables invert the true asymptotic order surprisingly often; trust limits and logs. - In multi-function orderings, verifying just the adjacent pairs of your proposed order is enough — and much faster than all-pairs checking.
Solve each question in the video before the reveal, then mark the lesson complete — this closes the analysis toolkit the rest of the course builds on.