Prove each of the following properties of big oh: a. f ( n ) = O( f ( n )). b. If f ( n
Prove each of the following properties of big oh:
a. f(n) = O(f(n)).
b. If f(n) = O(g(n)) and g(n) = O(h(n)), then f(n) = O(h(n)).
c. If f(n) = O(g(n)), then af(n) = O(g(n)) for any real number a.
d. If f(n) = O(g(n)), then af(n) = O(ag(n)) for any number a.
e. If f(n) = O(g(n)), then f(n/b) = O(g(n/b)) for b > 0.
f. If f1(n) = O(g1(n)) and f2(n) = O(g2(n)), then f1(n)f2(n) = O(g1(n)g2(n)).
g. If f1 and f2 have nonnegative values and f1(n) = O(g1(n)) and f2(n) = O(g2(n)), then f1(n) + f2(n) = O(g1(n) + g2(n)).
h. If f and g have positive values and f(n) = O(g(n)), then 1/g(n) = O(1/f(n)).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started