Science Fair Projects Ideas - Akra-Bazzi method

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Akra-Bazzi method

In computer science, the Akra-Bazzi method, or Akra-Bazzi theorem, is used to analyze the asymptotic behavior of the mathematical recurrences that appear in the analysis of divide and conquer algorithms where the sub-problems have substantially different sizes. It is a generalization of the well-known Master theorem, which assumes that the sub-problems have equal size.

The formula

The Akra-Bazzi method applies to recurrence formulas of the form

T(x)=g(x) + \sum_{i=1}^k a_i T(b_i x + h_i(x)) for x \geq x_0.

The conditions for usage are:

  • sufficient base cases are provided
  • ai > 0 for all i
  • \left|g'(x)\right| \inO(xc), where c is a constant
  • \left| h_i(x) \right| \in O\left(\frac{x}{(\log x)^2}\right) for all i
  • 0 \leq b_i x + h_i(x) < x for all i
  • ai and bi are constants for all i
  • x0 is a constant

The asymptotic behavior of T(n) is found by determining the value of p for which \sum_{i=1}^k a_i b_i^p = 1 and plugging that value into the equation

T(x) \inΘ\left( x^p\left( 1+\int_1^x \frac{g(u)}{u^{p+1}}du \right)\right).

Intuitively, hi(x) represents a small perturbation in the index of T. By noting that \lfloor b_i x \rfloor = b_i x + (\lfloor b_i x \rfloor - b_i x) and that \lfloor b_i x \rfloor - b_i x is always between 0 and 1, hi(x) can be used to ignore the floor function in the index. Similarly, one can also ignore the ceiling function. For example, T(n) = n + T \left(\frac{1}{2} n \right) and T(n) = n + T \left(\left\lfloor \frac{1}{2} n \right\rfloor \right) will, as per the Akra-Bazzi theorem, have the same asymptotic behavior.

An example

Suppose T(n) is defined as 1 for integers 0 \leq n \leq 3 and n^2 + \frac{7}{4} T \left( \left\lfloor \frac{1}{2} n \right\rfloor \right) + T \left( \left\lceil \frac{3}{4} n \right\rceil \right) for integers n > 3. In applying the Akra-Bazzi method, the first step is to find the value of p for which \frac{7}{4} \left(\frac{1}{2}\right)^p + \left(\frac{3}{4} \right)^p = 1. In this example, p = 2. Then, using the formula, the asymptotic behavior can be determined as follows:

T(x) \in \Theta \left( x^p\left( 1+\int_1^x \frac{g(u)}{u^{p+1}}\,du \right)\right)
=\Theta \left( x^2 \left( 1+\int_1^x \frac{u^2}{u^3}\,du \right)\right)
=\Theta(x^2(1 + \ln x))\,
=\Theta(x^2 \log x).\,

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 the merge sort, the number of comparisons required in the worst case, which is roughly proportional to its runtime, is given recursively as T(1) = 0 and

T(n) = T\left(\left\lfloor \frac{1}{2} n \right\rfloor \right) + T\left(\left\lceil \frac{1}{2} n \right\rceil \right) + n - 1

for integers n > 0, and can thus be computed using the Akra-Bazzi method to be Θ(nlogn).

09-23-2007 01:00:40
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice