How can I solve the following Divide and Conquer example? If you don't have enough time please just tell me the idea? Thanks
$$T(n)=T\left(\frac{n}{7}\right)+T\left(\frac{11n}{14}\right)+n$$
How can I solve the following Divide and Conquer example? If you don't have enough time please just tell me the idea? Thanks
$$T(n)=T\left(\frac{n}{7}\right)+T\left(\frac{11n}{14}\right)+n$$
Copyright © 2021 JogjaFile Inc.
We make the ansatz that $T(n) = kn$ asymptotically for some constant $k$. Then when $n$ is large enough that the floor of the divides doesn't matter, we get $$kn=\frac 17kn + \frac {11}{14}kn+n\\k=14\\T(n) \sim 14n$$