Definitions of "Big Oh"
 is a set of functions.
 is a set of functions.
 is in
 is in 
 if
 if 
      
 
This is read as "There exists a 
 such that, for all but a
finite number of
 such that, for all but a
finite number of 
 s,
s, 
 is bounded above by
 is bounded above by 
 .
.
In other words,
      
 
where 
 is the threshold above which this is true.  This is shown
in the figure, where
 is the threshold above which this is true.  This is shown
in the figure, where 
 :
:
 
For example, consider
   
 
Since 
 once
 once 
 gets large enough,
 gets large enough,
    
 
Let's be more rigorous:  We must find a 
 and
 and 
 such that
 such that
    
 
From the equation, guess that 
 .  Then
.  Then
    
 
Since 
 when
 when 
 ,
, 
 must be greater than
 must be greater than
 and (from the last line above)
 and (from the last line above) 
 must be greater than
 must be greater than
 .
.  
Therefore, if 
 and
 and 
 ,
,
    
 
and that proves that 
 .
.
Definition of "Little Oh"
 is in "little-oh" of
 is in "little-oh" of 
 if
 if
    
 
In other words, no matter how big 
 is,
 is, 
 is eventually
bounded above by
 is eventually
bounded above by 
 .
.
In other words, 
 eventually is strictly smaller than
 eventually is strictly smaller than 
 ,
regardless of the coefficient in front of the dominant term of
,
regardless of the coefficient in front of the dominant term of 
 .
.
Definition of "Omega"
 is in
 is in 
 if
 if
    
 
In other words, 
 is eventually greater than
 is eventually greater than 
 .
.
 is a lower bound of
 is a lower bound of 
 .
.
Note that 
 if and only if
 if and only if
 .
.
Definition of "Theta"
 is in
 is in 
 if
 if
    
 
In other words, 
 and
 and 
 are eventually within a constant
factor of each other.
 are eventually within a constant
factor of each other.
 
- Always use 
 and and for upper bounds. for upper bounds.
- Always use 
 for lower bounds. for lower bounds.
- Never use 
 for lower bounds. for lower bounds.
A word on notation: In some texts, like CLR, you may see the notation
    
 
This is equivalent to our notation,
    
 
Always use our notation.