Is the following true: $$ f(n) \in O(g(n)) \text{ then } 2 ^ {f(n)} \in O(2^{g(n)})$$
Asked
Active
Viewed 378 times
2 Answers
0
In general, you would ask: For a function h(n), if f(n) = O(g(n)), is h(f(n)) = O(h(g(n))?
We have f(n) < c * g(n) for some constant c, and for large n. The function h(n) must be such that within the range of f(n) and g(n), h(f(n)) must not grow so fast that a linear change in f(n) creates a non-linear change in h(f(n)).
gnasher729
- 32,238
- 36
- 56