compare the order of growth n(n-1)/2 and n2 Co 2.5 (K5)
Answers
Explanation:
Among exponentials, you can always convert them all to the same base and compare exponents; larger exponents beat smaller ones. Same for logarithms. so this is actually just a power. so that's the order of growth of the functions.
Answer:
growth rate is slower than .
Explanation:
The O notation, which is pronounced "big-oh," is used to express an asymptotic upper bound of a function, i.e., that a function f(n) cannot surpass another function g(n), and g(n) is therefore the upper bound of f(n).
As per the definition,
f(n) = O(g(n)) , if f(n) c.g(n).
Analyzing the Time Complexity,
,
The order of growth for varying input sizes of 'n' is as follows:-
We can clearly see here that the growth rate of is slower than .
#SPJ3