# Algorithmic Notations In Data Structure | Asymptotic Notation in Data Structure | Big O Notation in Data Structure | Omega Notation in Data Structure | Theta Notation in Data Structure | Notation Examples in Data Structure

## Asymptotic analyses

Asymptotic examination of a calculation alludes to characterizing the scientific boundation/surrounding of its run-time execution. Utilizing asymptotic examination, we can close the best case, normal case, and most dire outcome imaginable of a calculation.

Asymptotic examination is input bound i.e., if there’s no contribution to the calculation, it is closed to work in a steady time. Other than the “information” every single other factor are viewed as consistent.

Asymptotic examination alludes to figuring the running time of any operation in scientific units of calculation. For instance, the running time of one operation is registered as f(n) and might be for another operation it is processed as g(n2). This implies the principal operation running time will increment straightly with the expansion in n and the running time operation will increment exponentially when n increments. Likewise, the running time of the two operations will be about the same if n is essentially little.

Typically, the time required by a calculation falls under three sorts −

Best Case − Minimum time required for program execution.

Normal Case − Average time required for program execution.

Most pessimistic scenario − Maximum time required for program execution. **Algorithmic Notations In Data Structure **

## Asymptotic notation

Following are the usually utilized asymptotic documentations to figure the running time multifaceted nature of a calculation.

Ο Notation

Ω Notation

θ Notation

### Big Oh Notation, Ο

The documentation Ο(n) is the formal approach to express the upper bound of a calculation’s running time. It gauges the most pessimistic scenario time multifaceted nature or the longest measure of time a calculation can take to finish.

Enormous O Notation

For instance, for a capacity f(n)

Ο(f(n)) = { g(n) : there exists c > 0 and n0 to such an extent that f(n) ≤ c.g(n) for all n > n0. }

### Omega Notation, Ω

The documentation Ω(n) is the formal approach to express the lower bound of a calculation’s running time. It gauges the best case time multifaceted nature or the best measure of time a calculation can take to finish.

Omega Notation

For instance, for a capacity f(n)

Ω(f(n)) ≥ { g(n) : there exists c > 0 and n0 with the end goal that g(n) ≤ c.f(n) for all n > n0. }

### Theta Notation, θ

The documentation θ(n) is the formal approach to express both the lower bound and the upper bound of a calculation’s running time. It is spoken to as takes after −

Theta Notation

θ(f(n)) = { g(n) if and just if g(n) = Ο(f(n)) and g(n) = Ω(f(n)) for all n > n0. }

Basic Asymptotic Notations

Following is a rundown of some basic asymptotic documentations −

constant − ο(1)

logarithmic − ο(log n)

linear − ο(n)

n log n − ο(n log n)

quadratic − ο(n2)

cubic − ο(n3)

polynomial − nο(1)

exponential − 2ο(n)

Thanks for reading this post and don’t forget to share it and keep visits for more updates