Exercise 2: Find an upper bound and a lower bound for each of the function f(x). 1) f(x)=x²+2x+1. 2) f(x)=3x²+2x²+x 3) f(n)=(6n+4)(1+ign)
Hello, can you please help me do exercise 2 (with subparts 1, 2 and 3) please
Upper Bound (Big O Notation):
An upper bound is an asymptotic limit on the growth rate of an algorithm's resource utilisation, usually its time complexity. It is commonly written using Big O notation (O()).
It gives an upper bound on the amount of time or space that an algorithm will need when the input size approaches the worst-case scenario or reaches infinity.
Lower bound (Big Omega Notation):
The lower bound, which is commonly represented by Big Omega notation (Ω()), denotes an asymptotic lower bound on the rate of increase in an algorithm's resource consumption.
It indicates that an algorithm will require a minimum amount of time or space, irrespective of the input, and sets a lower bound on the optimal case for the method's temporal complexity.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps