In: Computer Science
For each pair of functions f and g, write whether f is in O(g), Ω(g), or Θ(g). (latex format below)
\begin{enumerate}
\item $f =
(n+1000)^4$, $g = n^4 - 3n^3$
\item $f =
\log_{1000} n$, $g = \log_2 n$
\item $f =
n^{1000}$, $g = n^2$
\item $f = 2^n$,
$g = n!$
\item $f = n^n$,
$g = n!$
\end{enumerate}
The answer of the question is provided below, please comment if any doubts:
1.
f = (n+1000)^4
g = n^4 – 3n^3
Answer: f = Ω(g)
Proof:
2.
f = log1000 (n)
g = log2 (n)
Answer: f = O(g)
Proof:
3.
f = n1000
g = n2
Answer: f = Ω(g)
Proof:
4.
f = 2n
g = n!
Answer: f = O(g)
Proof:
5.
f = nn
g = n!
Answer: f = Ω(g)
Proof: