Chapter 9Complexity Analysisslides.en.pdf:206
Big-O Arithmetics
Drop constants, drop small summands, distribute
Theorem 0.6 — Computing with Landau sets
Concept
Landau notation is meant to suppress noise. Three useful arithmetical rules
let us simplify expressions without losing the growth class:
1. Drop constant factors.
Example: .
2. Drop lower-order summands.
Example: .
3. Distribute over products.
Example: .
Putting them together:
Why? The highest-degree term is . The next is , which is
since for . Sum them: still .
Common mistakes to avoid:
- is WRONG. doesn't distribute over . Use
the rule .
- , not . Constants don't matter.
- , still exponential.
Logarithm tricks:
-
-
- — the base of a log
doesn't matter (just a constant factor).
Practice — score 100% to advance
Multiple choice
Q1
Simplify to a Landau class.
Q2
What is ?
Q3
Why can we drop a constant factor?
Q4
simplifies to…
Q5
___?
Fill in the blank
Q1
O(f) + O(g) = O(\text{}(f, g)) — take the ___ of the two growth rates.
Q2
O(f) \cdot O(g) = O(\text{}) — multiply growth rates when combining sequential work.
Loading…