Asymptotic Notation
Asymptotic Notation
Asymptotic Analysis
• 1<logn<n1/2 < n< nlogn<n2<n3<….<2n<3n<…<nn.
• Asymptotic analysis means studying the behavior of the function
when n -> infinity or very large.
• The order of growth of the running time of an algorithm gives a
simple characterization of the algorithm’s efficiency. It focuses on
the growth rate of the algorithm with respect to the problem size.
• Asymptotic notations are used to describe the asymptotic running
time of an algorithm. These notations are defined in terms of
functions whose domains are the set of natural numbers
N={0,1,2,….N}.
• Asymptotic notation can apply to functions that characterize some
• other aspect of algorithms (the amount of space they use, for
example)
• In asymptotic analysis, we ignore the slow growing terms and also
the co-efficient of the fastest growing term.
Big oh notation
• When we have only an asymptotic upper bound, we use O-notation.
• For a given function g(n), O(g(n)) is defined as the set of functions