An Extension to The Master Theorem [PDF]

In the Master Theorem, as given in the textbook and previous handout, there is a gap between cases (1) and (2), and a ga

6 downloads 5 Views 116KB Size

Recommend Stories


Master Theorem
Don't be satisfied with stories, how things have gone with others. Unfold your own myth. Rumi

The Akra–Bazzi theorem and the Master theorem
Before you speak, let your words pass through three gates: Is it true? Is it necessary? Is it kind?

An extension of a Phillips's theorem to Banach algebras and application to the uniform continuity of
Ask yourself: Am I achieving the goals that I’ve set for myself? Next

Generalizations of the MacWilliams Extension Theorem
You have to expect things of yourself before you can do them. Michael Jordan

an extension to the CanuMobiSim framework
When you talk, you are only repeating what you already know. But if you listen, you may learn something

An extension of Turán's theorem, uniqueness and stability
You miss 100% of the shots you don’t take. Wayne Gretzky

an extension of liouville's theorem on integration in finite terms
Every block of stone has a statue inside it and it is the task of the sculptor to discover it. Mich

PDF Online The Master-Key to Riches
Ask yourself: What does your ideal day look like? Next

AN ANALOGUE OF MOREAU'S PROXIMATION THEOREM, WITH APPLICATION TO THE
The happiest people don't have the best of everything, they just make the best of everything. Anony

Equi-Statistical Extension of the Korovkin Type Approximation Theorem
Just as there is no loss of basic energy in the universe, so no thought or action is without its effects,

Idea Transcript


An Extension to The Master Theorem In the Master Theorem, as given in the textbook and previous handout, there is a gap between cases (1) and (2), and a gap between cases (2) and (3). For example, if a = b = 2 and f (n) = n/lg(n) or f (n) = n lg(n), none of the cases apply. The extension below partially fills these gaps. def

THEOREM (Extension of Master Theorem) If a, b, E = logb(a), and f (n) are as in the Master Theorem, the recurrence T(n) = aT(n /b) + f (n), T(1) = d, has solution as follows: 1') If f (n) = O( n E (logbn)α) with α < −1, then T(n) = Θ(n E). 2') If f (n) = Θ( n E (logbn)−1) , then T(n) = Θ( n E logblogb(n)) . 3') If f (n) = Θ( n E (logbn)α) with α > −1, then T(n) = Θ( nE (logbn)α+1) . 4') [same as in Master Theorem] If f (n) = Ω( n E+ε ) for some ε > 0, then T(n) = Θ(f (n)), provided there is a constant c with c < 1 such that a f (n/b) ≤ c f (n) for all n sufficiently large. Note: (1') above includes case (1) of the Master Theorem. (3') above with α = 0 is case (2) in the Master Theorem.

We make use of the fact below, which follows from the close connection between sums and integrals. ∞

LEMMA. ∑ i=1 i α converges if α < −1 and diverges otherwise. n n ∑ i=1 i α ≈ ln(n)+γ if α = −1, and ∑ i=1 i α ≈ n α+1 /(α+1) if α > −1. Proof of the extended Master Theorem when n is a power of b. Case (4) is exactly as in the Master Theorem, so we consider only (1), (2), and (3). In case 1, f (n) ≤ Θ(nE (logbn)α). In cases (2) and (3), f (n) = Θ(nE (logbn)α) for some α. Let n = bk, so k = logb(n). From the previous handout, we know that T(n) = f (n) + af (n/b) + a2 f (n/b2) + ... + ak−1 f (n/bk−1) + ak d. Putting f (n) ≈ cnE (logbn)α for some constant c, we get T(n) ≈ cnE (logbn)α + ac(n/b)E (logb(n/b))α + a2 c(n/b2)E (logb(n/b2))α + ... + a k−1c(n/bk−1)E (logb(n/bk−1))α + ak d (In case 1, this is just an upper bound for T(n).)

Note ak = nE. Also n = bk, so logb (n/bi ) = logb(bk − i ) = k − i. Finally, note a = b E , so in ai c(n/bi )E in the formula above, a i / biE = 1. With these simplifications, our formula becomes T(n) ≈ cnE k α + cnE (k−1)α + cnE (k−2)α + ... + cnE 1α + dnE k

= cnE ∑ i=1 i α + dnE ∞

k

If α < −1, then 1 ≤ ∑ i=1 i α < c', where c' = ∑ i=1 i α = some constant. So at worst T(n) ≈ (cc'+d) nE = Θ(nE). But in the handout on the Master Theorem we remarked that T(n) can never be less than Θ(nE), since the bottom level alone requires this much time. k

If α = −1, then ∑ i=1 i α ≈ ln(k) = ln logb (n) = q logblogb(n) for some constant q, so T(n) ≈ cq nE logblogb(n) + dnE = Θ(nE logblogb(n)). k

If α > −1, then α+1 > 0, and ∑ i=1 i α ≈ k α+1 /(α+1) = logb (n)α+1 / (α+1), so T(n) ≈ c nE logb (n)α+1 / (α+1) + dnE = Θ(nE (logb (n))α+1 ).

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.