Chapter - 08 (Analysis)
Chapter - 08 (Analysis)
(for all ) =
DEFINITION A function is said to be in , denoted , if is
bounded below by some positive constant multiple of
for all large , i.e., if there exist some positive constant
and some nonnegative integer such that
for all .
Prepared By: Eyob S. 17
Big-Omega notation:
Solution:
Solution:
the first two cases mean that the last two mean that , and the second case means that
L’Hopital’s rule
2. Identify the algorithm’s basic operation. (As a rule, it is located in the innermost
loop.)
3. Check whether the number of times the basic operation is executed depends only on
the size of an input. If it also depends on some additional property, the worst-case,
average-case, and, if necessary, best-case efficiencies have to be investigated
separately.
4. Set up a sum expressing the number of times the algorithm’s basic operation is
executed.
5. Using standard formulas and rules of sum manipulation, either find a closed form
formula for the count or, at the very least, establish its order of growth.
3. Check whether the number of times the basic operation is executed can
vary on different inputs of the same size; if it can, the worst-case, average-
case, and best-case efficiencies must be investigated separately.
5. Solve the recurrence or, at least, ascertain the order of growth of its
solution.