By Kardi Teknomo, PhD.

Analysis of Algorithm

Share this: Google+
< Contents | Previous | Next >

If you want to read a little bit more technical, this page is for you, otherwise you may skip to the next page.

What is the meaning of asymptotic function for algorithm complexity?

In one word, it would be dominant. We are looking for dominant behavior of the function. The concern of the asymptotic function is the behavior of the function on how quickly it grows when its input n grows really big. It ignores the behavior for small values of n.

Basically there are three fundamental type of functions that we often used for algorithm complexity:

  • Exponential: grow very quickly

Examples:Asymptotic Function 

  • Polynomial: grow normally

Example: Asymptotic Function

  • Logarithmic: grow very slowly

Example: Asymptotic Function

Algorithm that runs at exponential is infeasible because it grows very quickly.

Exponential function is dominant over polynomial function.
Example: Asymptotic Function is considered as exponential function.

Polynomial function is dominant over logarithm function.
Example: Asymptotic Function is considered as polynomial function.

If we put them together with real constants Asymptotic Function we will have more general asymptotic function as proposed by Jeff Edmond in How to think about algorithm:
Asymptotic Function

Examples:

  • If Asymptotic Function we have exponential function Asymptotic Function
  • If Asymptotic Function we have polynomial function Asymptotic Function
  • If Asymptotic Function we have logarithmic function Asymptotic Function

Note that

  • Factorial function can also be approximated as Asymptotic Function
  • If Asymptotic Function then we always have exponential function regardless the values ofAsymptotic Function because exponential function is dominant over polynomial and over logarithmic function.
  • If Asymptotic Function and Asymptotic Function then we have polynomial function because polynomial is dominant over logarithmic function.

Adding and multiplying Big-Oh

If Asymptotic Function and Asymptotic Function then

  • Asymptotic Function
  • Asymptotic Function
  • Asymptotic Function

< Contents | Previous | Next >

 

Share and save this tutorial
Add to: Del.icio.us Add to: Digg Add to: StumbleUpon Add to: Reddit Add to: Slashdot Add to: Technorati Add to: Netscape Add to: Newsvine Add to: Mr. Wong Add to: Webnews Add to: Folkd Add to: Yigg Add to: Linkarena Add to: Simpy Add to: Furl Add to: Yahoo Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Blinkbits Add to: Ma.Gnolia Information

These tutorial is copyrighted .

How to cite this tutorial:

Teknomo, Kardi. (2017) Analysis of Algorithm .
http://people.revoledu.com/kardi/tutorial/Algorithm/