Lecture 23: Complexity Classes Examples
At a glance
- Price Free to watch, no sign-up
- Runtime 1 h 21 min
- Topics Computer Science, Mathematics
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 23 of 25
- Language English
MIT's 6.100L, Introduction to Computer Science and Programming Using Python, continues with instructor Ana Bell working through complexity classes used to compare algorithm efficiency. The lecture covers how to find the order of growth of an algorithm, how to drop lower-order terms and constants, and how to use big-Theta notation to express a tight upper and lower bound on running time. Bell walks through worked examples, analyzing code snippets step by step to classify them as constant, logarithmic, linear, log-linear, polynomial, or exponential in complexity. The session builds directly on prior lectures introducing big-O notation, extending the toolkit students use to reason about efficiency before moves into more advanced algorithmic topics. As with the rest of the course, the focus stays practical, tying abstract complexity classes back to real Python code rather than treating them as pure theory.