โ† 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