PHASE 09
๐ Correctness, Complexity & Quality
Prove your algorithms work and compare how much work they do. Preconditions, postconditions, invariants, testing, and time and space complexity โ taught intuitively before notation โ plus readability and maintainability.
โฑ๏ธ ~3.5 hours of lessons
๐ 17 lessons
โ๏ธ 22 exercises Hard
โถ Start this phase
๐ฏ In this phase you willโฆ
- Reason about correctness with pre/postconditions and invariants
- Estimate how work grows when input doubles
- Read and use O(1), O(log n), O(n), O(n log n), O(nยฒ)
- Compare solutions on time and space
- Write readable, maintainable pseudocode
๐บ Lessons in this playlist
01
What Makes an Algorithm Correct?
02
Preconditions
03
Postconditions
04
Invariants
05
Testing
06
Edge Cases (Revisited)
07
Time Complexity
08
Space Complexity
09
Big O
10
O(1) โ Constant Time
11
O(log n) โ Logarithmic Time
12
O(n) โ Linear Time
13
O(n log n)
14
O(nยฒ) โ Quadratic Time
15
Comparing Solutions
16
Readability
17
Maintainability