January 2018
Intermediate to advanced
332 pages
7h 36m
English
Having calculated the upper and lower bound rates of growth of our function f(n), we can now determine the tight bound or theta of our function f(n) as well. So, if we have a f(n) method, which we want to represent with a time complexity function (also known as a set) g(n), then the tight bound of a function can be defined as follows:
The preceding operation, from the previous two sections, is already calculated for our function, that is, f(n) = 4n + 1: the value of c1 = 4 , c2 = 5, and n0 = 1.
This provides us with the tight bound of our function f(n) and, since the function always lies within the ...
Read now
Unlock full access