given
T(n)={1,aT(bn)+f(n),n=1otherwise
Calculate
T(n)。
make
ccrit=logba:
- If the
f(n)=O ( Nc )and
c<ccritThere
T(n)=Th ( nccrit)
- If the
∃ K such that
f(n)=nccritlogkn- , there are:
T(n)=⎩⎪⎨⎪⎧Th ( nccritlogk+1n),Th ( nccritloglogn),Th ( nccrit),k>−1k=−1k<−1
- If the
f(n)=H ( nc )and
c>ccritThere
T(n)=Th ( f ( n ) )