FOUNDATIONS · ANALYSIS
Time, space, and the three cases — formalise the cost of any algorithm.
T(n): steps as a FUNCTION of input size.
Count extra memory boxes, not seconds.
The luckiest input — Ω(1) for linear search.
The guarantee — what the O(·) badges mean.
Expected cost over typical inputs — Θ(n).