Some Useful Facts
Understand some basic results that come in handy when doing analysis using the big-O notation.
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:
...