← Algorithm Design learning path
Algorithm Design · Module 1 of 10

Algorithm analysis

Measure correctness and efficiency of algorithms.

📖 Key ideas

  1. An algorithm must be correct, finite and efficient.
  2. Asymptotic notations: Big-O (upper), Big-Ω (lower), Big-Θ (tight).
  3. Analyse best, worst and average cases.
  4. Recurrences describe recursive running times: T(n) = 2T(n/2) + n.
  5. The Master Theorem solves common recurrences.
💡 Real-life example: Asymptotic analysis is judging vehicles by highway speed, not by how they start at a traffic light.
Big-OUpper bound
Big-ΘTight bound
RecurrenceEquation for recursive time
Master TheoremSolves divide-and-conquer recurrences