- Akra-Bazzi method
In
computer science , the Akra-Bazzi method, or Akra-Bazzi theorem, is used to analyze the asymptotic behavior of the mathematicalrecurrence s that appear in the analysis of divide and conqueralgorithm s where the sub-problems have substantially different sizes. It is a generalization of the well-knownMaster theorem , which assumes that the sub-problems have equal size; that is, that the recursive expression for the desired function contains exactly one reference to the function.The formula
The Akra-Bazzi method applies to recurrence formulas of the form
: for
The conditions for usage are:
* sufficient base cases are provided
* and are constants for all i
* for all i
* for all i
* O, where "c" is a constant
* for all i
* is a constantThe asymptotic behavior of T(x) is found by determining the value of p for which and plugging that value into the equation
:Θ
Intuitively, represents a small perturbation in the index of T. By noting that and that is always between 0 and 1, can be used to ignore the
floor function in the index. Similarly, one can also ignore theceiling function . For example, and will, as per the Akra-Bazzi theorem, have the same asymptotic behavior.An example
Suppose is defined as 1 for integers and for integers . In applying the Akra-Bazzi method, the first step is to find the value of p for which . In this example, "p" = 2. Then, using the formula, the asymptotic behavior can be determined as follows:
:
::
::
::
Significance
The Akra-Bazzi method is more useful than most other techniques for determining asymptotic behavior because it covers such a wide variety of cases. Its primary application is the approximation of the
runtime of many divide-and-conquer algorithms. For example, in themerge sort , the number of comparisons required in the worst case, which is roughly proportional to its runtime, is given recursively as and:
for integers , and can thus be computed using the Akra-Bazzi method to be .
References
*Mohamad Akra, Louay Bazzi: On the solution of linear recurrence equations. Computational Optimization and Applications 10(2), 1998, pp. 195-210 .
*Tom Leighton: [http://citeseer.ist.psu.edu/252350.html Notes on Better Master Theorems for Divide-and-Conquer Recurrences] , Manuscript. Massachusetts Institute of Technology, 1996, 9 pages.
Wikimedia Foundation. 2010.