skuka

asymptotic notation (big-o), cliffnotes

big-o (originally an omicron) is a way of analysing the runtime it takes the algorithm to execute as the input size grows.

polinormial

    ^
time|              ●
    |           ●
    |         ●
    |      ●
    |   ●
    |●_____________> input
     ^
time |                                         
     |                    
     |                    
     | ● ● ● ● ● ●
     |_____________>
               input

-O(n^2). Example: iterating though a 2-dimensional array or iterating though an n-sized array n times.

    ^
time|          ●
    |        ●
    |      ●
    |    ●
    |  ●
    |●_____________> input

non-polinormial

src