Some Useful Facts
Explore fundamental mathematical facts that support algorithm analysis including growth rates of functions, validations of big-O notation for integers, and properties of logarithms. This lesson helps you understand how standard growth relationships simplify complexity discussions and prepare you to analyze running times accurately.
We'll cover the following...
Some handy results
In this lesson, we discuss four results that are useful to know. Note that the size of input for an algorithm is always some discrete value. That’s the reason these results are proven here for integer values of only and not real values of .
Fact I: .
In fact, is a strict upper bound on , for any integer .
It’s clearly true for , but it’s also true for larger values as for every unit increase in the value of , the left-hand side (LHS) increases by , but the right-hand side (RHS) doubles.
Here’s another well-known fact.
Fact II: .
Once again, we can say something stronger:
...