(10) Using limits and L’Hospital’s Rule find the complexity class of f(n) with regard to g(n) when f(n)=5n3+2n and g(n)=2n4 -1
The complexity of
is to be compared with
. To do this, calculate
. As both the numerator and the denomitor go to infinity, this in
indeterminate form. Hence use L'Hospital's rule and differentiate
both numerator and denominator to get
. Again it is indetermintate, hence use the rule again to get
as the numerator is finite and the denominator goes to
infinity.
Therefore , which impiles .
Hence the answer is . Comment in case of any doubts.
Get Answers For Free
Most questions answered within 1 hours.