Assignment value: 0%
Assignment submission: Problems should be completed by Thursday class. Do not hand them in; we will take them up in class.
Questions:
3n log n - 60 | ≤ 3n log n for all n |
≤ 3n2 for all n ≥ 1 |
2n 2 - 6n + 4 | ≤ 2n2 +4 for all n |
≤ 3n2 for all n ≥ 2 (since when n ≥ 2, n2 ≥ 4 -- but you don't have to state this parenthetical comment in your answer) |
1. log n ∈ O(n) | Log Dom |
2. 14 n2 ∈ O(n2) | CF (or Polynomial) |
3. 14 n log n ∈ O(n3) | 1,2 Product |
4. 4 n -112 ∈ O(n3) | Polynomial |
5. 14 n log n + 4n - 112∈ O(n3) | 3,4 Sum ☐ |
1. 6n2 +2n +1 ∈ O(n2) | Polynomial |
1. 0.1 n4log n ∈ O(n4log n) | Constant Factors |
2. 2 n+ 1∈ O(n4) | Polynomial |
3. 1 ∈ O(log n) | Less Than |
4. 2 n+ 1∈ O(n4log n) | 2,3 Product Rule |
5. 0.1 n4log n + 2 n+ 1∈ O(n4log n) | 1,4 Sum Rule |
n4log n | ≤ n4log n + 20n +10 ∀ n ≥ 1 |
≤ 10( 0.1n4 2n + 1) ∀ n ≥ 1 |