Data Structures, Algorithms, & Applications in C++
Chapter 3, Exercise 17
- (a)
-
Not true. For example, if f(n) = n2 and
g(n) = 1, then
f(n) = O(n2) and
g(n) = O(n2).
But, f(n)/g(n) = n2 != O(1).
- (b)
-
Not true. For example, if f(n) = n2 and
g(n) = n2, then
f(n) = O(n4) and
g(n) = O(n2).
But, f(n)/g(n) = 1 != Omega(n2).
- (c)
-
Not true. Follows from (a) and/or (b).
- (d)
-
Not true. For example, if f(n) = n2 and
g(n) = n2, then
f(n) = Omega(n2) and
g(n) = Omega(1).
But, f(n)/g(n) = 1 != Omega(n2).
- (e)
-
Not true. For example, if f(n) = n2 and
g(n) = 1, then
f(n) = Omega(1) and
g(n) = Omega(1).
But, f(n)/g(n) = n2 != O(1).
- (f)
-
Not true. Follows from (d) and/or (e).