Key points
- Master theorem: T(n) = aT(n/b) + f(n); compare f(n) with n^(log_b a).
- Lower bound for comparison-based sorting is Ω(n log n).
- Dijkstra does not work with negative edges — use Bellman-Ford.
- Merge sort is stable; quick sort and heap sort are not.