115 views
0 votes
0 votes
NTA PhD Entrance Examination CS  2023| Part 2  Question-30

Question No. 30 / Question ID 974083
Marks: 4.00

Consider the following two functions:
\[
\begin{array}{l}
f(n)=\left\{\begin{array}{lr}
n^{3}, & 0 \leq n<10000 \\<br /> n^{2}, & \text { otherwise }
\end{array}\right. \\
g(n)=\left\{\begin{array}{lr}
n, & 0 \leq n<100 \\<br /> n^{2}+4 n, & \text { otherwise }
\end{array}\right.
\end{array}
\]

Some of the following statements are true.

  1. $\mathrm{f}(\mathrm{n})$ is $\mathrm{O}\left(\mathrm{n}^{3}\right)$
  2. $\mathrm{g}(\mathrm{n})$ is $\mathrm{O}\left(\mathrm{n}^{3}\right)$
  3. $\mathrm{O}(\mathrm{f}(\mathrm{n}))$ is same as $\mathrm{O}(\mathrm{g}(\mathrm{n}))$
  4. $\mathrm{g}(\mathrm{n})$ is $\mathrm{O}(\mathrm{n})$
    E. $\mathrm{g}(\mathrm{n})$ is $\mathrm{O}\left(\mathrm{n}^{2}\right)$

    Choose the most appropriate answer from the options given below:
    1. A and C Only
    2. A and D Only
    3. A, B and C Only
    4. C and E Only

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
admin asked Nov 30, 2023
76 views
When the dependent variable is not free from the influence of extraneous variable, then the relationship between the dependent and independent variables is calledCorrelat...
0 votes
0 votes
1 answer
2
admin asked Dec 2, 2023
158 views
Question No. 1 / Question ID 974051Marks: 4.00The number of divisors of 2100 is1. 422. 363. 784. 721 (Chosen Option)234
0 votes
0 votes
1 answer
4
admin asked Dec 2, 2023
137 views
Question No. 3 / Question ID 974076Marks: 4.00void main()\{int $\mathrm{i}$;for $(i=0 ; i