Asymptotic analysis is an essential part of computational evaluations. It helps in analyzing algorithms with respect to their input sizes. It is not an exact measure of the running time but rather an approximation of how the time or cost increases with regard to the input size.
This analysis is done based on three cases:
Best case
Average case
Worst case
The analysis is done for three bounds:
Upper bound (big-
Lower bound (big-
Tight bound (big-
The big-
A pictorial representation of this is as follows:
The big-
A pictorial representation of this is as follows:
The primary problem we face during this is the assignment of
Another problem is that big-
For the first example, let's take the function:
The bounds for this function are:
Let's take the other function as:
The bounds for this function are:
The misuse here is that
For the second example, let's take
The above holds and is true but
This shows the relationship is not symmetric.
In terms of the equations, the class of functions with complexity
Note: This issue occurs because we use the notation
, while a better notation would be .
Free Resources