diff options
author | Yigit Sever | 2020-11-07 04:53:23 +0300 |
---|---|---|
committer | Yigit Sever | 2020-11-07 04:53:23 +0300 |
commit | d9b06cc947692e378feee8ae26cdc0cbe055d502 (patch) | |
tree | 70f5e169a365d9fa8278430a2aeb1fdfe0929eee | |
parent | fcf4d85007dcfcbdc6220331f5f9d9ba31f6ae67 (diff) | |
download | hw1-d9b06cc947692e378feee8ae26cdc0cbe055d502.tar.gz hw1-d9b06cc947692e378feee8ae26cdc0cbe055d502.tar.bz2 hw1-d9b06cc947692e378feee8ae26cdc0cbe055d502.zip |
Last question lest
-rw-r--r-- | main.tex | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -639,6 +639,17 @@ Finally, $H = L = 1$ since $f(n)$ is $\Theta(n)$. Borrowing the Big-$\Theta$ not | |||
639 | $f(n) = n(\log n)^{2}$ | 639 | $f(n) = n(\log n)^{2}$ |
640 | \end{info} | 640 | \end{info} |
641 | 641 | ||
642 | \begin{align*} | ||
643 | n^{2} \quad v.s. \quad n(\log{n})^{2} \\ | ||
644 | n^{1} \quad v.s. \quad (\log{n})^{2} \\ | ||
645 | \sqrt{n} \quad v.s. \quad \sqrt{(\log{n})^{2}} \\ | ||
646 | n^{\frac{1}{2}} \quad v.s. \quad \log{n} | ||
647 | \end{align*} | ||
648 | |||
649 | From the lectures we know that $\log{n}$ is $\mathcal{O}(n^{d})$ for all $d$. | ||
650 | |||
651 | If $\log{n}$ is $\mathcal{O}(n^{\frac{1}{2}})$ then $n(\log{n})^{2}$ is $\mathcal{O}(n^{2})$. $H=2$. | ||
652 | |||
642 | 653 | ||
643 | % 1}}} % | 654 | % 1}}} % |
644 | 655 | ||