site c455 powered by FreeFind Modified:
Use the Master Method to asymptotically bound T(n)
T(n) can be asymptotically bounded for 3 cases as follows:
f(n) < nlogba Intuitively: cost is dominated by leaves. If f(n) = O(nlogba - e ) for some constant e > 0 then T(n) Î Q (nlogba)
f(n) < nlogba Intuitively: cost is dominated by leaves.
If f(n) = O(nlogba - e ) for some constant e > 0 then T(n) Î Q (nlogba)
f(n) = nlogba If f(n) = Q(nlogba ) then T(n) Î Q(nlogba * lg n)
f(n) = nlogba
If f(n) = Q(nlogba ) then T(n) Î Q(nlogba * lg n)
f(n) > nlogba Intuitively: cost is dominated by root. If f(n) = W(nlogba +e ) for some constant e > 0 and af(n/b) ≤ cf(n) for some constant c < 1 and all sufficiently large n then T(n) Î Q(f(n)) i.e. f(n) is polynomially greater than nlogba
f(n) > nlogba Intuitively: cost is dominated by root.
If f(n) = W(nlogba +e ) for some constant e > 0 and
af(n/b) ≤ cf(n) for some constant c < 1 and all sufficiently large n then T(n) Î Q(f(n))
af(n/b) ≤ cf(n) for some constant c < 1 and all sufficiently large n
then T(n) Î Q(f(n))
i.e. f(n) is polynomially greater than nlogba
T(n) = 5T(n/2) + Q(n2)
log2 5 ≈ 2.32
T(n) = 2T(n/2) + n
T(n) = 5T(n/2) + Q(n3)